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 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:10
Courses that are developed by subject matter experts, internal or extemal to the college or university. these programs are marketed by the school (clo2) marks a)-vocational schools b)-vendor training c)-colleges & universities d)-continuing education programs
Answers: 2
question
Engineering, 04.07.2019 18:20
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
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
Mathematics, 16.04.2020 20:34
question
Mathematics, 16.04.2020 20:34
question
Mathematics, 16.04.2020 20:34
question
Mathematics, 16.04.2020 20:34
question
Mathematics, 16.04.2020 20:34
Questions on the website: 13722361