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 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
Get step-by-step solutions from verified subject matter experts
