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 35
8 pts
Course "SWENG311" is open for registration to SE students. SE students can take it in their 3rd up to 10th semester. Given the MyCourse program, implement classes
"Registrar" and "CourseException" for error handling. (8 pts total, 4 pts for each class)
public class MyCourse {
public static void main(String[] args) Here shows some sample results:
String course = args [0];, r.addCourse ("SWENG311",4)
int semester = Integer.parseInt (args[1]);, show SWENG311(4th semester) is added.
Registrar r= new Registrar(); , r.addCourse("SWENG311",2)
try show Exception: SWENG311 semester 10.
r.addCourse(course, semestr); , r.addCourse("CMPEN210",4)
}
show Exception: no such course.
catch(CourseException ce){
System.out.println(ce);
}
}
}
 Question 35 8 pts Course "SWENG311" is open for registration to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!