Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been hired by UMD to create and manage their course registration portal. The university is offering six IT courses in Fall 2023. Each

You have been hired by UMD 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 hours. 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.

Your solution must use Modular Programming.(must use methods) Your solution must not use arrays. Your solution must contain appropriate validation. Try to think about what might be considered appropriate as you are designing your solution beyond what has already been explicitly provided. You must use the JOptionPane class for input/output. Additionally, if you use System.exit, it may only be used as the absolute last line in the program. You may not use System.exit, or any variant that exits the program in the middle of the program. The program should be designed to only exit once the algorithm has finished.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

What are the challenges associated with tunneling in urban areas?

Answered: 1 week ago

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago