Question: - Python - Task 1 : Creating the main menu Create a main console menu that displays when the user runs the application. The menu
Python Task : Creating the main menu
Create a main console menu that displays when the user runs the application. The menu should display the following four options to the user, along with an appropriate menu header.
Membership plans
Optional extras
Gym Challenge
Exit the program
Make sure that you place a number next to each option in the displayed menu. Ask the user to pick an option, then run the code for the selected option. The option should correspond with the number displayed. Any submenus will also use the same method.
Note: When moving from one menu to another, make sure to clear the console. This will prevent the console from becoming cluttered with previous menus and submenus. Task : Gym Challenge
After Gym Challenge is selected from the main menu, the program will display a
convenient way for the user to calculate regular cardio session times and monitor their fitness progress in the form of a fun challenge.
As part of their regular workout routine, the client will perform four exercises as a simple cardio circuit, timing each exercise separately. There is a mandatory second break between each exercise. After entering the times in seconds for all four exercises into the program, the user will then be given a ranking based on their total time steel bronze, silver or gold
Sample output
Welcome to the Gym Challenge. Please record your time for all four activities.
Hit enter to start. Activity : skips with a skipping rope:
Activity : pushups:
Activity : squats:
Activity : m run:
Final time: seconds including second break between each activity
Congratulations, you are ranked Silver.
To achieve Gold, you will need to complete the activities in less than seconds from your current time. Good luck!
Press any key to return to the main menu.
Part A: Gathering user time
The program should display an appropriate message to welcome the user to this section.
The client is expected to complete four exercises.
skips with a skipping rope
pushups
squats
m run.
For each of the four exercises, the program should ask the user for their time in seconds and store the information. Part B: Calculating the results
The program should calculate the total time the user took to complete the four exercises and include a second break time between each exercise as part of this total. The program should display this time in seconds. Fractions of a second are not relevant in the calculation.
After the calculation, the users total time is ranked out of the following four categories.
Steel: More than minutes.
Bronze: More than minutes and less than minutes.
Silver: More than minutes and less than minutes.
Gold: Less than minutes. Part C: Displaying results
The program should display to the user their total time and ranking in an appropriate format. It should also display how close the user is to achieving the next rank in seconds. The current gym record is : minutes. If a user breaks this record, they should receive a special congratulatory message.
Part D: Returning to the previous menu
When the user has finished, the application returns to the main menu.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
