subject
Engineering, 29.09.2020 14:01 claftonaustin846

Q3: • A phone number, such as (212) 767-8900, can be thought of as having three parts: the area code (212), the exchange (767), and the number (8900). Write a program that uses a structure to store these three parts of a phone number separately. Call the structure phone.
• Create two structure variables of type phone. Initialize one, and have the user input a number for the other one. Then display both numbers.
The interchange might look like this:
Enter area code:
Enter exchange,
Enter number: 415 555 1212
Then display like below:
• My number is (212) 767-8900
• Your number is (415) 555-1212

Q4: Modify the program in Q3 so that the program asks names of 10 persons and also phone numbers. Use the phone structure in the previous exercise and create another structure that includes names of persons and phone structure.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
You know the right answer?
Q3: • A phone number, such as (212) 767-8900, can be thought of as having three parts: the area cod...
Questions
question
English, 25.10.2019 18:43
question
English, 25.10.2019 18:43
question
Computers and Technology, 25.10.2019 18:43
Questions on the website: 13722361