Question: Create an application associated with chapter 3 - This app should contain the following: A Student class. This student class should have the following properties:

Create an application associated with chapter 3 - This app should contain the following:

  • A Student class. This student class should have the following properties:
    • First Name
    • Last Name
    • Street Address
    • City
    • State - 2 digits in length
    • Zip - 5 digits in length (minimum and maximum) (Hint: its easier to make this a String)
    • GPA (from 0.0 to 4.0)
    • Major - String
  • Teacher Class - overrides the student class
  • The main class should
    • Instantiate the student class and prompt the user to enter each of these properties
    • Print out the data from the instantiated class
    • Instantiate the teacher class
    • Print out the data from the instantiated class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!