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
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 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
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
A is a constructor that accepts no arguments. a. parameterless constructor b. basic constructor c. primary cons...
Starting out with Visual C# (4th Edition)
True or False: Constructors are not inherited.
Starting Out with Java: From Control Structures through Objects (6th Edition)
Write a VHDL program for the logic circuit in Figure 4-60 Figure 4-60
Digital Fundamentals (11th Edition)
Practice Problem 12.4 (solution page 1036) In the server in Figure 12.8, we are careful to reinitialize the poo...
Computer Systems: A Programmer's Perspective (3rd Edition)
Body Mass Index Program Enhancement In Programming Challenge 15 in Chapter 3 you were asked to create a VB appl...
Starting Out With Visual Basic (8th 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
- The items displayed in a menu are often preceded by a number, letter, or other character. What is the purpose of this character?arrow_forwardA 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_forward
- Computer 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_forwardWhat are two instances in your program where menus are used, and why would you choose for a menu over allowing the user to enter text?arrow_forward
- Create 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_forwardWhat are two instances of how menus are used in your program, and why would you choose to utilize a menu rather than allowing the user to type in their own content rather than giving them the option to do so?arrow_forward
- The menu command under the editor window that allows you to submit the program to the command window. Group of answer choices run play start submitarrow_forwardDesign a menus with any names you wish with the following programs 1.Read 5 students' names and display them in combobox. 2.Set label1 backcolor to red. 3.Set the width of button1 to 300 and the height to 350. 4.Divide the value of two textboxes and display the result in label1. 5.write program to display only -ve number from 10 input numbers in listbox. 6.Try to find the value of R depending on the equation : x>18, R=x(x2) +8 R= {x<18 , R=2x - 4 7.write a program to display the series (15,10,5,.., -30) in listbox1. 8.write a program to find the summation of 8 input numbers 9. Use a select case to distinguish between small letters and numbers . 10. write a program to enter 10 numbers ,then count how many number are even ,after that find the factorial of the count variable السؤال الأخير مطلوب ادخال عشرة أرقام ثم احسب عد د الأعداد الزوجية وبعدها ایجاد المفكوك لقيمة العدادarrow_forwardPlease only the appropriate option without explanation and quicklyarrow_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