Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ You are writing a customer contact application. • Each customer has two addr

ID: 3672753 • Letter: C

Question

C++

You are writing a customer contact application. •

Each customer has two addresses, a home address and a business address.

• Each customer address has a customer name, a street, city, state, and zip code.

• Create a program that enables the user to input and display two addresses each for 20 customers.

• In the display, arrange the output in two columns, one for the home address, and the other for the business address.

• Use one array of structs for the home address, and another, parallel array of structs for the business address.

• Keep in mind that the two addresses for each customer are likely to differ.

Explanation / Answer

#include<iostream>

using namespace std;

int menu();

void enter();

void report();

char name[20][80];

char address[20][80];

int choice;

int main()

{

{

choice=menu();

switch (choice)

{

case 0:break;

case 1:enter();

break;

case 2:report();

break;

default:cout<<"Try again. "

}

while(choice!=0);

return 0;

}

}

}

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote