Problem

a. Create a CollegeStudent class. The class contains data fields that hold a student&#39...

a. Create a CollegeStudent class. The class contains data fields that hold a student's first name, last name, enrollment date, and projected graduation date, using GregorianCalender objects 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 projected graduation date to exactly four years after enrollment. Save the class as CollegeStudent.java.

b. 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 projected graduation dates. Save the application as TestCollegeStudent.java.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT