Question: IN JAVA PLEASE In the course menu of the final project, don't delete class if a student is enrolled in it . That is: when
IN JAVA PLEASE
In the course menu of the final project, don't delete class if a student is enrolled in it That is: when the user chooses the option to delete a class, print something like:
"Students are enrolled in that class...Sorry class can't be deleted" when there is a least one student in that class.
Main Menu
: Student Management
: Course Management
: Exit
Enter your selection:
Student Management Menu:
Choose one of:
A Search add a student
B Delete a Student
C Print Fee Invoice
D Print List of Students
X Back to Main Menu
Enter your selection: D
PhD Students
Zydoun BenSellam
Erica Belksiri
MS Students
Caleb Sidi Kacem
Erika Jones
Walid Wali
Undergraduate Students
Ed Johnson
Willian Jones
Kirby Sons
Student Management Menu:
Choose one of:
A Search add a student
B Delete a Student
C Print Fee Invoice
D Print List of Students
X Back to Main Menu
Enter your selection: A
Enter Students ID: ewyye
Invalid id format or ID already exists
Try again later!
Student Management Menu:
Choose one of:
A Search add a student
B Delete a Student
C Print Fee Invoice
D Print List of Students
X Back to Main Menu
Enter your selection: A
Enter Students ID: zb
Student Type PhD MS or Undergrad: PhD
Enter Remaining information
Zaydoun BenSellamGary RichardsonFuzzy Toplology
No need to check anything: we assume that the user enter valid information, including lab numbers!
Zaydoun BenSellam added!
Student Management Menu:
Choose one of:
A Search add a student
B Delete a Student
C Print Fee Invoice
D Print List of Students
X Back to Main Menu
Enter your selection: X
Main Menu
: Student Management
: Course Management
: Exit
Enter your selection:
Take Care!
Understanding the structure of lec.txt
Each line in lec.txt represents a class being offered at Valence College.
A class is either a lecture LEC or a lab LAB A lecture LEC is characterized
by:
Class Number CN a unique fivedigit number assigned for each lecturelab
Prefix like COP
Title like Introduction to Object Oriented Programming
Location like CB
Graduate or undergraduate.
Modality: Online, FacetoFaceFF or Mixed Mode Mixed
If Modality is FF or Mixed, then the following entry is the location where that
class is taking place. The next YESNO field is to specify whether that class
has a lab or not. When a nononline class has a lab, the labs are listed right
after. See below for more information about the labs. Online sections dont have
labs.
Credit hours is the last field of any lecture.
Examples:
COTAdvanced Computer theory,Graduate,FFPSYNo
COTAdvanced Computer theory,Graduate,Mixed,LPSNo
That means that the college offers two sections of COT one is FF and the other
is online. Both of those sections dont have labs.
When a lecture has a lab, the labs information is provided
right after the lecture information
Example:
COP Programming Languages,Graduate,FFCBYES,
MSB
PSY
HSA
That means the COP with cn has three labs. and are the
cns of the labs. MSB PSY and HSA are the buildingroom numbers where
those labs are scheduled to take place.
Note that if the Modality is Online, then the line of the
lec.txt has the form:
CNPREFIX,LECTURE TITLE,GRADUTEUNDERGRADUTEONLINECREDIT HOURS
Example:
SOFIntroduction to Software,Undergraduate,Online,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
