Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Science For Dummies

Authors: Lillian Pierson ,Jake Porway

2nd Edition

1119327636, 978-1119327639

More Books

Students also viewed these Databases questions

Question

7. What do performance tasks reveal about intercultural competence?

Answered: 1 week ago

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago