STARTING OUT W/PROGRAM.LOGIC...-TEXT
5th Edition
ISBN: 2810022369454
Author: GADDIS
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 11, Problem 1MC
Program Description Answer
The list of actions, which is displayed on the screen is referred as menu.
Hence, the correct answer is option “C”.
Expert Solution & Answer
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?
Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Language translator python please
The order in which controls receive the focus is called the __________. a. order of operations b. program flow c. execution sequence d. tab order
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 W/PROGRAM.LOGIC...-TEXT
Ch. 11.1 - What is a menu-driven program?Ch. 11.1 - The items displayed in a menu are often preceded...Ch. 11.1 - What type of structure do you use in a program to...Ch. 11.3 - Explain why most menu-driven programs use a loop...Ch. 11.3 - If a program uses a loop to display a menu...Ch. 11.4 - Prob. 11.6CPCh. 11.4 - Prob. 11.7CPCh. 11.4 - When a program has a lot of items for the user to...Ch. 11 - Prob. 1MCCh. 11 - Prob. 2MC
Ch. 11 - If a menu-driven program uses a loop to redisplay...Ch. 11 - A program that uses a multiple-level menu displays...Ch. 11 - Prob. 5MCCh. 11 - When the user selects an operation from a...Ch. 11 - When the user selects an operation from a(n)...Ch. 11 - Prob. 1TFCh. 11 - It is not usually necessary to validate the user's...Ch. 11 - In most cases, a menu-driven program should be...Ch. 11 - If a menu-driven program does not use a loop to...Ch. 11 - In a single-level menu, the user might see a...Ch. 11 - What type of structure do you use in a program to...Ch. 11 - What ways for validating a users menu selection...Ch. 11 - How can you design a menu-driven program so that...Ch. 11 - When a program has a lot of items for the user to...Ch. 11 - Prob. 1AWCh. 11 - Design a case structure that can be used with the...Ch. 11 - Put the algorithms that you designed for questions...Ch. 11 - Look for ways to modularize the algorithm that you...Ch. 11 - Language Translator Design a program that displays...Ch. 11 - Prob. 2PECh. 11 - Prob. 3PECh. 11 - Astronomy Helper Create an application that...Ch. 11 - Golf Score Modification In Programming Exercise 6...Ch. 11 - Phone Book Program Design a program that you can...Ch. 11 - Prob. 7PE
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- 44% 2:34 PM Theme Park Ticket Application In holidays, people try to save their time and purchase entrance tickets of the favored theme parks online. This project aims to create a simple and most efficient application that will display a menu to the visitors which contains: 1. Book a ticket The program will display a menu that contains all the ticket prices below, get how many tickets he/she would like to buy, and displays the total price. The ticket Price Child - Under 8 years old 70 USD Adults 110 USD Seiners 50 USD 2. Calculate the price The program should calculate the total price of tickets and display it to the visitor. The program will ask if the visitor is a student, then a discount of 40% is applied to the total price. 3. Exit the application The application should be terminatedarrow_forwardWhen a control has the __________, it accepts keyboard input from the user.arrow_forwardC Programming Your job is to create an application that will ask the user to select a choice (draw a boy, draw a girl, or draw a house). Depending on the selection then draw an image on the output screen.arrow_forward
- What must you do if you want your application to perform any meaningful actions?arrow_forwardA statement is a a control flow statement that repeatedly executes a statement or a series of statements while the value of a specific condition is truthy or until the value of a specific condition becomes truthy. Select one: a.decision-making b.loop C.fork d.breakarrow_forwardDraw hierarchy charts or flowcharts that depict the programs described below. Sales TaxDesign a hierarchy chart or flowchart for a program that calculates the total of aretail sale. The program should ask the user for:– The retail price of the item being purchased– The sales tax rateOnce these items have been entered, the program should calculate and display:– The sales tax for the purchase– The total of the salearrow_forward
- What is the focus when referring to a running application?arrow_forwardA named _______ is like a variable whose content is read-only; it cannot be changed while the program is running.arrow_forwardInstructions: create a program plan, for the cafe ordering system that shows the menu and would calculate the entire cost of food productsarrow_forward
- InstructionsYou will need to complete the following objectives as a Python Application 1. When the program starts the user needs to be asked if they want to make a new entry or to view a previous entry. 2. If the user wants to make a new entry, the first question will be how manymeters they traveled (this will then need to be converted into kilometers) 3. The second question will give the user 3 options to choose from.When a user selects an option, a value needs to be obtained from the followingwebsite:https://raw.githubusercontent.com/tyrone0501/AA-Petrol-Price/main/Cars.jsonThe values on the website look as follows {"Hatchback" :3, "SUV" :4, "SportsCar":5} The following code must be used to obtain these values: 1 import requests 2 3 AA_Calc = 'https://raw.githubusercontent.com/tyrone0501/AA-Petrol-Price/main/Cars.json' 4 response = requests.get(AA_Calc) 5 response_json = response. json() 6 7 siteresponse = response_json["Hatchback"] 8 siteresponse = response_json["SUV"] 9…arrow_forwardInstructionsYou will need to complete the following objectives as a Python Application 1. When the program starts the user needs to be asked if they want to make a new entry or to view a previous entry. 2. If the user wants to make a new entry, the first question will be how manymeters they traveled (this will then need to be converted into kilometers) 3. The second question will give the user 3 options to choose from.When a user selects an option, a value needs to be obtained from the followingwebsite:https://raw.githubusercontent.com/tyrone0501/AA-Petrol-Price/main/Cars.jsonThe values on the website look as follows {"Hatchback" :3, "SUV" :4, "SportsCar":5} The following code must be used to obtain these values: 1 import requests 2 3 AA_Calc = 'https://raw.githubusercontent.com/tyrone0501/AA-Petrol-Price/main/Cars.json' 4 response = requests.get(AA_Calc) 5 response_json = response. json() 6 7 siteresponse = response_json["Hatchback"] 8 siteresponse = response_json["SUV"] 9…arrow_forwardProgram Description A custom tailor offers a variety of custom suit options to customers. The company has tasked you with creating a program that will allow tailors to enter information about the kind of material used to make the customer's custom suit and the number of square yards used to make the suit and will determine the total cost to charge the customer. Use the following steps to create the program: 1. The program should display a menu that asks the technician to select the type of material that was used. Make sure the menu is formatted exactly as in the Sample Input and Output of the instructions (including indentation). I 2. The program should determine the cost per square yard of the material. The cost per square yard is determined based on the type of material that is used. Table 1: Type of Material and Cost per Square Yard Type of Material Cost per Square Yard Satin $8.95 Linen $9.65 Leather Silk $18.45 $28.99 3. The program should then ask the tailor to enter the number…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning