Question: SOLUTION PLEASE #include #include #include Student.h using namespace std; int main() { double age; string name; string street0, city0, state0, zip0, street1, city1, state1, zip1;
SOLUTION PLEASE
#include#include #include "Student.h" using namespace std; int main() { double age; string name; string street0, city0, state0, zip0, street1, city1, state1, zip1; cout << "Enter the student's name: "; cin >> name; cout << "Enter the student's age: "; cin >> age; cout << "Enter the student's mailing address (street, city, state, zip): "; cin >> street0 >> city0 >> state0 >> zip0; cout << "Enter the student's physical address (street, city, state, zip): "; cin >> street1 >> city1 >> state1 >> zip1; // Add the proper lines of codes to create an instance of type Student. Name this instance testStudent // Note the next few lines of code will not compile until testStudent is declared and initialized // Printing using accessors cout << "Student Info:" << endl; cout << "\tName: " << testStudent.getName() << endl; cout << "\tAge: " << testStudent.getAge() << endl; cout << "Mailing Address: " << endl << "\t" << testStudent.getMailingAddress().state << endl << "\t" << testStudent.getMailingAddress().city << endl << "\t" << testStudent.getMailingAddress().state << endl << "\t" << testStudent.getMailingAddress().zip << endl; cout << "Physical Address:" << endl << "\t" << testStudent.getPhysicalAddress().state << endl << "\t" << testStudent.getPhysicalAddress().city << endl << "\t" << testStudent.getPhysicalAddress().state << endl << "\t" << testStudent.getPhysicalAddress().zip << endl; return 0; }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
