Question: Question 3 5 8 pts Course SWENG 3 1 1 is open for registration to SE students. SE students can take it in their
Question
pts
Course "SWENG is open for registration to SE students. SE students can take it in their rd up to th semester. Given the MyCourse program, implement classes
"Registrar" and "CourseException" for error handling. pts total, pts for each class
public class MyCourse
public static void mainString args Here shows some sample results:
String course args ; raddCourse SWENG
int semester Integer.parseInt ; show SWENGth semester is added.
Registrar new Registrar; raddCourseSWENG
try show Exception: SWENG semester
raddCoursecourse semestr; raddCourseCMPEN
show Exception: no such course.
catchCourseException ce
System.out.printlnce;
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
