-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
28 lines (26 loc) · 788 Bytes
/
main.c
File metadata and controls
28 lines (26 loc) · 788 Bytes
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
#include <stdio.h>
#include "filehandler.c"
int main() {
int choice;
do {
printf("\n----------STUDENT GRADE CALCULATOR----------\n");
printf("1. Add New Record\n");
printf("2. Update Record\n");
printf("3. View All Records\n");
printf("4. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice) {
case 1: addRecord();
break;
case 2: updateRecord();
break;
case 3: viewRecords();
break;
case 4: printf("Exiting program.\n");
break;
default: printf("Invalid choice! Please try again.\n");
}
} while (choice != 4);
return 0;
}