Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
5th Edition
ISBN: 9780134801155
Author: Tony Gaddis
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 11, Problem 3MC

If a menu-driven program uses a loop to redisplay the menu after a selected operation has been performed, the menu should probably have an item that the user can select to _______.

  1. a. end the program
  2. b. perform the same operation again
  3. c. undo the previous operation
  4. d. reboot the computer
Blurred answer
Students 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)

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
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