Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
5th Edition
ISBN: 9780134801155
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 11, Problem 1PE
Language Translator
Design a
Select a Language and I Will Say Good Morning
- 1. English
- 2. Italian
- 3. Spanish
- 4. German
- 5. End the Program
Enter your selection.
If the user selects item 1, the program should display "Good morning.” If the user selects item 2, the program should display “Buongiorno.” If the user selects item 3, the program should display “Buenos dias.” If the user selects item 4, the program should display “Guten morgen.” If the user selects item 5, the program should end.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Use relational and logical operators to make decisions using selection structure
Use switch statement to design a simple menu selection decision
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
Design a program that displays the following menu: IN QBASIC LANGUAGE QBASIC
Select a Language and I Will Say Good Morning1. English2. Italian3. Spanish4. German5. End the ProgramEnter your selection.If the user selects item 1, the program should display “Good morning.” If the user selects item 2, the program should display “Buongiorno.” If the user selects item 3, the program should display “Buenos dias.” If the user selects item 4, the program should display “Guten morgen.” If the user selects item 5, the program should end.
Chapter 11 Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
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
- Language translator python pleasearrow_forwardGeometry Calculator Write a program that displays the following menu: Geometry Calculator 1. Calculate the Area of a Circle 2. Calculate the Area of a Rectangle 3. Calculate the Area of a Triangle 4. Quit Enter your choice (1-4): If the user enters 1, the program should ask for the radius of the circle and then display its area. Use the following formula: area = Pi*r^2 Use 3.14159 for and the radius of the circle for r. If the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. Use the following formula: area = length * width If the user enters 3 the program should ask for the length of the triangle’s base and its height, and then display its area. Use the following formula: area = base * height * .5 If the user enters 4, the program should end. Input Validation: Display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. Do not accept negative values for…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
- The program below display the following menu:Geometry Calculator1. Calculate the Area of a Circle2. Calculate the Area of a Rectangle3. Calculate the Area of a Triangle4. Quit Enter your choice (1-4):If the user enters 1, the program should ask for the radius of the circle and then display its area. Use 3.14159 for . If the user enters 2, the program should ask for the length and width of the rectangle, and then display the rectangle’s area. If the user enters 3, the pro- gram should ask for the length of the triangle’s base and its height, and then display its area. If the user enters 4, the program should end. Input Validation: Display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. Do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. You are therefore, required to complete the program by putting in codes under each comment.include…arrow_forwardShould be answer. Waitarrow_forwardSoftware Sales A software company sells a package that retails for $99. Quantity discounts are given below: Quantity Discount 10–19 20% 20–49 30% 50–99 40% 100 or more 50% Design a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.arrow_forward
- Ticket-issuing system: An automated ticket machine sells Airline tickets. Users select their destination and input a credit card and a personal identification number. The Airline ticket is issued and their credit card account charged. When the user presses the start button, a menu display of potential destinations is activated, along with a message to the user to select a destination and the type of ticket required. Once a destination has been selected, the ticket price is displayed, and customers are asked to input their credit card. Its validity is checked, and the user is then asked to input his or her personal identifier (PIN). When the credit transaction has been validated, the ticket is issued. Write a set of non-functional requirements for the ticket-issuing system, setting out its expected reliability and response time.arrow_forwardProgramming Exercise 6-3 Instructions ¥3 CENGAGE MINDTAP Write a program named Temperatures Comparison that allows a user to input five daily Fahrenheit temperatures that must range from -30 to 130. If a temperature is out of range, require the user to reenter it. If no temperature is lower than any previous one, display a message Getting warmer. If every temperature is lower than the previous one, display a message Getting cooler. If the temperatures are not entered in either ascending or descending order, display a message It's a mixed bag. Finally, display the temperatures in the order they were entered, and then display the average of the temperatures. Your program's output should look like the following: Getting warmer: Average: 76 70 74 77 78 81 TemperaturesCompari... 1 using System; 2 using static System.Console; 3 class Temperatures Comparison 4 { 5 6 7 8 9} + 10 static void Main() { } // Write your main here >_ Terminal Q Search this course +arrow_forwardC# onlyarrow_forward
- Direction: Perform what is asked below. CASE: Due to the present situation that we are facing, which is the pandemic, the government decided to limit the type of rice the consumer can purchase to one. With your help as a programmer, the government ask you to create such program. The program should be able to display the menu as displayed below. The user will be allowed to enter the choice, quantity in kilo grams (kg) and payment amount. The program should also be able to output the total amount due and the change. Organize your algorithm in such a way that it is logically correct, usable and functional. RICE MENU [1] Denorado [2] [3] Jasmine [4] NFA [5] Malagkit Senandomeng Organic Brown Rice P55/kg P47 /kg P58/kg P38 /kg P70/kg P120/kgarrow_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_forwardDesign an Applet function to display the net amount depending on the option selection by the user (Savings/Current) assuming that the textbox, buttons, check box and labels are already defined. If user selected Savings display net amount=amount *2 If user selected Current display net amount=amount *5arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Expressions in C++ | C++ tutorial for beginners; Author: Tutorial Mart;https://www.youtube.com/watch?v=XHbsZGpmRc8;License: Standard YouTube License, CC-BY
expression in python # python expressions; Author: Abhishek Tripathi;https://www.youtube.com/watch?v=Cc-kJGRjH6k;License: Standard Youtube License