Main Program Flowchart
Main Program Flowchart
START
1. Doctor
2. Patient
3. Exit
ch=ENTER CHOICE
(1,2,3)
If ch==1 YES D
NO
YES
If ch==2 P
NO
YES
if ch==3
STOP
NO
YES
START
If ch==2 D2
==
NO
1.Add Doctor Record YES
2.Display Record If ch==3 D3
3.Update Record
4.Search Record NO
NO
NO
YES
If ch==6 STOP
NO
Print ‘’Invalid Choice”
FLOWCHART FOR ADDING DOCTOR RECORD
D1
D3
D4
Enter Doctor Id
D5
Enter Doctor Id
NO
YES
START
If ch==2 P2
NO
1.Add Patient Record YES
2.Display Patient Record If ch==3 P3
NO
NO
YES
If ch==6 STOP
NO
Print ‘’Invalid Choice”
FLOWCHART FOR ADDING PATIENT RECORD
P1
P3
P4
Enter Patient Id
P5
Enter Patient Id