Question: The program starts with the role selection screen. The user makes the role selection ( student , admin ) . 1 ) Student - After
The program starts with the role selection screen. The user makes the role selection student admin Student After the welcome message, the menu appropriate to the student is displayed. Student makes a selection from the menu; Shows all courses. You can use the list below: Student adds the number of courses heshe chooses to the course card. If heshe wants, heshe can cancel the adding process by saying cancel. Student displays the course card. Student can remove a course from the course card. Student saves the course card. Exits and returns to the role selection screen. Admin After the welcome message, the menu appropriate to the admin is displayed. Admin makes a selection from the menu; List allCourses new ArrayListArraysasList new CourseCMPE "Computer Programming I", "open" new CourseCMPE "Fundamentals of Computing", "closed" new CourseCMPE "Fundamentals of Electronic Components", "open" new CourseCMPE "Computer Programming II "open" new CourseCMPE "Discrete Computational Structures", "closed" new CourseCMPE "ObjectOriented Programming", "open" new CourseCMPE "Data Structures", "closed" new CourseCMPE "Introduction to Microprocessors and Microcontrollers", "open" new CourseCMPE "Algorithms", "closed" new CourseCMPE "Computer Architecture and Organization", "open" new CourseCMPE "Study of Programming Languages", "closed" new CourseCMPE "Summer Practice I", "open" new CourseCMPE "Database Design and Management", "closed" new CourseCMPE "Computer Networks", "open" new CourseCMPE "Formal Languages and Automata", "closed"; Admin can add a new course to courses by adding course id course name, credits, status Admin can delete a course. Exits and returns to the role selection screen. Restrictions: Students should receive the appropriate message when selecting a course that is not on the list or a closed course. Students can take a maximum of credits. They should receive the appropriate message when adding a course that exceeds this number. Students should receive the appropriate message when trying to remove a course that is not on the list or not in the course cart. After submitting the course cart, they should receive the appropriate message when they try to add or remove a course. Admins should receive the appropriate message when trying to add a course that is already on the list. Admins should receive the appropriate message when trying to remove a course that is not on the list. Students or admins should receive the appropriate message when entering an unavailable number in all menus. Use inheritance to create student and admin from users. Use abstract classes or interfaces for showing the entry menu. Use method overriding for customized actions. Handle errors caused by restrictions using exception handling. Implement generics for managing collections of courses or lesson carts. The LessonCart class accepts only objects of type Course.
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
