Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

List the different categories of international employees. page 642

Answered: 1 week ago

Question

Explain the legal environments impact on labor relations. page 590

Answered: 1 week ago