Question: restates the problem in your own words, specifies what input is needed from whomever is using the process, what output is expected, the step by

restates the problem in your own words, specifies what input is needed from whomever is using the process, what output is expected, the step by step process (algorithm) to get the output from the input, and test data (input for which you know the expected output for each of the 3 problems given below. (Include all this information in one file) You should not write any code. (c++)

Modify the algorithm for Problem 3 of Algorithms 1 (time conversion) so that only non-zero terms are output. For example if the user entered 259235 as the number of seconds the output would be: 259235 seconds corresponds to 3 days, 35 seconds. Likewise if the user entered 21840 seconds, the output would be: 21840 seconds corresponds to 6 hours, 4 minutes.

(Problem 3 of Algorithms 1): Create a process to prompt the user to enter the number of seconds and determine the whole number of days, hours, minutes, and seconds corresponding to the entered number of seconds. For example if the number of seconds entered was 183945, then 2 days, 3 hours, 5 minutes and 45 seconds should be displayed. There are 86400 seconds in a day, 3600 seconds in an hour, and 60 seconds in a minute. Consider all values to be whole numbers

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!