Write a program that will create a workout schedule for a given number of days. In...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that will create a workout schedule for a given number of days. In this problem, a workout is the combination of one strength exercise and one cardio exercise. The program should create the schedule using the following exercise options: • Strength: Bench press, Squats, Chinups, Deadlifts, Tire flips . Cardio: Swimming, Biking, Running, Hiking To achieve this goal, create three separate Python lists containing the strength and cardio exercises as well as the resulting workout. Your program should do the following: 1. Ask the user for the number of days required 2. Combine one strength and one cardio exercise for each day. Since the lists are of different sizes, you may have to normalize the indices while iterating. 3. In each iteration, add a new workout to the list. You can use the append list method for this 4. Print the resulting workouts day by day For example if you run the program for 7 days you should get How many days will your workout plan last? 7 On day 1 do Bench press and Swimming On day 2 do Squats and Biking On day 3 do Chinups and Running On day 4 do Deadlifts and Hiking On day 5 do Tire flips and Swimming On day 6 do Bench press and Biking On day 7 do Squats and Running Write a program that will create a workout schedule for a given number of days. In this problem, a workout is the combination of one strength exercise and one cardio exercise. The program should create the schedule using the following exercise options: • Strength: Bench press, Squats, Chinups, Deadlifts, Tire flips . Cardio: Swimming, Biking, Running, Hiking To achieve this goal, create three separate Python lists containing the strength and cardio exercises as well as the resulting workout. Your program should do the following: 1. Ask the user for the number of days required 2. Combine one strength and one cardio exercise for each day. Since the lists are of different sizes, you may have to normalize the indices while iterating. 3. In each iteration, add a new workout to the list. You can use the append list method for this 4. Print the resulting workouts day by day For example if you run the program for 7 days you should get How many days will your workout plan last? 7 On day 1 do Bench press and Swimming On day 2 do Squats and Biking On day 3 do Chinups and Running On day 4 do Deadlifts and Hiking On day 5 do Tire flips and Swimming On day 6 do Bench press and Biking On day 7 do Squats and Running
Expert Answer:
Answer rating: 100% (QA)
Certainly To create a workout schedule based on the requirements specified in the image we will writ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The organizing committee for the HCC Celebrates Columbia's 50th Birthday, Inc., has planned a special event commemorating notable people originally from Columbia, MD. The committee has invited the...
-
Sally has a spinner game. Here are the rules of the game: The player pays $2 and spins the spinner. If the spinner lands on purple, the player wins $0.50. If the spinner lands on yellow, the player...
-
A lease agreement between Mooney Leasing and Choi Group is described in E21.10. Instructions Refer to the data in E21.10 and do the following for the lessor. (Round all numbers to the nearest yen) a....
-
Give examples of products that can be produced using the following process types: 1. Project 2. Job-shop 3. Batch 4. Repetitive 5. Continuous flow
-
Repeat the calculations of Example 6.3, but for \(80 \mathrm{~mol} \%\) of the liquid distilled. Data From Example 6.3:- Suppose the liquid of Example 6.1 [50 mol% n-heptane (A), 50 mol% n-octane...
-
Stratford Company distributes a lightweight lawn chair that sells for $15 per unit. Variable costs are $6 per unit, and fixed costs total $180,000 annually. Required: Answer the following independent...
-
Develop an algorithm, in the form of a Raptor flowchart, to compute and display the amount of federal income tax to be paid when provided with the income as input. The Canadian Federal income tax...
-
Spencer Duck (SSN 000-22-1111) is single and his eight-year-old son, Mitch, lives with him nine months of the year in a rented condominium at 321 Hickory Drive in Ames, Iowa. Mitch lives with his...
-
The company plans to develop a new product: an ottoman with multiple storage compartments. The sales and marketing team has projected a demand of greater than 500 per month at a selling price of...
-
What protection is given to people who sign consumer credit contracts?
-
Fitting wrote an $800 check on her account with Continental Bank. A bank employee had mistakenly placed a hold on the account, causing the bank to dishonor the check when it was presented for...
-
What protection is given to a holder through a holder in due course?
-
What is secondary liability?
-
Morse wrote a check for $2,500 payable to Reynolds for services rendered. Reynolds fraudulently raised the check to $5,500, indorsed it without recourse, and deposited it in her bank account. Later,...
-
Encrypt the message DHSFM by using affine transformation using a = 3 and key = -59. %3D
-
Tell whether the angles or sides are corresponding angles, corresponding sides, or neither. AC and JK
-
Write a user-defined MATLAB function for the following math function: y(x) = (- 0.2x3 + 7x2)e-0.3x The input to the function is x and the output is y. Write the function such that x can be a vector...
-
Use MATLAB to show that the sum of the infinite series verges to 1n10. Do this by computing the sum for (a) n = 10, (b) n = 50, (c) n = 100 For each part, create a vector n in which the first element...
-
Consider the diode circuit shown in the figure. The Current i D and the voltage v D can be determined from the solution of the following system of equations: i D = I o (e qvp/kT - 1), i D = V s - V D...
-
Find the modified \(z\)-transform of the following functions: (a) \(E(s)=\frac{6}{(s+1)(s+2)(s+3)}\) (b) \(E(s)=\frac{4}{s(s+2)^{2}}\) (c) \(E(s)=\frac{s^{2}+2 s+2}{s(s+2)^{2}}\) (d)...
-
Repeat Problem 4.8-1 after replacing the digital filter with this transfer function: \[ D(z)=\frac{z-0.5}{(z-0.8)(z-1)} \]
-
Consider the system of Fig. P4.10-1. The plant is described by the first-order differential equation \[ \frac{d y(t)}{d t}+0.04 y(t)=0.2 m(t) \] Let \(T=2 \mathrm{~s}\). (a) Find the system transfer...
Study smarter with the SolutionInn App