Since it is Summer time and you want to get healthy, you have made a commitment to exercise and want to track all of the workouts you perform in one week. To avoid stressing yourself too quickly, youve decided to limit yourself to no more than 6 workouts in one week and no more than one workout per day. You will create an application to track all of the workouts youve completed. The application needs to be able to add a workout and print workout information
Each workout will either be aerobic or anaerobic, but never both. For all workouts, you must track the day of the week (Monday through Sunday), amount of time spent working out (in hours, greater than 0 up to and including 3), and level of exertion (whole numbers on a scale of 1 to 10, inclusive). For anaerobic workouts, you must also track a list of all exercises completed (e.g. pushups, pullups, etc.), up to 10 exercises. Additionally, for anaerobic workouts, at least one exercise must be completed.
To calculate the number of calories burned in an aerobic workout, multiply the number of hours spent working out by the number of calories burned per hour for the aerobic workout (a number between 0 and 1000, inclusive). To calculate the number of calories burned in an anaerobic workout, multiply the number of exercises completed by 15.
A workout report should be well-formatted with a report header, listing the type of workout (aerobic or anaerobic), day of the week, amount of time spent working out, level of exertion, and number of calories burned for each workout. For aerobic workouts, the report should also include the number of calories burned per hour. For anaerobic workouts, the report should also include a list of the exercises completed. Lastly, the report should include the total number of workouts completed and the total number of calories burned across all workouts.
Create an efficient, object-oriented solution, using good design principles, with a polished user interface that will allow you to continue to enter workouts, according to the requirements specified, until you have entered the maximum number of workouts permitted, or you have indicated you are finished entering workouts, whichever comes first. For each workout entered, you should be allowed to select the type of workout you wish to enter and enter in all information about the workout.
Once all workout information has been entered, print a well-formatted report summarizing your workouts for the week.
Programming Assignment 7: Solution Design
Programming Assignment 8: Solution Implementation
Write a well-documented, efficient Java program that implements the solution design you identified. Include appropriate documentation as identified in the documentation expectations document.