Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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