-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMarksMain.java
More file actions
45 lines (37 loc) · 2.03 KB
/
MarksMain.java
File metadata and controls
45 lines (37 loc) · 2.03 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
package TeacherRegister;
import java.util.Scanner;
public class MarksMain {
public static void main(String[] args) throws ClassNotFoundException {
System.out.println("*\t*\t*\t*\t*\tTeachers Register V0.8-BETA\t*\t*\t*\t*\t*");
System.out.println("*\t \t \t \t \t \t \t \t \t \t*");
System.out.println("*\t Welcome to the ALL IN ONE teachers register where you can enter and store your \t \t*");
System.out.println("*\t students marks. Follow the menu below to get started. \t \t*");
System.out.println("*\t Follow the menu below. \t \t*");
System.out.println("*\t \t \t \t \t \t \t \t \t \t*");
Methods.menu();
char yn = 'y';
while(yn == 'y') {
System.out.println("Still want to do more operations? (yes y or no n)");
Scanner sct = new Scanner(System.in);
yn = sct.next().charAt(0);
switch(yn) {
case 'y':
System.out.println("*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*");
System.out.println("*\t Follow the menu below. \t \t*");
Methods.menu();
break;
case 'n':
break;
default:
System.out.println("*\t*\t*\t*\t*\t ERROR PLEASE TRY AGAIN \t*\t*\t*\t*\t*");
System.out.println("*\t Follow the menu below. \t \t*");
Methods.menu();
}
}
System.out.println("*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*");
System.out.println("*\t \t \t \t \t \t \t \t \t \t*");
System.out.println("*\t Program terminated, Thank you for using Teachers Register V0.8-BETA. \t \t*");
System.out.println("*\t \t \t \t \t \t \t \t \t \t*");
System.out.println("*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*\t*");
}
}