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 3MC
If a menu-driven
- a. end the program
- b. perform the same operation again
- c. undo the previous operation
- d. reboot the computer
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
67)
On the Start menu, options that include an arrow have a(n)
________ that displays commands or files related to the option.
67)
_____________
68)
The left pane of the Start menu contains the ________
programs list, which displays the last 10 programs that were opened.
68)
_____________
:
69)
A(n) ________ is a rectangular frame that displays a
program, folder or file.
69)
_____________
70)
________ present information or require a response from the
user.
70)
_____________
71)
You can double-click the ________ of a window to maximize it or to restore
it.
71)
_____________
72)
To switch between open program windows, you can use the
keyboard shortcut combination ________.
72)
_____________
73)
To use Aero Flip 3D, you hold down the ________ key
combination.
73)
_____________
74)
Using ________ allows you to minimize all but the active
window.
74)
_____________
As a programmer you are required to develop a temperature conversion program with a menudriven style that provides the user with options to choose to convert Celsius to Fahrenheit and
vice versa. The menu options are as follows:
1. Celsius to Fahrenheit
2. Fahrenheit to Celsius
3. Exit
The menu is displayed via the menu function and the program terminates when the user
chooses Exit on the menu. Each menu has its own user-defined function. The function will
calculate and display the intended temperature. For example, if the user chooses ‘1’, a
function which convert temperature from Celsius to Fahrenheit will be called which accept
temperature in Celsius and display it in Fahrenheit. Assume only positive number is accepted
as input. Once the function is executed, it will return back to the main function and continue
the program.
THE PIECE OF CODING THAT I HAVE HIGHLIGHTED BELOW KEEPS SHOWING ERRORS, WHY? CAN YOU FIX IT
class Program {
public void Menu() //Menu function to print menu { Console.WriteLine("Enter P-to print menu\nEnter C-to convert from Celsius c.\nEnter F-to convert from Fahrenheit"); //printing the menu } public void CelsiusToFahrenheit() //function to convert celcius to fahrenheit { int cel; double toFah; Console.WriteLine("Enter a number to convert from celsius to Fahrenheit"); cel = Convert.ToInt32(Console.ReadLine()); toFah = (double)cel * 9 / 5 + 32; //converting to fahrenheit Console.WriteLine("After converting to Fahrenheit = " + toFah);//printing the fahrenheit value
} public void FahrenheitToCelsius()//this is the function to convert fahrenheit to celsius { int fah;//the variable to store fahrenheit value double toCel;…
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
Write an SQL statement to display the breed, type, and DOB of all pets having the type Dog.
Database Concepts (7th Edition)
In order to use dynamic binding, a member function of a class needs to be declared as a(n) _____ function.
Starting Out with C++: Early Objects (9th Edition)
The decimal number 17 is equal to the binary number 10010 11000 10001 01001
Digital Fundamentals (11th Edition)
T F: The multiplication operator has higher precedence than the addition operator.
Starting Out With Visual Basic (7th Edition)
At what time(s) can an object diagram change? How is it changed?
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Modify the Product_T table by adding an attribute QtyOnHand that can be used to track the finished goods invent...
Modern Database Management (12th 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 horizontal line in a menu is called _____. a menu bar a separator bar an item separator None of the above.arrow_forwardKeyboard sign for Left Menu?arrow_forwardA menu is generated using the following code: Status=menu('ClassStanding','Freshman','Sophomore','Junior','Senior'); Write a segment of code using switch-case that will classify the person making a menu selection as a new student (freshman) or a continuing student (sophomore, junior, or senior). The code should display one of the following messages: You are a new student. You are a continuing student. You did not make a selection.arrow_forward
- L E S S O N S E T5 Loops and Files LAB 5.2 Working with the do-while LoopBring in the program dowhile.cpp from the Lab 5 folder. The code is shownbelow:// This program displays a hot beverage menu and prompts the user to// make a selection. A switch statement determines which item the user// has chosen. A do-while loop repeats until the user selects item E// from the menu.// PLACE YOUR NAME HERE#include <iostream>#include <iomanip>using namespace std;int main(){// Fill in the code to define an integer variable called number,// a floating point variable called cost,// and a character variable called beveragebool validBeverage;cout << fixed << showpoint << setprecision(2);do{cout << endl << endl;cout << "Hot Beverage Menu" << endl << endl;cout << "A: Coffee $1.00" << endl;cout << "B: Tea $ .75" << endl;cout << "C: Hot Chocolate $1.25" << endl;cout << "D: Cappuccino $2.50" << endl…arrow_forwardWhat keyboard key do I press to access the left menu?arrow_forwardusing python code the following program Actions: Create the menus below using a square created in the console by printing dashes (-) and pipes (|) where appropriate. It should look something like this but large enough to cover almost ½ of your computer screen when printed on the console (no need to calculate for the monitor size-just approximate is fine): ———— | | ———— e.g. ——————————————— | 1- Create Employee | | 2- Create Item | | 3- Make Purchase | | 4-All Employee Summary | | 5-Exit | ——————————————— Specific Menu Pages to Create: 2.1. Create Employee Page Please define a function that asks the user to get the employees’ information and add that to the list. Whenever the user enters “NO” it will finish getting the employees’ information. Use a 2-dimensional list to create and save the employee information where each item in the list consists of the…arrow_forward
- how do i turn this C++ code into flowchart? void read_menu(MENU menu[], MENU roti[], MENU nasi[], MENU mee[], MENU air[], NUMBER &num, bool &quit){ ifstream input("menu.txt"); char checking[5]; num.total = 0; num.roti = 0; num.mee = 0; num.nasi = 0; num.air = 0; if(!input) { cout << "System Error : Input_File Malfunction" << endl; quit = true; system("pause"); } else{ while(input){ input.getline(checking, 5, '|'); if(checking[0] == 'R'){ strcpy(roti[num.roti].code,checking); input.getline(roti[num.roti].item, 50, '|'); input >> roti[num.roti].price; input.ignore(); num.roti++; num.total++; } else if(checking[0] == 'N'){ strcpy(nasi[num.nasi].code, checking); input.getline(nasi[num.nasi].item, 50,…arrow_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_forwardWhat is the keyboard's Left Menu virtual key symbol?arrow_forward
- 61. A window which is displayed whenever the program requires additional information from you is called a. film strip b. menu bar c. dialog box d. drop down menuarrow_forwardKeyboard symbol for Left Menu?arrow_forwardThe horizontal line in a menu is called _____________________. a. a menu bar b. a separator bar c. an item separator d. None of the above.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 Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
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