Question: Using the example provided in class, create a class declaration for student data with the following specifications: The class name should be StudentType. There should

Using the example provided in class, create a class declaration for student data with the following specifications:

The class name should be StudentType.

There should be 5 public members:

- name (first and last together separated by a space) - classification (freshman = f, sophomore = s, junior = j, senior = sr) - hometown (city, state) - id (a 5 digit number) - show_public_info (will show all public data for a student)

There should be 1 private member:

- gpa (based on a 4.0 scale)

The show_info member is a function but does not need to be implemented.

The member variables do not need default values.

code must be done in c++

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!