Concept explainers
The list of actions, which is displayed on the screen is referred as menu.
Hence, the correct answer is option “C”.
Explanation of Solution
Menus:
A menu-driven
- The list of actions, which is displayed on the screen is referred as menu.
- This program will ask the user to enter the selection using keyboard, which displays a character such as a letter or a number that resides next to each menu options.
Explanation for incorrect options:
Decision Structure:
A case structure is a decision structure used to select an action in a given menu.
Hence, the option “A” is wrong.
Modules:
It breaks the menu-driven program into several modules.
Hence, the option “B” is wrong.
Boolean choices:
It is does not play a list of operations on the screen.
Hence, the option “D” is wrong.
Want to see more full solutions like this?
Chapter 11 Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
- Instructions: create a program plan, for the cafe ordering system that shows the menu and would calculate the entire cost of food productsarrow_forward114. The __________ and __________ buttons are examples of many button controls found in Windows applications. a) Ok and Cancel b) Ok and Exit c) Exit and Cancel d) Try again and Cancelarrow_forwardC++ LANGUAGE Create a menu system program using Function: Menu System (1st way) 1 – converting ft to inch 2 – Area of a circle 3 – Exit SUPPLEMENTAL ACTIVITIES ( C++ LANGUAGE)(FUNCTION) 1. Write a parameter and return program that will require the user to enter a temperature in Celsius and convert it to degree Fahrenheit and degree Kelvin. Formula:Fahrenheit = (9/5) * Celsius + 32Kelvin = Celsius + 273 Write your answer.arrow_forward
- Then, create a basic menu system that allows a user to select which one of the functions they want to execute. Oncethe user makes their choice, the program must ask them for the correct parameters. After the parameters are entered, the program will execute and print the results to to command line. Asking C programming for menu option. there is five menu and getting a user input as executionarrow_forwardCreate a C++ programme that displays the following menu: 1. Determine the Area of a Circle 2. Calculate the tax based on the user's input for the price and tax rate of an item. 3. Convert one pound to one kilogramme 4. Quit Enter your choice (1-4): If the user enters 1, the programme should ask for their name, followed by the radius of their choice. the circular shape The programme should then display (print) the user's name and the area of the circle, which should be limited to two decimal points. Validation of input: Your programme should only accept positive numbers. If the user enters 2, the programme should prompt them for their name, price, and tax rate. The programme should then calculate the tax based on the price and print the user's name and the tax amount, which should be limited to two decimal points. Validation of input: Your programme should only accept positive numbers. If the user enters 3, the programme should prompt the user for his or her name and the number of…arrow_forwardC++ Question: See Attached picture. Follow all instructions. Please create the code yourself. Thanks!!!arrow_forward
- As a programmer you are required to develop a temperature conversion program with a menudriven style that provides the user with options to choose to convert Celsius to Fahrenheit and vice versa. The menu options are as follows: 1. Celsius to Fahrenheit 2. Fahrenheit to Celsius 3. Exit The menu is displayed via the menu function and the program terminates when the user chooses Exit on the menu. Each menu has its own user-defined function. The function will calculate and display the intended temperature. For example, if the user chooses ‘1’, a function which convert temperature from Celsius to Fahrenheit will be called which accept temperature in Celsius and display it in Fahrenheit. Assume only positive number is accepted as input. Once the function is executed, it will return back to the main function and continue the program.arrow_forwardCreate an algorithm for a menu based program that uses a switch-case statement to include the following options:a) Print your name.b) Print your tutorial time.c) Prompt the user to enter a positive number between 1-50, read the entered input, and display all numbers from 0 up to the number entered (the display should print five numbers per line).E.g: if the user enters 9, the program will display 0 1 2 3 45 6 7 8 9q) Quit The user should be able to continuously enter and execute options until they enter the 'q' character to quit. The algorithm should be able to accept the upper- and lower-case versions of all character input options and should be able to deal with invalid options being input for all input (including the number required for part c). Note: for the first two options, the program does not need to read in name/tutorial time and then print this out. It simply needs to output a message that you hard code into the program. solution must be modular in design. Start with a…arrow_forwardMenu of the Day Create a program that filters and displays the correct menu items based on the day that the user enters. Console Menu of the Day COMMAND MENU Specify the day using the three-letter format (mon, tue, wed, thu, fri, sat, sun). Or, enter 'exit' to exit. Day: mon Roast beef 10 Potato soup 6 Baked cod 10 Day: tue Butter chicken 11 Lamb tikka 12 German forest cake 7 Day: exit Bye! Specifications A tab-delimited text file named menu.txt that contains the menu items for the current week is attached. Each item has a name (a string), price (an integer), and associated day (a string) Use a structure named MenuItem to store the name, price, and day for each menu item. When the program starts, it should load the items from the file into a vector of MenuItem objects. The user should be able to type a three-letter day code to display the menu items for the specified day. The user should be able to…arrow_forward
- If a button’s Click event procedure contains the Me.Close() instruction, the application will end when the user ___________. a. clicks the button b. employs the button’s access key c. presses the Enter key when the button has the focus d. all of the abovearrow_forwardA program is needed to manage sales of Super Bowl souvenir t-shirts. There are three types of shirts that we are selling: Chiefs t-shirts Eagles t-shirts Super Bowl t-shirts The t-shirts are all priced at $40 each without any customization. Input: Your program is to display a menu listing each type of shirt. It should then prompt the user for the number of Chiefs t-shirts they would like to order. After the number of Chiefs t-shirts has been entered (which may be 0), if the number was greater than 0, we will ask if they need to add lettering to the shirt (costs 1 dollar per printed letter) the program should continue displaying a prompt and reading the number to order for the other two types of t-shirts in the same way. The program also needs to keep track of the customer name and mailing address. Prompt and read the customer’s name, street address, city, state, and zip code. (learning in java)arrow_forwardMobile Phone PackagesDialog is a Mobile Phone company that offers the following mobile phonepackage to its customers.Monthly charges are calculated according to the following criteria The Basic Monthly Bill is CAD 40 Additional 25 CAD is charged from customers who make more than100 calls that last for more than 400 minutes Design the modular program Pass the parameters to a Module Named MobileCharges_4567 andperform all the calculations inside that Modulearrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning