-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforFaculty.c
More file actions
53 lines (41 loc) · 928 Bytes
/
forFaculty.c
File metadata and controls
53 lines (41 loc) · 928 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdio.h>
#include <stdbool.h>
void newStudent(void);
void changeStudent(void);
void showStudent(void);
void searchStudent(void);
void forFaculty(void)
{
int mode = 0;
char con = 0;
printf("\n-----Managing System For Faculty-----\n");
do
{
printf("Mode:\n\
1. Register new students' informations\n\
2. Change students' informations\n\
3. Show all students\n\
4. Search students' informations by ID, Phone number, E-mail address\n");
printf("Select Mode: ");
scanf("%d", &mode);
switch(mode)
{
case 1:
newStudent();
break;
case 2:
changeStudent();
break;
case 3:
showStudent();
break;
case 4:
searchStudent();
break;
default:
printf("Wrong Input. Try Again\n");
}
printf("\ncontinue faculty mode?(y/n): ");
scanf(" %c", &con);
}while(con == 'y');
}