Technicalsymposium


C Program for Library Operation

int i=0;

void add();

void search();

void sort();

void sorta();

struct book

{

char bookname[50];

char author[50];

double price;

int nocopy;

}book[50];

void main()

{

int ch;

while(1)

{

clrscr();

printf("********************");

printf("\nLIBRARY MANAGEMENT");

printf("\n******************");

printf("\n1-ADD TO LIBRARY");

printf("\n2-SEARCH A BOOK");

printf("\n3-SORT BY BOOK NAME");

printf("\n4-SORT BY AUTHOR NAME");

printf("\n5-EXIT");

printf("\nEnter your choice:");

scanf("%d",&ch);

switch(ch)

{

case 1: add();

break;

case 2: search();

break;

case 3: sort();

break;

case 4: sorta();

break;

case 5: exit(0);

default: puts("Please enter 1-5 only");

getch();

}

}

}

void add()

{

printf("\n\nADD TO LIBRARY");

printf("\nEnter the Bookname: ");

fflush(stdin);

gets(book[i].bookname);

printf("\nEnter the Author name: ");

fflush(stdin);

gets(book[i].author);

printf("\nEnter the Price of the Book: ");

scanf("%ld",&book[i].price);

printf("\nEnter no of copies : ");

scanf("%d",&book[i].nocopy);

printf("STORED");

printf("\nBOOK NAME: %s",book[i].bookname);

printf("\nAUTHOR : %s",book[i].author);

printf("\nPRICE : %d",book[i].price);

printf("\nNO OF COPIES: %d",book[i].nocopy);

i++;

getch();

}

void search()

{

int f=0,y,j,x;

char bookn[50],authorname[50];

printf("\n Enter the Book Name: ");

fflush(stdin);

gets(bookn);

printf("\n Enter the Author Name: ");

fflush(stdin);

gets(authorname);

printf("\nThe Given Search");

printf("\nThe Book Name is: %s",bookn);

printf("\nThe Author Name is : %s",authorname);

for(j=0;j
{

x= strcmp(book[j].bookname,bookn);

y=strcmp(book[j].author,authorname);

if(x==0&&y==0)

{

printf("\nBOOK IS FOUND");

getch();

f=1;

}

}

if(f==0)

{

printf("\nBOOK NOT FOUND");

getch();

}

getch();

}

void sort()

{

int j,k,x;

char t[50];

for(j=0;j
{

for(k=0;k
{

x = (strcmp(book[k].bookname,book[k+1].bookname));

if(x>0)

{

strcpy(t,book[k].bookname);

strcpy(book[k].bookname ,book[k+1].bookname);

strcpy(book[k+1].bookname, t);

}

}

}

printf("\nSORTED BY BOOK NAME");

for(j=0;j
{

printf("\nThe BookName is:%s - %s",book[j].bookname,book[j].author);

}

getch();

}

void sorta()

{

int j,k,x;

char t[50];

for(j=0;j
{

for(k=0;k
{

x = (strcmp(book[k].author,book[k+1].author));

if(x>0)

{

strcpy(t,book[k].author);

strcpy(book[k].author ,book[k+1].author);

strcpy(book[k+1].author, t);

}

}

}

printf("\nSORTED BY AUTHOR NAME");

for(j=0;j
{

printf("\nThe AUTHOR NAME is:%s - %s",book[j].author,book[j].bookname);

}

getch();

}


Government Jobs

All State and Central Government Jobs/Railway & Bank Jobs/Alll Competitive Exams-Complete Details.

Software Jobs

Entry Level Software & IT Jobs in Chennai/Bangalore & Leading Metro Cities-Complete Details.

Conference/Symposium

Engineering Colleges & University /Premier Institute (IIT/IIM/etc.,) Events Details.

Off-Campus/Walk-in

All Software Companies & Core Companies Off-Campus Interviews & Walk-in across India-Complete Details.

All Bank Jobs

All Government Bank & Private Bank Jobs-Complete Details.

Internships

All Companies Internships-Complete Details.

IBPS

Probationary Officers/Clerk and Management Trainees & All IBPS Exams/Syllabus-Complete Details.

GATE

All Branches Syllabus & Question Papers-Free Download.

IES-Exam

Indian Engineering Services Syllabus & Question.Papers-Complete Details.

Software Program

Top Programming Source Codes/Lab Manuals with Solutions-Complete Details

Anna University

B.E/B.Tech/M.E/M.Tech/MCA/MBA Latest Syllabus & Question Papers

Scholarships

All Central & State Govt Scholarships/ International Scholarships/Merit Scholarships Details.

Placement Papers

All Companies Placement Papers with Answers - Free Download of Materials

Aptitude

All Aptitude Test Topics with Answers-Complete Details & Free Download

Technical Round Interview

All Companies Technical Round Interview Asked Questions with Answers

Certifications

All Certifications Software & All Branches Certifications-Complete Details.

Group Discussion

Group Discussion Various Topics with Valid Points-Complete Details.

HR Round

All HR Round Questions and Answers/Tips & Do's and Don'ts of HR Round.

General Job

Job Interview Tips & Do's/Dont's/Dress Codes/Body Language-Complete Details.

Placement ebooks

All Companies Placement Materials with Answers-Complete Details.

Technical Round Tips

All Kind of Technical Round Interview Tips and Answers/ Do's and Don'ts

Resume

Resume Writing Tips/Do's & Don'ts-Complete Details.

Career Pages

All MNC Companies Career Pages & Current Openings-Complete Details.

Software Projects

All Software Projects with Source Codes-Free Download & Details.

GRE

GRE Exam Procedure and Complete Details.

TOEFL

TOEFL Exam Procedure and Complete Details.

IELTS

IELTS Exam Procedure and Complete Details

SAT

SAT Exam Procedure and Complete Details

GMAT

GMAT Exam Procedure and Complete Details

MS in USA

MS in USA Procedure and Complete Details

Civil Engineering

Civil Engineering Lecture Notes for All Universities & Lab Manuals for All Semester.-Free Download

Mechanical Engineering

Mechanical Engineering Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Automobile Engineering

Automobile Engineering Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Computer Science

Computer Science Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Information Technology

Information Technology Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

MBA

MBA Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Biotechnology

Biotechnology Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Biomedical

Biomedical Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Aeronautical Engineering

Aeronautical Engineering Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download

Chemical Engineering

Chemical Engineering Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Electronics & Communication

Electronics & Communication Engineering Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Electrical & Electronics

Electrical & Electronics Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

MCA

MCA Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

B.Sc

B.Sc All Branches (Maths/Physics/Computer Science/Electronics/etc.,)-Lecture Notes-Free Download

BCA

BCA Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

BBA

BBA Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

M.Sc

M.Sc All Branches (Maths/Physics/Computer Science/Electronics/etc.,)-Lecture Notes-Free Download

M.Com

M.Com Lecture Notes for All Universities & Lab Manuals for All Semester-Free Download.

Engineering Maths

All Semester Engineering Maths (M1/M2/M3/M4/etc.,) Lecture Notes-Free Download

Engineering EBooks

All Engineering Branches of ebooks Free Download-Complete Details.

Engineering Physics

All Semester Engineering Physics Lecture Notes-Free Download

GATE Preparation Books

All Branches of GATE Free Preparation eBooks-Free Download.

Engineering Chemistry

All Semester Engineering Chemistry Lecture Notes-Free Download

Software Companies Info

All Software Companies in India - Complete Details.

Admission

Foreign Universities All Course Admission Procedures-Complete Details.

Software Ebooks

All Programming Software free Eboooks-Free Download.

Web Hosting

All Web Hosting Procedure-Complete Details.