Question: NO ARRAYS and NO SYS.OUT onlu use JOP please help!!! You have been hired by a University to create and manage their course registration portal.

NO ARRAYS and NO SYS.OUT onlu use JOP please help!!!

You have been hired by a University to create and manage their course registration portal. The university is offering six IT courses in Fall 2023. Each course has a course number, course name, credit hour, and current enrollment. The course number must be 5 characters long. The maximum enrollment for each course is 30 students. The current enrollment should be no greater than the maximum enrollment. A course can have a maximum of 4 credit hour.

Design and implement a modular solution for the above task. Your solution must have the following methods:

Get Course Number: This method should prompt the user for a course number, validate the number, if its invalid show an error message and re-prompt. At the end, the method should return a valid course number.

Get Course Name: This method should prompt the user for a course name. The course name cannot be empty. If the user provides an empty string, show an error message and re-prompt. At the end, the method should return a valid course name.

Get Credit Hour: This method should prompt the user for a course credit hour, validate the input, if its invalid show an error message and re-prompt. At the end, the method should return a valid credit hour.

Get Enrollment: This method should prompt the user for a courses current enrollment, validate the input, if its invalid show an error message and re-prompt. At the end, the method should return the valid input. Print Course Details: This method should print all the information of the courses entered. This method should also print the maximum and average enrollment over all the courses.

NO ARRAYS and NO SYS.OUT onlu use JOP please help!!! You have

been hired by a University to create and manage their course registration

Sample Input/Output Enter Details for Course 01: Enter Course Number: IT106 Enter Course Name: Intro to Programming Enter Credit Hour: 4 Enter Current Enrollment: 27 Enter Details for Course 02: Enter Course Number: IT206 Enter Course Name: OOP Enter Credit Hour: 4 Enter Current Enrollment: 29 Enter Details for Course 03: Enter Course Number: IT109 Enter Course Name: Intro. Programming. Enter Credit Hour: 4 Enter Current Enrollment: 20 Enter Details for Course 04: Enter Course Number: IT191 Enter Course Name: Computer Fundamentals. Enter Credit Hour: 3 Enter Current Enrollment: 12 Enter Details for Course 05 : Enter Course Number: IT102 Enter Course Name: Discrete Math Enter Credit Hour: 4 Enter Current Enrollment: 27 Enter Details for Course 06: Enter Course Number: IT207 Enter Course Name: Applied IT Programming Enter Credit Hour: 3 Enter Current Enrollment: 15 Sample output Message Course Details Course Number| Course Name| Credit Hourl Enrollment IT106 | Intro to Programming | 4. 27 IT206 | OOP | 3.0 | 29 IT109 | Intro Programming| 4.0| 20 IT191 | Computer Fundamental | 3.0 | 12 IT102 | Discrete Math | 4.0 | 27 IT207 | Applied IT Programmming | 3.0 | 15 The maximum enrollment is 29 in IT106 The Average enrollment is 21

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!