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). If the video is more than 20 minutes you will add 10 minutes for warm up and cool down to the advertised time. The length of the exercises in the warm up and cool down varies from 30 seconds to one minute. You have asked your friend in CSCI151 to write you a program that will allow you to enter a length of time, number of rounds, and number of exercises. The program will calculate the length of time for each exercise in seconds.

 

Requirements

  1. Write your algorithm for calculating seconds per exercise in the comments at the top of the program.
  2. Write your pseudocode to solve the problem in the comments before your algorithm
  3. Numbers are not allowed in any calculations. You must use variable names.
  4. Have a print statement that provides pertinent information, including the seconds per exercise. Also include a statement that identifies if the video advertised time should inlcude time for warm up and cool down.
  5. Use debugging techniques as/if you experience errors.
  6. Test with video lenght/number of rounds/number of exercises: (30, 3, 10), (45, 3, 20), (5, 1, 10).   Note: your code should not have to change between tests. If you correct and error rerun the previous tests.
  7. 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.