SlideShare a Scribd company logo
1 of 36
Welcome
Project Topic
QUEUE
Meherin Amir
ID:162-15-7922
B.Sc. in CSE (3rd Semester)
Daffodil International University
Rakib Hasan
ID:162-15-7802
B.Sc. in CSE (3rd Semester)
Daffodil International University
MD.Rakibur Rahman Khan
ID:162-15-7866
B.Sc. in CSE (3rd Semester)
Daffodil International University
Group Members
Mohammod Mahmudul Hasan
ID:162-15-7760
B.Sc. in CSE (3rd Semester)
Daffodil International University
With respect to
Dr. Sheak Rashed Haider Noori
Associate Professor and Associate Head
Department of Computer Science and Engineering
Faculty of Science and Information Technology
Daffodil International University
Project
MY DOCTORโ€™S PORTAL (MDP)
Contents
โ€ข About MDP
โ€ข Features of MDP
โ€ข Behind the interface
The MDP
The Main Menu
Patients Menu
Placing Appointment
Placing Appointment
Placing Appointment
Doctors Menu
Viewing Appointment
Calling 1st Patient
More screen shots
More screen shots
More screen shots
More screen shots
More screen shots
More screen shots
Behind the Interface
The Main Function
int main()
{
head=(node*)malloc(sizeof(node));
head->next=NULL;
int query,query2,password;
while(1)
{
printf("n1.For Patientn2.For Doctorn3.For Exitn");
scanf("%d",&query);
if(query==1)
{
Appoint(head);
}
The Main Function
else if(query==2)
{
printf("nEnter the password(only digits please): ");
scanf("%d",&password);
printf("n");
if(password==1234)
{
while(1)
{
printf("1.Showlistn2.Calln3.Main Menun");
scanf("%d",&query2);
if(query2==1)
{
Showlist(head);
continue;
}
The Main Function
else if(query==2)
{
printf("nEnter the password(only digits please): ");
scanf("%d",&password);
printf("n");
if(password==1234)
{
while(1)
{
printf("1.Showlistn2.Calln3.Main Menun");
scanf("%d",&query2);
if(query2==1)
{
Showlist(head);
continue;
}
The Main Function
else if(query2==2)
{
Call();
continue;
}
else if(query2==3)
{
break;
}
}
}
else
{
printf("nWrong passwordn");
printf("Choose the correct option pleasen");
continue;
}
}
The Main Function
else if(query2==2)
{
Call();
continue;
}
else if(query2==3)
{
break;
}
}
}
else
{
printf("nWrong passwordn");
printf("Choose the correct option pleasen");
continue;
}
}
The Main Function
else if(query=3)
{
exit(0);
}
}
return 0;
}
The Appoint Function (En-queue)
void Appoint(node *pointer)
{ printf("n*******Appointment Portal********n");
while(1)
{
printf("n1.For appointmentn2.For Main Menun3.For exitn");
int query;
scanf("%d",&query);
if(query==1)
{
int serial;
char name[40];
if(appointment==0)
{
printf("Appointment not avilablen");
return;
}
The Appoint Function (En-queue)
else if(appointment!=0)
{
while(pointer->next!=NULL)
{
pointer=pointer->next;
}
printf("Write down your name: ");
getchar();
gets(name);
strcpy(pointer->s,name);
while(1)
{
printf("Write down your phone Number: ");
gets(pointer->p);
int len=0;
len=strlen(pointer->p);
if(len!=11)
{
printf("nInvalid Phone Numbern");
printf("Try agian pleasenn");
continue;
}
The Appoint Function (En-queue)
int i,j=0;
for(i=0;pointer->p[i]!=NULL;i++)
{
if(pointer->p[i]<'0' || pointer->p[i]>'9')
{
printf("nInvalid Phone Numbern");
printf("nTry again pleasen");
j=1;
break;
}
}
if(j==1)
{
continue;
}
if(len==11)
{
break;
}
}
The Appoint Function (En-queue)
appointment--;
serial=20-appointment;
pointer->serial=serial;
printf("nAppointment acceptedn");
printf("Your serial number is %dn",serial);
pointer->next=(node*)malloc(sizeof(node));
pointer=pointer->next;
pointer->next=NULL;
continue;
}
}
else if(query==2)
{
return;
}
else if(query==3)
{
exit(0);
}
}
return;
}
The Showlist Function (Queue Search)
void Showlist(node *pointer)
{
if(pointer->next==NULL)
{
printf("No more patient presentn");
}
while(pointer->next!=NULL)
{
printf("Serial %d: ",pointer->serial);
printf("%sn",pointer->s);
printf(" Ph:%sn",pointer->p);
pointer=pointer->next;
}
printf("n");
}
The Call Function (De-queue)
void Call()
{
if(head->next!=NULL)
{
printf("nSerial No:%d %s is callednn",head->serial,head->s);
head=head->next;
return;
}
else
{
printf("nThere is no patient to callnn");
return;
}
}
If you have any questions, you may ask.
ThankYou

More Related Content

Similar to Data structure-project Queue

3rd icber 2012 booklet program
3rd icber 2012 booklet program3rd icber 2012 booklet program
3rd icber 2012 booklet programMohd Shaari Abd Rahman
ย 
Doctoral Presentation - January 2023.pptx
Doctoral Presentation - January 2023.pptxDoctoral Presentation - January 2023.pptx
Doctoral Presentation - January 2023.pptxCapitolTechU
ย 
Capitol Doctoral Presentation -Sept 2023.pptx
Capitol Doctoral Presentation -Sept 2023.pptxCapitol Doctoral Presentation -Sept 2023.pptx
Capitol Doctoral Presentation -Sept 2023.pptxCapitolTechU
ย 
Doctoral Presentation Nov 2022.pptx
Doctoral Presentation Nov 2022.pptxDoctoral Presentation Nov 2022.pptx
Doctoral Presentation Nov 2022.pptxCapitolTechU
ย 
Doctoral Presentation - May 2023.pptx
Doctoral Presentation - May 2023.pptxDoctoral Presentation - May 2023.pptx
Doctoral Presentation - May 2023.pptxCapitolTechU
ย 
Doctoral Presentation - June 2023.pptx
Doctoral Presentation - June 2023.pptxDoctoral Presentation - June 2023.pptx
Doctoral Presentation - June 2023.pptxCapitolTechU
ย 
Doctoral Presentation - March 2023.pptx
Doctoral Presentation - March 2023.pptxDoctoral Presentation - March 2023.pptx
Doctoral Presentation - March 2023.pptxCapitolTechU
ย 
Resume of mohammad hafiz bin hamzah
Resume of mohammad hafiz bin hamzahResume of mohammad hafiz bin hamzah
Resume of mohammad hafiz bin hamzahSMK SS17 Subang Jaya
ย 
Information e booklet
Information e bookletInformation e booklet
Information e bookletDr.E.Syed Mohamed
ย 
Doctoral Presentation - February 2023.pptx
Doctoral Presentation - February 2023.pptxDoctoral Presentation - February 2023.pptx
Doctoral Presentation - February 2023.pptxCapitolTechU
ย 
Covering Letter9-4-16
Covering Letter9-4-16Covering Letter9-4-16
Covering Letter9-4-16JICSE Journal
ย 
Doctoral Presentation - July 2023
Doctoral Presentation - July 2023Doctoral Presentation - July 2023
Doctoral Presentation - July 2023CapitolTechU
ย 
Computation of Multi-Agent Based Relative Direction Learning Specification
Computation of Multi-Agent Based Relative Direction Learning SpecificationComputation of Multi-Agent Based Relative Direction Learning Specification
Computation of Multi-Agent Based Relative Direction Learning SpecificationS Rayhan Kabir (Hemel)
ย 
Doctoral Presentation - April 2023.pptx
Doctoral Presentation - April 2023.pptxDoctoral Presentation - April 2023.pptx
Doctoral Presentation - April 2023.pptxCapitolTechU
ย 
Portfolio investment diversification.pdf
Portfolio investment diversification.pdfPortfolio investment diversification.pdf
Portfolio investment diversification.pdfSalmanKhan222894
ย 
Capitol Tech Doctoral Presentation - August 2023.pptx
Capitol Tech Doctoral Presentation - August 2023.pptxCapitol Tech Doctoral Presentation - August 2023.pptx
Capitol Tech Doctoral Presentation - August 2023.pptxCapitolTechU
ย 
Blue Modern Business Marketing Trifold Brochure (6) (2).pdf
Blue Modern Business Marketing Trifold Brochure (6) (2).pdfBlue Modern Business Marketing Trifold Brochure (6) (2).pdf
Blue Modern Business Marketing Trifold Brochure (6) (2).pdfalfred kirubaraj
ย 
Doctoral Presentation Sept 2022.pptx
Doctoral Presentation Sept 2022.pptxDoctoral Presentation Sept 2022.pptx
Doctoral Presentation Sept 2022.pptxCapitolTechU
ย 
File_1614248802_brochure_file.pdf
File_1614248802_brochure_file.pdfFile_1614248802_brochure_file.pdf
File_1614248802_brochure_file.pdfAbhishekMishra546720
ย 

Similar to Data structure-project Queue (20)

3rd icber 2012 booklet program
3rd icber 2012 booklet program3rd icber 2012 booklet program
3rd icber 2012 booklet program
ย 
Doctoral Presentation - January 2023.pptx
Doctoral Presentation - January 2023.pptxDoctoral Presentation - January 2023.pptx
Doctoral Presentation - January 2023.pptx
ย 
Capitol Doctoral Presentation -Sept 2023.pptx
Capitol Doctoral Presentation -Sept 2023.pptxCapitol Doctoral Presentation -Sept 2023.pptx
Capitol Doctoral Presentation -Sept 2023.pptx
ย 
Doctoral Presentation Nov 2022.pptx
Doctoral Presentation Nov 2022.pptxDoctoral Presentation Nov 2022.pptx
Doctoral Presentation Nov 2022.pptx
ย 
Doctoral Presentation - May 2023.pptx
Doctoral Presentation - May 2023.pptxDoctoral Presentation - May 2023.pptx
Doctoral Presentation - May 2023.pptx
ย 
Doctoral Presentation - June 2023.pptx
Doctoral Presentation - June 2023.pptxDoctoral Presentation - June 2023.pptx
Doctoral Presentation - June 2023.pptx
ย 
Doctoral Presentation - March 2023.pptx
Doctoral Presentation - March 2023.pptxDoctoral Presentation - March 2023.pptx
Doctoral Presentation - March 2023.pptx
ย 
Resume of mohammad hafiz bin hamzah
Resume of mohammad hafiz bin hamzahResume of mohammad hafiz bin hamzah
Resume of mohammad hafiz bin hamzah
ย 
Information e booklet
Information e bookletInformation e booklet
Information e booklet
ย 
Doctoral Presentation - February 2023.pptx
Doctoral Presentation - February 2023.pptxDoctoral Presentation - February 2023.pptx
Doctoral Presentation - February 2023.pptx
ย 
Covering Letter9-4-16
Covering Letter9-4-16Covering Letter9-4-16
Covering Letter9-4-16
ย 
Doctoral Presentation - July 2023
Doctoral Presentation - July 2023Doctoral Presentation - July 2023
Doctoral Presentation - July 2023
ย 
Computation of Multi-Agent Based Relative Direction Learning Specification
Computation of Multi-Agent Based Relative Direction Learning SpecificationComputation of Multi-Agent Based Relative Direction Learning Specification
Computation of Multi-Agent Based Relative Direction Learning Specification
ย 
Doctoral Presentation - April 2023.pptx
Doctoral Presentation - April 2023.pptxDoctoral Presentation - April 2023.pptx
Doctoral Presentation - April 2023.pptx
ย 
Portfolio investment diversification.pdf
Portfolio investment diversification.pdfPortfolio investment diversification.pdf
Portfolio investment diversification.pdf
ย 
Capitol Tech Doctoral Presentation - August 2023.pptx
Capitol Tech Doctoral Presentation - August 2023.pptxCapitol Tech Doctoral Presentation - August 2023.pptx
Capitol Tech Doctoral Presentation - August 2023.pptx
ย 
MIFRD - Brochure.pdf
MIFRD - Brochure.pdfMIFRD - Brochure.pdf
MIFRD - Brochure.pdf
ย 
Blue Modern Business Marketing Trifold Brochure (6) (2).pdf
Blue Modern Business Marketing Trifold Brochure (6) (2).pdfBlue Modern Business Marketing Trifold Brochure (6) (2).pdf
Blue Modern Business Marketing Trifold Brochure (6) (2).pdf
ย 
Doctoral Presentation Sept 2022.pptx
Doctoral Presentation Sept 2022.pptxDoctoral Presentation Sept 2022.pptx
Doctoral Presentation Sept 2022.pptx
ย 
File_1614248802_brochure_file.pdf
File_1614248802_brochure_file.pdfFile_1614248802_brochure_file.pdf
File_1614248802_brochure_file.pdf
ย 

More from R.h. Himel

What is worksheet how to prepare worksheet
What is worksheet how to prepare worksheetWhat is worksheet how to prepare worksheet
What is worksheet how to prepare worksheetR.h. Himel
ย 
Sources of finance to start a business
Sources of finance to start a businessSources of finance to start a business
Sources of finance to start a businessR.h. Himel
ย 
Openning a company
Openning a companyOpenning a company
Openning a companyR.h. Himel
ย 
Functional areas of a business
Functional areas of a businessFunctional areas of a business
Functional areas of a businessR.h. Himel
ย 
Financial and managerial accounting
Financial and managerial accountingFinancial and managerial accounting
Financial and managerial accountingR.h. Himel
ย 
Export and import business
Export and import businessExport and import business
Export and import businessR.h. Himel
ย 
Entrepreneurship
EntrepreneurshipEntrepreneurship
EntrepreneurshipR.h. Himel
ย 
Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...R.h. Himel
ย 
Adjusting Entries on Accounting
Adjusting Entries on AccountingAdjusting Entries on Accounting
Adjusting Entries on AccountingR.h. Himel
ย 
How does Ethics important for Accounting
How does Ethics important for AccountingHow does Ethics important for Accounting
How does Ethics important for AccountingR.h. Himel
ย 
Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)R.h. Himel
ย 
Mobile phone
Mobile phone Mobile phone
Mobile phone R.h. Himel
ย 
Mat-131 presentation
Mat-131 presentationMat-131 presentation
Mat-131 presentationR.h. Himel
ย 
Predicates and quantifiers presentation topics
Predicates  and quantifiers  presentation topicsPredicates  and quantifiers  presentation topics
Predicates and quantifiers presentation topicsR.h. Himel
ย 
Isomorphism Graph
Isomorphism Graph Isomorphism Graph
Isomorphism Graph R.h. Himel
ย 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming LanguageR.h. Himel
ย 

More from R.h. Himel (16)

What is worksheet how to prepare worksheet
What is worksheet how to prepare worksheetWhat is worksheet how to prepare worksheet
What is worksheet how to prepare worksheet
ย 
Sources of finance to start a business
Sources of finance to start a businessSources of finance to start a business
Sources of finance to start a business
ย 
Openning a company
Openning a companyOpenning a company
Openning a company
ย 
Functional areas of a business
Functional areas of a businessFunctional areas of a business
Functional areas of a business
ย 
Financial and managerial accounting
Financial and managerial accountingFinancial and managerial accounting
Financial and managerial accounting
ย 
Export and import business
Export and import businessExport and import business
Export and import business
ย 
Entrepreneurship
EntrepreneurshipEntrepreneurship
Entrepreneurship
ย 
Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...
ย 
Adjusting Entries on Accounting
Adjusting Entries on AccountingAdjusting Entries on Accounting
Adjusting Entries on Accounting
ย 
How does Ethics important for Accounting
How does Ethics important for AccountingHow does Ethics important for Accounting
How does Ethics important for Accounting
ย 
Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)
ย 
Mobile phone
Mobile phone Mobile phone
Mobile phone
ย 
Mat-131 presentation
Mat-131 presentationMat-131 presentation
Mat-131 presentation
ย 
Predicates and quantifiers presentation topics
Predicates  and quantifiers  presentation topicsPredicates  and quantifiers  presentation topics
Predicates and quantifiers presentation topics
ย 
Isomorphism Graph
Isomorphism Graph Isomorphism Graph
Isomorphism Graph
ย 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
ย 

Recently uploaded

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoordharasingh5698
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
ย 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Call Girls in Nagpur High Profile
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .DerechoLaboralIndivi
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
ย 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ย 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
ย 

Data structure-project Queue

  • 3. Meherin Amir ID:162-15-7922 B.Sc. in CSE (3rd Semester) Daffodil International University Rakib Hasan ID:162-15-7802 B.Sc. in CSE (3rd Semester) Daffodil International University MD.Rakibur Rahman Khan ID:162-15-7866 B.Sc. in CSE (3rd Semester) Daffodil International University Group Members Mohammod Mahmudul Hasan ID:162-15-7760 B.Sc. in CSE (3rd Semester) Daffodil International University
  • 4. With respect to Dr. Sheak Rashed Haider Noori Associate Professor and Associate Head Department of Computer Science and Engineering Faculty of Science and Information Technology Daffodil International University
  • 6. Contents โ€ข About MDP โ€ข Features of MDP โ€ข Behind the interface
  • 23. The Main Function int main() { head=(node*)malloc(sizeof(node)); head->next=NULL; int query,query2,password; while(1) { printf("n1.For Patientn2.For Doctorn3.For Exitn"); scanf("%d",&query); if(query==1) { Appoint(head); }
  • 24. The Main Function else if(query==2) { printf("nEnter the password(only digits please): "); scanf("%d",&password); printf("n"); if(password==1234) { while(1) { printf("1.Showlistn2.Calln3.Main Menun"); scanf("%d",&query2); if(query2==1) { Showlist(head); continue; }
  • 25. The Main Function else if(query==2) { printf("nEnter the password(only digits please): "); scanf("%d",&password); printf("n"); if(password==1234) { while(1) { printf("1.Showlistn2.Calln3.Main Menun"); scanf("%d",&query2); if(query2==1) { Showlist(head); continue; }
  • 26. The Main Function else if(query2==2) { Call(); continue; } else if(query2==3) { break; } } } else { printf("nWrong passwordn"); printf("Choose the correct option pleasen"); continue; } }
  • 27. The Main Function else if(query2==2) { Call(); continue; } else if(query2==3) { break; } } } else { printf("nWrong passwordn"); printf("Choose the correct option pleasen"); continue; } }
  • 28. The Main Function else if(query=3) { exit(0); } } return 0; }
  • 29. The Appoint Function (En-queue) void Appoint(node *pointer) { printf("n*******Appointment Portal********n"); while(1) { printf("n1.For appointmentn2.For Main Menun3.For exitn"); int query; scanf("%d",&query); if(query==1) { int serial; char name[40]; if(appointment==0) { printf("Appointment not avilablen"); return; }
  • 30. The Appoint Function (En-queue) else if(appointment!=0) { while(pointer->next!=NULL) { pointer=pointer->next; } printf("Write down your name: "); getchar(); gets(name); strcpy(pointer->s,name); while(1) { printf("Write down your phone Number: "); gets(pointer->p); int len=0; len=strlen(pointer->p); if(len!=11) { printf("nInvalid Phone Numbern"); printf("Try agian pleasenn"); continue; }
  • 31. The Appoint Function (En-queue) int i,j=0; for(i=0;pointer->p[i]!=NULL;i++) { if(pointer->p[i]<'0' || pointer->p[i]>'9') { printf("nInvalid Phone Numbern"); printf("nTry again pleasen"); j=1; break; } } if(j==1) { continue; } if(len==11) { break; } }
  • 32. The Appoint Function (En-queue) appointment--; serial=20-appointment; pointer->serial=serial; printf("nAppointment acceptedn"); printf("Your serial number is %dn",serial); pointer->next=(node*)malloc(sizeof(node)); pointer=pointer->next; pointer->next=NULL; continue; } } else if(query==2) { return; } else if(query==3) { exit(0); } } return; }
  • 33. The Showlist Function (Queue Search) void Showlist(node *pointer) { if(pointer->next==NULL) { printf("No more patient presentn"); } while(pointer->next!=NULL) { printf("Serial %d: ",pointer->serial); printf("%sn",pointer->s); printf(" Ph:%sn",pointer->p); pointer=pointer->next; } printf("n"); }
  • 34. The Call Function (De-queue) void Call() { if(head->next!=NULL) { printf("nSerial No:%d %s is callednn",head->serial,head->s); head=head->next; return; } else { printf("nThere is no patient to callnn"); return; } }
  • 35. If you have any questions, you may ask.