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: inches can be converted to yards, feet, inches" Refer to your book for some hints on how to proceed. See Challenge Activity All variables in the program should be of datatype int.
Test your program with inches.
Hint: If you wanted to determine the fewest number of coins you can have if you have cents in change. You can determine the number of quarters by doing the following calculation: which would tell you quarters. would tell you how many cents are left over when the quarters are removed from the total.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
