Question: C++: Design a Struct Design two structs address and phone Address has the following attributes: street address, city name, state code, zip code. phone has

C++: Design a Struct

Design two structs address and phone

Address has the following attributes: street address, city name, state code, zip code.

phone has 3 numbers: area code, prefix and suffix

test these by writing a program that creates one of each and fills them with the user given info and prints them out.

must have at least two structs in code and two variables of each struct type that are used.

Example run:

Enter address: 4323 SW 6th Ave.

City: Los Angeles

State Code: CA

Zip Code: 90001

Enter Phone number:

Area Code: 907

Prefix: 342

Suffix: 2731

You Entered:

Address: 4323 SW 6th Ave.

Los Angeles, CA 90001

Phone: (907) - 342 - 2731

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!