-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainMenu.c
More file actions
49 lines (46 loc) · 1.05 KB
/
mainMenu.c
File metadata and controls
49 lines (46 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Arshad Khalid Nazir (TP058473)
12 October 2020 */
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include "details.h"
/*This is going to be the main menu of the system
and all the functions from the other sources are going to be ran here*/
int main()
{
int choice;
do{
getData();
printf("\n\n~~~~~~~~ ZEE MEDI LIFE INSURANCE ~~~~~~~~\n\n");
printf("1) Insurance Plan Subscription\n");
printf("2) Claim Processing\n");
printf("3) Account Information\n");
printf("4) Search\n");
printf("5) Exit\n\n");
printf("Option: ");
scanf_s("%d", &choice);
if (choice == 0) {
printf("Invalid Input, please try again");
continue;
}
if (choice > 5) {
printf("Invalid Input, please try again");
continue;
}
if (choice == 1) {
subscriberDetails();
continue;
}
if (choice == 2) {
claimProcess();
continue;
}
if (choice == 3) {
accountsInformation();
continue;
}
if (choice == 4) {
search();
}
} while (choice !=5);
return 0;
}