Question: computer science assignment Implement a class named Student. Separate definition from implementation (i.e. Header and CPP files). Class Student - separate definition form implementation: 1.


Implement a class named Student. Separate definition from implementation (i.e. Header and CPP files). Class Student - separate definition form implementation: 1. A struct called Address with the following 4 members of type string (street, city, state, and zip). Place this struct in the class' Header file. 2. Private fields: age of type double name of type string mailing Address of type Address physicalAddress of type Address 3. Functions: Non-default Constructor: o 4 parameters: age, name, mailing address, and physical address Initialize all class private variables Destructor to print the following message: Instance removed from memory 4 accessors for each of the private fields 4 getters for each of the private fields Test main() 1. Complete the missing portion of the provided test file. You will need to add the lines of code to create and instance called test Student of type Student 2. Refer to for a sample test run in Figure 1. The test code used in this figure: John_Doe 100 Here_St New_York NY 11001 99 There_St New_York NY 11001 Grading Points 10 Item Class Header and CPP Struct Variables Non-default constructor Destructor Accessors/Mutators Missing main() code Code compiles and run Enter the student's name: John Doe Enter the student's age: 20 Enter the student's mailing address (street, city, state, zip): 100 Here St New York NY 11001 Enter the student's physical address (street, city, state, zip): 99 There St New York NY 11001 Student Info: Name: John_Doe Age: 20 Mailing Address: New York Here_st New York NY Physical Address: There_st 99 There_st New_York Instance removed from memory Figure 1: Sample Test Run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
