Lab Goal: practice problem-solving, pseudo code, if statements
You want to create an exercise
video. You want to create videos of
multiple lengths and varying numbers of rounds (each round contains the same
number of exercises and the same amount of time). You have asked your friend in CSCI151 to write you a
program that will allow you to enter a length of time in minutes, number of rounds, and
number of exercises. The program will calculate the length of time for each
exercise in seconds.
If the number of minutes
per round is not a whole number, tell the user the amount of extra time
they have to use as warn-up time.
If the length of each exercise is detrmined to be more
than a minute, print a statement reminding the video creater to provide some
encouragement to the exerciser.
Requirements
-
Write your pseudocode to solve the problem in the comments. Include
your algorithms for calculating minutes per round and seconds per exercise in the comments at the top of the program.
- Avoid numbers in calculations where variables would be more appropriate.
- Have a print statement that provides pertinent information, including the
seconds per exercise. Also include the warn-up statement where required.
- Use debugging techniques
as/if you experience errors.
- Test with video length/number of rounds/number of exercises: (30, 3, 10),
(45, 3, 20), (25, 3, 10). Note: your code should not have to change
between tests. If you correct an error rerun the previous tests.
- When complete, submit by email
the .java file and
a cropped screen shot of your results.
Complete the zyBooks challenge for 3.1-3.2.