Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

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

Students also viewed these Databases questions