Implement a Workout Log that lets the user keep track of different types of exercise.
Your program will:
- 1) Display a welcome message with some basic instructions.
- 2) Repeatedly prompt the user to View All Logs, Add New Log, or Exit
- View All Logs: Displays all workouts that have been logged
- Add New Log: Add new workout log (as described below)
- Exit: quit the program
Requirements:
- The user must be able to select from three types of workout.
- Each workout type must store a different data element (e.g. Miles for Running, Reps for Weight Lifting, Laps for Swimming).
- Each Log entry must be automatically numbered, and marked with the current date and time
- Each Log entry must be written to a text file as demonstrated in class
- The Log must be read from the file and displayed using methods demonstrated in class
- Exception handling must be used as demonstrated in class
- For full credit, you must properly divide your code into at least 4 well-designed methods.