STARTING OUT W/PROGRAM.LOGIC...-TEXT
5th Edition
ISBN: 2810022369454
Author: GADDIS
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 11, Problem 4MC
A
- a. a warning to the user
- b. the main menu
- c. a submenu
- d. the grand menu
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
1- From a main menu, it should only take at most
to perform an action.
a) O Three mouse clicks or keystrokes
b) O Four mouse clicks or keystrokes
c) O Six mouse clicks or keystrokes
d) O Five mouse clicks or keystrokes
e) O Depends on the complexity of the system interface and experience of the
users
In the 1850's, the hottest new technology was the telegraph. Messages or telegrams could be sent via electrical
forces traveling through a wire. Write a program that will generate a bill for sending a telegram and give the user
the opportunity to translate a message into Morse code. The amount owed for sending a telegram is based on the
number of words sent. Customers are charged at a rate of $1.50 for blocks of 5 words and $0.50 for single words.
Named constants must be used in the calculation. For now, your program will only translate a single letter into
Morse code. In the next project, you will add the functionality to translate an entire message. Use the tables
below to translate letters into Morse code.
Letter Encoding
A, a
B, b
C, c
D, d
E, e
F, f
G, g
H, h
I, i
-.-.
Letter Encoding
J, j
K, k
L, 1
M, m
N, n
0,0
P, p
Q, q
R, r
--
Letter Encoding
S, s
T, t
U, u
V, V
W, W
X, X
Y, Y
Z, Z
-..-
---
Get Help
Create a program that repeatedly displays a menu as a prompt, inputs the user’s choice and takes the correct action based on which menu option was selected. If the user made an invalid selection, the program should tell them. The menu options should be: 1 – Convert miles to kilometers 2 – Convert kilometers to miles 3 – Exit the program Actions for each option: 1 – Convert miles to kilometers Ask the user to enter a distance in miles Convert the value entered to kilometers Display the conversion from/to ????????????????????= ?????????? × 1.60934 2 – Convert kilometers to miles Ask the user to enter a distance in kilometers Convert the value entered to miles Display the conversion from/to ??????????= ???????????????????? × 0.621371 3 – Exit the program Display a message that the program is exiting Stop the loop The program should repeat the menu after options 1 and 2. Use OnlineGDB.
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
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
7.13* For a bearing
DE = NUS 5 53’56 ”WT and angles to the right, compute the bearing of PG if angle
DEF 2 88°...
Elementary Surveying: An Introduction To Geomatics (15th Edition)
Describe the purpose of the access key attribute and how it supports accessibility.
Web Development and Design Foundations with HTML5 (8th Edition)
Repeat Exercises 6 and 7 in Chapter 7, but use an instance of ArrayList instead of an array. We will no longer ...
Java: An Introduction to Problem Solving and Programming (8th Edition)
The current source in the circuit shown generates the current pulse
Find (a) v (0); (b) the instant of time gr...
Electric Circuits. (11th Edition)
A tension test was performed on a steel specimen having an original diameter of 0.503 in. and gage length of 2....
Mechanics of Materials (10th Edition)
In the following exercises, write a program to carry out the task. The program should use variables for each of...
Introduction To Programming Using Visual Basic (11th Edition)
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
- A menu's items are often preceded by a number, letter, or other character. What is the character's purpose?arrow_forwardThe horizontal line in a menu is called _____. a menu bar a separator bar an item separator None of the above.arrow_forwardComputer science Short answer Write the guidelines for Menu-selection.arrow_forward
- • 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.…arrow_forwardCreate starting menu using Pythonarrow_forwardDesign a menus with any names you wish with the following programs 1.Read one student name and display it in msgbox. 2.Set button1 backcolor to blue. 3.Set the width of button1 to 350 and the height to 400. 4.Add two textbox and display value in label1. 5.write program to distinguish if the two numbers are odd or even. 6.Try to find the value of R depending on the equation : x> 20 , R=2sin(x2) x< 10 , R=sin?(x) + cos( x) R= 7.write a program to display the series (10,15,20,..,100) in listbox1. 8.write a program to find the average of 10 input numbers 9. Use a select case to distinguish between capital and small letters in english alphabet.. 10. write a program to enter two numbers ,find the factorial of the maximum number between them.. السؤال الأخير مطلوب ادخال رقمين وثم حساب مفكوك اكبر رقم بينهماarrow_forward
- OpenGL Programming Help Write a program that creates a 3d captial "i" that animates using a display list. In response to the menu selection, 1.spin the "I" vertically 2. stop spinning When the user clicks on the right mouse button and selects the menu option to spin the "I" it should spin in the letter. The letter "i" should use a display listarrow_forwardDesign 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.arrow_forward44% 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_forward
- OpenGL Programming Help Write a program that creates a 3d "U" that animates using a display list. In response to the menu selection, 1.spin the "U" vertically 2. stop spinning When the user clicks on the right mouse button and selects the menu option to spin the "U" it should spin in the letter.arrow_forwardLanguage translator python pleasearrow_forwardOpenGL Programming Help Write a program that creates a 3d captial "i" that animates using a display list. In response to the menu selection, 1.spin the "I" vertically 2. stop spinning When the user clicks on the right mouse button and selects the menu option to spin the "I" it should spin in the letter.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Graphical User Interfaces: Crash Course Computer Science #26; Author: CrashCourse;https://www.youtube.com/watch?v=XIGSJshYb90;License: Standard YouTube License, CC-BY
Python GUI | How To Make A GUI In Python | Best GUI Framework In Python | Edureka; Author: edureka!;https://www.youtube.com/watch?v=_PHJvjQJa3w;License: Standard Youtube License