Question: FOR JAVA: Summary: Creating student records. The solution should be named Registrar.java. Include these steps: Create a CollegeStudent class. This class will contain data fields
FOR JAVA:
Summary: Creating student records.
- The solution should be named Registrar.java.
- Include these steps:
- Create a CollegeStudent class. This class will contain data fields that hold a student's first name, last name, enrollment date, and projected graduation date, using the GregorianCalendar class for each date.
- Provide get() and set() methods for each field. Also provide a constructor that requires first and last names and enrollment date, and sets the project graduation date to exactly four years after enrolment. Save the class as CollegeStudent.java.
- Create an interactive application that prompts the user for data for two CollegeStudent objects. Prompt the user for first name, last name, enrollment month, enrollment day, and enrollment year for each CollegeStudent, and then instantiate the objects.
- Display all the values, including the projected graduation dates.
- Save the application as Registrar.java
- Run your program until it works and the output looks nice.
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
