Question: - Code in Python - Task 1 : Creating the main menu Create a main console menu that displays when the user runs the application.
Code in 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 : Creating the membership plans submenu
After the Membership plans option is selected from the main menu, the program will display the price of the membership plans available. Users should be able to pick an option from the menu and view the membership cost for that option.
Part A: Selecting the membership plan
Create a submenu with an appropriate header that displays to the user and shows the following options:
Basic
Regular
Premium
Return to main menu
Exit
The program should wait for the user to pick an option, then move on to displaying the result of options if those are selected, returning to the previous menu if option is selected, or exiting the application if option is selected. Part B: Displaying the membership cost
There are three membership types basic regular and premium The weekly base costs for each are:
Basic: $
Regular: $
Premium: $
After the membership type option is selected, the program should display the weekly cost for the option selected.
Part C: Returning to the previous menu
When the user selects this option, the application returns to the original menu.
Part D: Exiting
Closes the application. Task : Optional extras
After Optional extras is selected from the main menu, the program will display a list of products and services. The user will be required to select each optional extra that they would like to add to their plan, before seeing the total cost for the optional extras.
Part A: Displaying information about the optional extras
The program should display the following prices in an appropriate format to the user. Add any additional messages or information you feel will improve the user experience.
gym access is $
o The client will be upgraded to allow them to access the facilities hours a
day, days a week.
Personal training is $
o A personal trainer will meet weekly to discuss their plans and be available for
questions. Diet consultation is $
o A professional nutritionist will meet weekly to consult and work with the client
and their nutritional needs.
Online video access is $
o Provides the client with access to various workout videos made by the gyms
personal trainers.
Part B: Prompting for the user options
Once the program has displayed the information, it should prompt the user with a yes or no question for each of the extras. You will need to ask once for each optional extra, for example, Would you like access yesno
Note: When prompting the user for input, you can accept yes or y and no or n to improve user convenience.
Part C: Displaying the calculated total
After the user has selected yes or no for each of the four options, the program should show them the total cost for the extras in a clear format. Once the calculations are completed, the program should prompt the user to return to the main menu when they press enter.
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
