Question: Visual Studio 2019 C++ 2. Write a C Program that will prompt a user to enter a total amount of time in seconds. Then using
2. Write a C Program that will prompt a user to enter a total amount of time in seconds. Then using modulo, convert that number of seconds into the equivalent number of hours, minutes, and seconds. Your output should include the total number of second and then the equivalent number of hours, minutes and seconds. For example, your output should look like the following: "9254 seconds can be converted to 2 hours, 34 mins and 14 secs Refer to your book for some hints on how to proceed. (See Challenge Activity 2.6.2) Test your program with 11802 seconds. 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: 79 / 25, 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
