Starting Out with Programming Logic and Design (4th Edition)
Starting Out with Programming Logic and Design (4th Edition)
4th Edition
ISBN: 9780133985078
Author: Tony Gaddis
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 11, Problem 1TF

Explanation of Solution

Menu:

A menu-driven program shows a list of actions, which it can execute on the screen. This type of program will allows the user to select any one of the actions that the user wants the program to execute at a time.

  • The list of actions, which is displayed on the screen is referred as menu.

Decision Structure:

Once the user selects an action from a menu, the program must use a decision structure to complete an action established on that selection.

  • The most commonly used decision structure in all languages “case structure”.
  • Similarly, nested If-Then-Else statement and If-Then-Else If statement area also used to make a decision structure in the program.

Example:

Consider the following C++program, which uses the “if then else” decision structure for a menu driven program as follow as:

Blurred answer
Students have asked these similar questions
True or False Multiple CheckBox controls in the same GroupBox can be selected at the same time.
C# only
To save a value in a control's property, you use a(n) in code.

Chapter 11 Solutions

Starting Out with Programming Logic and Design (4th Edition)

Knowledge Booster
Background pattern image
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
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT