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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started