Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++: Array of contact info Design a contact struct, that takes your phone struct and address struct along with a c string for a name

C++: Array of contact info

Design a contact struct, that takes your phone struct and address struct along with a c string for a name to create a record of contact information.

(

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

) /// this is what it means by your address and phone struct

Test the contact struct by writing a program that creates an array of 50 contact structs.

Allow the user to enter however many contacts and use a for loop to allow the user to enter data for each contact

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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