Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment due soon please C++ Class Student - separate definition form implementation: 1. A struct called Address with the following 4 members of type string

Assignment due soon please
C++ image text in transcribed
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 o 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 testStudent of type Student. 2. Refer to for a sample test run in Figure 1. The test code used in this figure: John_Doe 20 100 Here_St New_York NY 11001 99 There_St New_York NY 11001 Grading Points 10 10 Item Class Header and CPP Struct Variables Non-default constructor Destructor Accessors/Mutators Missing main() code Code compiles and run 20 10 1 10 15 10 100

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

More Books

Students also viewed these Databases questions

Question

Explain the activity of the appetite hormones insulin and leptin.

Answered: 1 week ago

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago