Question: Task 1 : Creating the main menu Create a main console menu that displays when the user runs the application. The menu should display the

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 2: Creating the membership plans sub-menu
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 sub-menu with an appropriate header that displays to the user and shows the following options:
1. Basic
2. Regular
3. Premium
4. Return to main menu
5. Exit
The program should wait for the user to pick an option, then move on to displaying the result of options 1-3 if those are selected, returning to the previous menu if option 4 is selected, or exiting the application if option 5 is selected. Part B: Displaying the membership cost
There are three membership types (basic, regular and premium). The weekly base costs for each are:
1. Basic: $10
2. Regular: $15
3. Premium: $20.
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 3: 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.
24/7 gym access is $1
o The client will be upgraded to allow them to access the facilities 24 hours a day, 7 days a week.
Personal training is $20
o A personal trainer will meet weekly to discuss their plans and be available for questions. Diet consultation is $20
o A professional nutritionist will meet weekly to consult and work with the client and their nutritional needs.
Online video access is $2
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 24/7 access (yes/no)?.
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 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!