Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
5th Edition
ISBN: 9780134801155
Author: Tony Gaddis
Publisher: PEARSON
Question
Book Icon
Chapter 11, Problem 5MC

A multiple-level menu will display a “submenu”, when a user makes a selection.

Hence, the correct answer is option “C”.

Program Plan Intro

Menus:

A menu-driven program shows a list of actions, which it can execute on the screen. This type of program will allows the user to select any one of the actions that the user wants the program to execute at a time.

  • 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.

Blurred answer
Students have asked these similar questions
• Create the Main Menu calculator o Have it display the 4 choices. o Accept user choices. o Display the selection made. o The program will loop until the "Exit" option is selected. • Create the Trim Molding calculator o Ask for the total number of walls in a room o Ask each wall's length (use a loop), o Calculate the amount of trim needed. o Display the number of trim pieces needed • Create the Carpet calculator o Ask for the length, and width of the room o Calculate the number of carpet tiles needed o Display the number of tiles needed Create the Ceiling Tile calculator o Ask for the length, and width of the room o Asked for the tile size to be used. o Calculate the number of tiles needed ● ■ If the length of the room is not divisible by the length of the tile, you will need an additional tile to complete the job. if(room Length % tileLeanght !=0) then tileL++; ■ If the width of the room is not divisible by the width of the tile, you will need an additional tile to complete the job.…
When the application starts, it must display the following menu structure:
Menu 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…

Chapter 11 Solutions

Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,