Part 1: Continuing with the exercise from class.
1.1.Allow Undergrads to take a maximum of 18 credits per semester
1.2.Allow Graduate students to take a maximum of 15 credit per semester
1.3.Have a StudentSchedule have a boolean property called part_time. If Undergrad and has less than 12 credits, then part-time should be true.If graduate and has less than 9 credits, than part-time should be true
1.4.A course should allow a maximum of 5 students.Prevent the registration of a course, if course maximum has ben met.
Part2. Student Registration:
Allow a brand new student to register from a command prompt. Ask for
1.First name
2.Last name
3.Middle name
4.Date of birth
5.An id, such as a social security number
6.Personal email
7.A US Phone number
First, Last, and Middle name can only container alphanumeric characters
Date of birth should be in YYYY-MM-DD format, such as 2002-06-15.
Ensure that email is in a proper format by using a regular expression to validate a valid email address.
Phone number should be in###-###-#### such as 123-456-789.Use a regular expression to validate it.
An ID must only contain alphanumeric errors.
Throw an error if the ID already exists
Generate a sacred heart email address for the student in the formatlastname and first initial of first name @sacredheart.edu, such as [email protected]
Generate a unique, student id for the student.
Save the student to a dictionary with the key being the ID that the student provided.
There should be a registration service class to handle all the business logic, student class, and a registration repository class to fake saving the student to a database.