Question: Write a C Program that will prompt a user to enter a total number of inches. Then using modulo, convert that number of inches into

Write a C Program that will prompt a user to enter a total number of inches. Then using modulo, convert that number of inches into the equivalent number of yards, feet and inches. Your output should include the total number of inches and then the equivalent number of yards, feet and inches. For example, your output should look like the following: "562 inches can be converted to 15 yards, 1 feet, 10 inches" Refer to your book for some hints on how to proceed. (See Challenge Activity 2.6.2) All variables in the program should be of datatype int.
Test your program with 368 inches.
Hint: If you wanted to determine the fewest number of coins you can have if you have 79 cents in change. You can determine the number of quarters by doing the following calculation: 7925, which would tell you 3 quarters. 79%25 would tell you how many cents are left over when the quarters are removed from the total.
Write a C Program that will prompt a user to

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 Programming Questions!