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 1: 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.
1. Membership plans
2. Optional extras
3. Gym Challenge
4. 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 sub-menus 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 sub-menus. Task 4: 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 15-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 1: 50 skips with a skipping rope: 122
Activity 2: 20 push-ups: 62
Activity 3: 10 squats: 81
Activity 4: 100 m run: 25
Final time: 335 seconds (including 15-second break between each activity).
Congratulations, you are ranked Silver.
To achieve Gold, you will need to complete the activities in less than 36 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.
1.50 skips with a skipping rope
2.20 push-ups
3.10 squats
4.100 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 15-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 8 minutes.
Bronze: More than 6 minutes and less than 8 minutes.
Silver: More than 5 minutes and less than 6 minutes.
Gold: Less than 5 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 4:24 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 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 Programming Questions!