Question: Create a Python program to record user's weekly workout activities in a log file. The program should contain following functions: 1. Function main, defines main

 Create a Python program to record user's weekly workout activities in

Create a Python program to record user's weekly workout activities in a log file. The program should contain following functions: 1. Function main, defines main flow of the program, ask if user did workout day by day in a week, if user did workout, ask user for all activities did that day. Calculate total workout time for each day and total workout time for the entire week. Write all activities into a text file. 2. Define a function with name workout, which takes three parameters, activityDescription, exercise Time, and restTime. You should use a timer in this function, display the activitie description for the time user want to exercise, and then display rest for the rest time. Note: See below for some sample workout activities: 1. Squat jumps 2. Plank on forearms 3. Standing elbows to knees 4. Superman holds 5. Planks on hand 6. Lunges 7. Push-up 8. Bent Knee Push-up 9. Bent-Knee Sit-up / Crunches 10.Supine Reverse Crunches Sample WorkoutLog.txt Day 1: Squat Jumps: 40 seconds, 20 seconds rest Superman Holds: 40 seconds, 20 second rest Lunges: 40 seconds, 20 seconds rest Squat Jumps: 40 seconds, 20 seconds rest Plank on Hands: 40 seconds, 30 seconds rest Push-up: 60 seconds, 20 seconds rest Day 1: 6.5 minutes Day 2: Skipped Day 3: Bent-Knee Sit-up/ Crunches: 60 seconds, 20 seconds rest Push-up: 60 seconds, 20 seconds rest

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!