EBK STARTING OUT WITH PROGRAMMING LOGIC
EBK STARTING OUT WITH PROGRAMMING LOGIC
4th Edition
ISBN: 9780100659384
Author: GADDIS
Publisher: YUZU
Expert Solution & Answer
Book Icon
Chapter 11, Problem 2MC
Program Description Answer

A “decision structure” is used to perform an action, which is selected by the user from a menu.

Hence, the correct answer is option “D”.

Blurred answer
Students have asked these similar questions
A pizza menu allows you to select 4 toppings at no extra charge from a list of 9 possible toppings. The number of ways can you select 4 toppings pizza will be Select one: O 84 O 126 O 36 O 256
# Constants for the menu choices# Constants for the menu choicesPURCHASE_ADULT = 1PURCHASE_CHILD = 2PURCHASE_MOUSE_EARS = 3PURCHASE_PARKING = 4PURCHASE_FOOD = 5PRINT_ALL = 6CALC_TOTAL = 7QUIT_CHOICE = 8# The main function.def main():# The choice variable controls the loop# and holds the user's menu choice.    choice = 0    costAdult=0    costKid=0    costEars=0    costPark=0    costFood = 0    while choice != QUIT_CHOICE:# display the menu.    display_menu()# Get the user's choice.        choice = int(input('Enter your choice: '))# Perform the selected action.        if choice == PURCHASE_ADULT:                costAdult = purchaseAdult()                elif choice == PURCHASE_CHILD:                costKid = purchaseKid()                elif choice == PURCHASE_MOUSE_EARS:                costEars = purchaseEars()                elif choice == PURCHASE_PARKING:                    costPark = purchaseParking();                    elif choice == PURCHASE_FOOD:                        costFood…
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 terminated

Chapter 11 Solutions

EBK STARTING OUT WITH PROGRAMMING LOGIC

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,