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 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
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
Biology, 18.10.2019 05:00
question
Mathematics, 18.10.2019 05:00
question
Social Studies, 18.10.2019 05:00
Questions on the website: 13722361