-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
1285 lines (787 loc) · 32.1 KB
/
Main.java
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
import javax.sound.midi.Soundbank;
import java.util.*;
class Project{
int course;
String projectTitle;
private String projectMembers;
int projectSize;
private String projectInfo;
public void print(){
System.out.print("Project Title: ");
System.out.println(projectTitle);
System.out.print("Number of Project Members: ");
System.out.println(projectSize);
if (projectMembers != null && projectInfo != null ){
System.out.print("Project Members: ");
System.out.println(projectMembers);
System.out.print("Project Information: ");
System.out.println(projectInfo);
}
}
Project(int cousre){
switch (cousre){
case 1:{
projectTitle = "Software Tutorial";
projectSize = 3;
break;
}
case 2:{
projectTitle = "Hackathon ";
projectSize = 1;
break;
}
case 3:{
projectTitle = "Hackathon";
projectSize = 1;
break;
}
case 4:{
projectTitle = "3 - Skits Related to Organization Behavior";
projectSize = 4;
break;
}
case 5:{
projectTitle = "Role Play";
projectSize = 4;
break;
}
case 6:{
projectTitle = "Collect Responses";
projectSize = 4;
break;
}
default:{
System.out.println("Invalid Course");
}
}
}
public String getProjectMembers() {
return projectMembers;
}
public void setProjectMembers(String projectMembers) {
this.projectMembers = projectMembers;
}
public void setProjectInfo(String projectInfo) {
this.projectInfo = projectInfo;
}
public String getProjectInfo() {
return projectInfo;
}
}
class SZABIST {
// Data Require for Both (Students and Faculty)
int regNo;
String name;
String prgram;
public void WelcomeMessage(){
System.out.println("Welcome to SZABIST University");
}
public void start(){
System.out.println("Please Enter Your Information");
}
}
class Students extends SZABIST{
// Data of Student
int semester;
double CGPA;
Students(String name,int regNo,int semester,double CGPA,String prgram){
// Constructor taking and Assigning the Data of Student
this.name = name;
this.CGPA = CGPA;
this.prgram = prgram;
this.regNo = regNo;
}
public int menu(){
// Menu for performing tasks for students
Scanner sc = new Scanner(System.in);
System.out.println("Hello " + name + "! Welcome to this awesome code.");
System.out.println("Tasks as a Student");
System.out.println("1. Calculate Days Remaining in University");
System.out.println("2. Check Your Grade");
System.out.println("3. Calculate Your Result(Only for BSSE 1st Semester)");
System.out.println("4. Class Schedule");
System.out.println("5. Exams Date");
System.out.println("6. Project");
System.out.println("7. Gaming Section");
System.out.println("8. Actual Calculator");
System.out.println("10. Exit");
System.out.print("Input: ");
int temp = sc.nextInt();
return temp;
}
public void daysCount(int semester){
// Function used to count remaining day in university
String temp = " ";
temp += prgram.charAt(0);
if(temp.compareTo(" B") == 0) {
int temp1 = 0;
temp1 = temp1 + 8;
temp1 = temp1 - semester;
temp1++;
System.out.print("Remaining Days in SZABIST: ");
System.out.println(temp1 * 182.5);
}
else if(temp.compareTo(" M") == 0){
int temp1 = 0;
temp1 = temp1 + 4;
temp1 = temp1 - semester;
temp1++;
System.out.print("Remaining Days in SZABIST: ");
System.out.println(temp1 * 182.5);
}
else if (temp.compareTo(" P") == 0) {
int temp1 = 0;
temp1 = temp1 + 6;
temp1 = temp1 - semester;
temp1++;
System.out.print("Remaining Days in SZABIST: ");
System.out.println(temp1 * 182.5);
}
else{
System.out.println("Invalid Program ! / dekh kar program daal");
}
System.out.println();
}
public void exam(){
// Exams , Dead Week Date
Scanner sc = new Scanner(System.in);
System.out.println("Choose One: ");
System.out.print("(Midterm / Final / Dead Week): ");
String exam = sc.nextLine();
if(exam.compareTo("Midterm") == 0 || exam.compareTo("midterm") == 0 || exam.compareTo("Mid") == 0 || exam.compareTo("mid") == 0){
System.out.println();
System.out.print("Midterm Exams Date: ");
System.out.println("3rd April 2024 - 8th April 2024 ");
System.out.println();
}
else if (exam.compareTo("Final") == 0 || exam.compareTo("final") == 0) {
System.out.println();
System.out.print("Final Exams Date: ");
System.out.println("5th June 2024 - 18th June 2024");
System.out.println();
}
else if (exam.compareTo("dead week") == 0 || exam.compareTo("Dead Week") == 0 || exam.compareTo("Dead week") == 0 || exam.compareTo("dead Week") == 0) {
System.out.println();
System.out.print("Dead Week Date: ");
System.out.println("29th May 2024 - 4th June 2024");
System.out.println();
}
else{
System.out.println("Invalid Choice");
System.out.println();
}
}
public void result(){
// To Calculate Your GPA
Scanner sc = new Scanner(System.in);
System.out.println("Welcome to Result Calculator");
System.out.println("For BSSE ");
System.out.println("Now Enter Marks For 3 Weightage Subject");
System.out.println();
System.out.print("English: ");
float eng = sc.nextFloat();
System.out.print("FOP Theory: ");
float Fop_Th = sc.nextFloat();
System.out.print("Calculus: ");
float Cal = sc.nextFloat();
System.out.println();
System.out.println("Now Enter Marks For 2 Weightage Subject");
System.out.println();
System.out.print("Physics Theory: ");
float Phys_Th = sc.nextFloat();
System.out.print("ITC Theory: ");
float ITC_Th = sc.nextFloat();
System.out.print("Pak Studies: ");
float Pak = sc.nextFloat();
System.out.println();
System.out.println("Now Enter Marks For 1 Weightage Subject");
System.out.println();
System.out.print("FOP Lab: ");
float Fop_lab = sc.nextFloat();
System.out.print("Physics Lab: ");
float Phy_lab = sc.nextFloat();
System.out.print("ITC Lab: ");
float ITC_lab = sc.nextFloat();
System.out.println();
float sum1 = Fop_lab + Phy_lab + ITC_lab;
float sum2 = Phys_Th + ITC_Th + Pak;
float sum3 = Cal + eng + Fop_Th;
sum1 /= 3;
sum2 /= 2;
float sum = sum1 + sum2 + sum3;
float avg = sum / 550;
float per = avg *100;
System.out.println("Percentage: "+ per);
System.out.println();
double GPA;
if(per >= 90 && per <= 100){
GPA = 4.0;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: A+");
}
else if(per >= 85 && per < 90){
GPA = 3.75;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: A");
}
else if(per >= 80 && per < 85){
GPA = 3.5;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: A-");
}
else if(per >= 75 && per < 80){
GPA= 3.25;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: B+");
}
else if(per >= 70 && per < 75){
GPA = 3.0;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: B");
}
else if(per >=66 && per < 70){
GPA = 2.75;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: B-");
}
else if(per >= 63 && per < 66 ){
GPA = 2.5;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: C+");
}
else if(per >= 60 && per < 63){
GPA = 2.0;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: C");
}
else if(per >= 55 && per < 60){
GPA = 1.5;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: C-");
}
else if(per >= 0 && per < 55){
GPA = 0.0;
System.out.println("CGPA: "+ GPA);
System.out.println("Grade: FAIL");
}
else{
System.out.println("Invalid Input or Error !");
}
}
public void grade(){
// To Get Your Grade
if(CGPA >= 4.00 && CGPA <= 4.00){
System.out.println("Grade: A+");
}
else if(CGPA >= 3.75 && CGPA < 4.00){
System.out.println("Grade: A");
}
else if(CGPA >= 3.50 && CGPA < 3.75){
System.out.println("Grade: A-");
}
else if(CGPA >= 3.25 && CGPA < 3.50){
System.out.println("Grade: B+");
}
else if(CGPA >= 3.00 && CGPA < 3.25){
System.out.println("Grade: B");
}
else if(CGPA >= 2.75 && CGPA < 3.00){
System.out.println("Grade: B-");
}
else if(CGPA >= 2.50 && CGPA < 2.75){
System.out.println("Grade: C+");
}
else if(CGPA >= 2.00 && CGPA < 2.50){
System.out.println("Grade: C");
}
else if(CGPA >= 1.5 && CGPA < 2.0){
System.out.println("Grade: C-");
}
else if(CGPA >= 0.00 && CGPA < 1.50){
System.out.println("Grade: FAIL");
}
else{
System.out.println("Invalid Input or Error !");
}
}
public void student(){
// A Message on their Degree
String temp = " ";
temp += prgram.charAt(0);
if(temp.compareTo(" B") == 0) {
System.out.println("Hope You are enjoying your 4 years journey in SZABIST");
System.out.println();
System.out.println("Embarking on your Bachelor's journey is a significant milestone filled with opportunities for growth and learning. Wishing you an enriching and rewarding experience as you delve into your academic pursuits");
}
else if(temp.compareTo(" M") == 0){
System.out.println("As you commence your Master's journey, may each lecture be enlightening, every assignment be a step towards expertise, and every challenge be an opportunity for growth. Embrace the depth of knowledge and the camaraderie of academia. Best of luck on this exciting chapter of your academic pursuit. Your dedication is commendable, and your success is inevitable!");
System.out.println();
System.out.println("Hope Your Masters Degree Will Help in your Career");
}
else if (temp.compareTo(" P") == 0) {
System.out.println("Embarking on the challenging yet incredibly rewarding journey of pursuing a Ph.D. is a testament to your dedication and passion for knowledge. May your research be groundbreaking, your insights profound, and your academic journey fulfilling. Wishing you perseverance, inspiration, and the joy that comes with pushing the boundaries of understanding. Here's to a successful and enriching Ph.D. journey!");
System.out.println();
}
else{
System.out.println("Invalid Program ! / dekh kar program daal");
}
System.out.println();
}
public void ClassSchedule(){
// Class Schedule
Scanner sc = new Scanner(System.in);
int nnn = 0; // use to count number of changes in Schedule
// used for that days that have no changes in Current Schedule
int tempMon = 0;
int tempTues = 0;
int tempWed = 0;
int tempThurs = 0;
int tempFri = 0;
int tempSat = 0;
String monday = "No Class";
String monTime = "N/A";
String Tuesday = "Object Oriented Programming (OPP) Lab";
String tuesTime = "3:00 - 6:00";
String Wednesday = "Software Engineering";
String wedTime = "11:30 - 2:30";
String Thursday = "Communication Presentation Skills (CPS) , Organizational Behaviour(OB)";
String thursTime = "3:00 - 6:00 , 6:30 - 9:00";
String Friday = "Object Oriented Programming (OPP) Theory, Islamiyat";
String friTime = "9:00 - 12:00 , 3:00 - 6:00";
String Saturday = "Discrete Mathematics";
String satTime = "11:30 - 2:30";
System.out.print("Do You want add any Changes to your current Schedule: ");
String changes = sc.nextLine();
if(changes.compareTo("No") == 0 || changes.compareTo("no") == 0) {
monday = "No Class";
monTime = "N/A";
Tuesday = "Object Oriented Programming (OPP) Lab";
tuesTime = "3:00 - 6:00";
Wednesday = "Software Engineering";
wedTime = "11:30 - 2:30";
Thursday = "Communication Presentation Skills (CPS) , Organizational Behaviour(OB)";
thursTime = "3:00 - 6:00 , 6:30 - 9:00";
Friday = "Object Oriented Programming (OPP) Theory, Islamiyat";
friTime = "9:00 - 12:00 , 3:00 - 6:00";
Saturday = "Discrete Mathematics";
satTime = "11:30 - 2:30";
}
else if(changes.compareTo("yes") == 0 || changes.compareTo("Yes") == 0) {
do {
System.out.print("Day you want to change: ");
String changes0 = sc.nextLine();
if (changes0.compareTo("Monday") == 0 || changes0.compareTo("monday") == 0) {
System.out.print("Monday Classes: ");
monday = sc.nextLine();
System.out.print("Monday Class Timing: ");
monTime = sc.nextLine();
tempMon++;
} else if (changes0.compareTo("Tuesday") == 0 || changes0.compareTo("tuesday") == 0) {
System.out.print("Tuesday Classes: ");
Tuesday = sc.nextLine();
System.out.print("Tuesday Class Timing: ");
tuesTime = sc.nextLine();
tempTues++;
} else if (changes0.compareTo("Wednesday") == 0 || changes0.compareTo("wednesday") == 0) {
System.out.print("Wednesday Classes: ");
Wednesday = sc.nextLine();
System.out.print("Wednesday Class Timing: ");
wedTime = sc.nextLine();
tempWed = tempWed + 1;
} else if (changes0.compareTo("Thursday") == 0 || changes0.compareTo("thursday") == 0) {
System.out.print("Thursday Classes: ");
Thursday = sc.nextLine();
System.out.print("Thursday Class Timing: ");
thursTime = sc.nextLine();
tempThurs++;
} else if (changes0.compareTo("Friday") == 0 || changes0.compareTo("friday") == 0) {
System.out.print("Friday Classes: ");
Friday = sc.nextLine();
System.out.print("Friday Class Timing: ");
friTime = sc.nextLine();
tempFri++;
} else if (changes0.compareTo("Saturday") == 0 || changes0.compareTo("saturday") == 0) {
System.out.print("Saturday Classes: ");
Saturday = sc.nextLine();
System.out.print("saturday Class Timing: ");
satTime = sc.nextLine();
tempSat++;
} else if (changes0.compareTo("Sunday") == 0 || changes0.compareTo("sunday") == 0) {
System.out.println("Choro Sunday ki Classes Ko");
} else {
System.out.println("Invalid Day");
}
System.out.print("Do you want to do more changes: ");
String nn = sc.nextLine();
if (nn.compareTo("Yes") == 0 || nn.compareTo("yes") == 0) {
nnn = 0;
}
else if (nn.compareTo("No") == 0 || nn.compareTo("no") == 0) {
nnn = 1;
}
}while (nnn != 1);
}
if (tempMon == 0 ){
monday = "No Class";
monTime = "N/A";
}
else if (tempTues == 0) {
Tuesday = "Object Oriented Programming (OPP) Lab";
tuesTime = "3:00 - 6:00";
}
else if (tempWed == 0) {
Wednesday = "Software Engineering";
wedTime = "11:30 - 2:30";
}
else if (tempThurs == 0) {
Thursday = "Communication Presentation Skills (CPS) , Organizational Behaviour(OB)";
thursTime = "3:00 - 6:00 , 6:30 - 9:00";
}
else if (tempFri == 0) {
Friday = "Object Oriented Programming (OPP) Theory, Islamiyat";
friTime = "9:00 - 12:00 , 3:00 - 6:00";
}
else if (tempSat == 0) {
Saturday = "Discrete Mathematics";
satTime = "11:30 - 2:30";
}
System.out.print("Day's Schedule you want: ");
String day = sc.nextLine();
if (day.compareTo("Monday")== 0 || day.compareTo("monday")== 0){
System.out.println("Classes on Monday");
System.out.println("Class: " + monday);
System.out.println("Timing: " + monTime);
}
else if (day.compareTo("Tuesday") == 0 || day.compareTo("tuesday") == 0) {
System.out.println("Classes on Tuesday");
System.out.println("Class: " + Tuesday);
System.out.println("Timing: " + tuesTime);
}
else if (day.compareTo("Wednesday") == 0 || day.compareTo("wednesday") == 0) {
System.out.println("Classes on Wednesday");
System.out.println("Class: " + Wednesday);
System.out.println("Timing: " + wedTime);
}
else if (day.compareTo("Thursday") == 0 || day.compareTo("thursday") == 0) {
System.out.println("Classes on Thursday");
System.out.println("Class: " + Thursday);
System.out.println("Timing: " + thursTime);
}
else if (day.compareTo("Friday") == 0 || day.compareTo("friday") == 0) {
System.out.println("Classes on Friday");
System.out.println("Class: " + Friday);
System.out.println("Timing: " + friTime);
}
else if (day.compareTo("Saturday") == 0 || day.compareTo("saturday") == 0) {
System.out.println("Classes on Saturday");
System.out.println("Class: " + Saturday);
System.out.println("Timing: " + satTime);
}
else if (day.compareTo("Sunday") == 0 || day.compareTo("sunday") == 0) {
System.out.println("Sunday ko bhi Chutti nhi hai ?");
}
else {
System.out.println("Invalid Day");
}
}
public void GameMenu(){
System.out.println("1. Rock Paper Scissors");
System.out.println("2. Tic Tac Toe ");
System.out.println("3. Snake Game");
System.out.println("4. Exit To Main Menu");
}
public void project(){
Scanner sc = new Scanner(System.in);
System.out.println("Courses");
System.out.println("Software Engineering - 1");
System.out.println("Object Oriented Programming - 2");
System.out.println("Object Oriented Programming Lab - 3");
System.out.println("Organizational Behavior - 4");
System.out.println("Communication Presentation Skills - 5");
System.out.println("Discrete Mathematics - 6");
System.out.println();
System.out.println("Choose Course: ");
int course = sc.nextInt();
switch (course){
case 1:{
Project softwareEng = new Project(1);
softwareEng.setProjectMembers( this.name + " , Mohibba Fatima Khan");
softwareEng.setProjectInfo("Asana Software Tutorial and Simulation");
softwareEng.print();
break;
}
case 2:{
Project OPPth = new Project(2);
OPPth.setProjectMembers(this.name);
OPPth.setProjectInfo("Task will be Assign by Sir Khalid ");
OPPth.print();
break;
}
case 3:{
Project OPPlab = new Project(3);
OPPlab.setProjectInfo("Same As Sir Khalid");
OPPlab.setProjectMembers(this.name);
OPPlab.print();
break;
}
case 4:{
Project OB = new Project(4);
OB.setProjectMembers(this.name + " , Rabi Khan , Rohaan Ali , Iqra Qasim");
OB.setProjectInfo("Office Politics , Gender Discrimination , Maslow’s Hierarchy");
OB.print();
break;
}
case 5:{
Project CPS = new Project(5);
CPS.setProjectInfo("Vlogging / Ad Shoot / Acting ");
CPS.setProjectMembers(this.name + " , Iqra Qasim , Rohaan Ali , Mehmood Rashid , Junaid Waqar");
CPS.print();
break;
}
case 6:{
Project DMS = new Project(6);
DMS.setProjectMembers(this.name + " , Rabi Khan , Iqra Qasim");
DMS.setProjectInfo("150 - Responses ");
DMS.print();
break;
}
default:{
System.out.println("Inavlid Course");
}
}
}
public void extra_feed(){
// Used to provide a menu for feedback
System.out.println();
System.out.println("Please give your Feedback in one word");
System.out.println("Best");
System.out.println("Good");
System.out.println("Average");
System.out.println("Worst");
System.out.println("Not interested");
System.out.println("(Please Give Input using Same Words)");
System.out.println();
}
public void student(String feedback){
// Used to take Feedback
if (feedback.compareTo("Good") == 0 || feedback.compareTo("good") == 0 ){
System.out.println("We are glad to hear that you think the university is good! It's important to have a positive experience.");
}
else if (feedback.compareTo("best") == 0 || feedback.compareTo("Best") == 0) {
System.out.println("Wow! It's fantastic to hear that you consider the university the best. That's quite an accomplishment!");
System.out.println();
System.out.println("Wese esaa kiya dekh gaya SZABIST mai ?");
}
else if (feedback.compareTo("Average") == 0 || feedback.compareTo("average") == 0) {
System.out.println("Theek Hai");
}
else if(feedback.compareTo("Worst") == 0 || feedback.compareTo("worst") == 0){
System.out.println("We're sorry to hear that you feel this way. Your feedback is valuable, and we appreciate your honesty.");
}
else if (feedback.compareTo("Not") == 0 || feedback.compareTo("Not interested") == 0 || feedback.compareTo("not") == 0 || feedback.compareTo("not Interested") == 0 ) {
System.out.println("Phir phele Yes kyu bola ?");
}
else {
System.out.println("Please Dekh kar Feedback de");
}
System.out.println();
}
}
class Faculty extends SZABIST{
Double salary;
int rank;
int[] attendence;
public int menu(){
Scanner sc = new Scanner(System.in);
System.out.println("Hello " + name + "! Welcome to this awesome code.");
System.out.println("Tasks as a Faculty");
System.out.println("1. Take Attendance");
System.out.println("2. View Attendance ");
System.out.println("4. Exit");
System.out.print("Input: ");
int temp = sc.nextInt();
return temp;
}
public void takeAttendence(){
Scanner sc = new Scanner(System.in);
System.out.print("Number of Students: ");
int students = sc.nextInt();
int temp = 1;
attendence = new int[students];
System.out.println("If student is present press 1 or press 0 if student is absent");
for (int i = 0; i < students; i++) {
System.out.print("Student - " + temp + " : " );
attendence[i] = sc.nextInt();
temp++;
}
}
public void printAtttendence(){
Scanner sc = new Scanner(System.in);
System.out.print("Number of Students: ");
int students = sc.nextInt();
int temp = 1;
for (int i = 0; i < students; i++) {