Question
Design and implement a Java program that creates a GUI that will allow a user to register for courses at a college. The GUI should
Design and implement a Java program that creates a GUI that will allow a user to register for courses at a college. The GUI should allow the user to input the following information:
Student Name
Year in College (Freshman, Sophomore, Junior or Senior)
Semester/Term (Fall/Spring)
Courses previously taken
Course(s) registering for (user should be able to enter up to 5 courses) and credit(s)
One exception to this rule is if a student takes a 1 credit course the student than can take up to 17 credits.
Once the information is entered the system should check that the student has the perquisite(s) for a course (if required) and that the student has not taken more than five courses (unless exception above occurs).
If the above conditions were met then the system would display the student name, year and semester along with the registered course(s) and their credits.
If the conditions are not met the student should be notified of a registration error and indicate why the student was unable to register for the course(s). For example, a student is missing a prerequisite or too many courses were registered for.
The following is a list of valid courses and their credits and prerequisites:
IT 101: 3 credits, no prerequisite
CS 100: 3 credits, no prerequisite
MATH 138: 3 credits, no prerequisite
HUM 101: 3 credits, no prerequisite
CS 107: 1 credit, no prerequisite
IT 101: 3 credits, no prerequisite
CS 100: 3 credits, no prerequisite
MATH 138: 3 credits, no prerequisite
HUM 101: 3 credits, no prerequisite
CS 107: 1 credit, no prerequisite
CS 113: 3 credits, prerequisite: CS 100
IT 120: 3 credits, no prerequisite
MATH 105: 3 credits, no prerequisite
HUM 102: 3 credits, prerequisite: HUM 101
IT 114: 3 credits, prerequisite: CS113
IT 201: 3 credits, prerequisite: IT101
IT 202: 3 credits, prerequisites: CS 100 or CS113
IS 207: 1 credit, prerequisite: CS107
IS 331: 3 credits, prerequisite: IT202
IT 340: 3 credits, prerequisite: IT120
IT 420: 3 credits, prerequisites: IT120 and CS113
IT 490: 3 credits, prerequisite: IT420
IT 491: 3 credits, prerequisite: Senior standing
CS 407: 1 credit, prerequisites: CS107 and CS207
Make sure error checking is done on all input. If an error is found the customer should be notified.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started