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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started