SlideShare a Scribd company logo
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

PPTX
What is worksheet how to prepare worksheet
PPT
Sources of finance to start a business
PPTX
Openning a company
PPTX
Functional areas of a business
PPTX
Financial and managerial accounting
PPTX
Export and import business
PPTX
Entrepreneurship
PPTX
Does an engineering student have to study different types of non engineering ...
What is worksheet how to prepare worksheet
Sources of finance to start a business
Openning a company
Functional areas of a business
Financial and managerial accounting
Export and import business
Entrepreneurship
Does an engineering student have to study different types of non engineering ...

More from R.h. Himel (8)

PPTX
Adjusting Entries on Accounting
PPTX
How does Ethics important for Accounting
PPTX
Corporate social and responsibility (CRS)
PPTX
Mobile phone
PPTX
Mat-131 presentation
PPTX
Predicates and quantifiers presentation topics
PPTX
Isomorphism Graph
PPTX
Phython Programming Language
Adjusting Entries on Accounting
How does Ethics important for Accounting
Corporate social and responsibility (CRS)
Mobile phone
Mat-131 presentation
Predicates and quantifiers presentation topics
Isomorphism Graph
Phython Programming Language
Ad

Recently uploaded (20)

PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
UNIT - 3 Total quality Management .pptx
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
introduction to datamining and warehousing
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PPTX
Artificial Intelligence
PDF
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
R24 SURVEYING LAB MANUAL for civil enggi
UNIT - 3 Total quality Management .pptx
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
introduction to datamining and warehousing
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Information Storage and Retrieval Techniques Unit III
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Nature of X-rays, X- Ray Equipment, Fluoroscopy
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Artificial Intelligence
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Ad

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.