Question: Q2: Write a program to add two distances in inch-feet system using structures: (5marl (For reference: 12 inches is 1 foot) Your program will have

 Q2: Write a program to add two distances in inch-feet system

Q2: Write a program to add two distances in inch-feet system using structures: (5marl (For reference: 12 inches is 1 foot) Your program will have to do the following: Use structure name DISTANCE, variables names distl and dist2 and store the sum in Result. Add feet to feet and inches to inches Use while loop to deal with inches whose value is more than 12. SAMPLE TEST OUTPUT: Enter ist distance Enter feet: 3 Enter inch: 10 Enter 2nd distance Enter feet: 2 Enter Inch: 7 Do not use the same values. This is just Example Sun of distances - 11'-5.6" Process exited after 13.91 seconds with return value @ Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!