Chapter 11: Problem 3
What type of structure do you use in a program to perform the action that the user has selected from a menu?
Short Answer
Expert verified
#Answer#
The control structure used to perform the action selected by a user from a menu is the "switch" statement. A simple example using the switch statement involves displaying a menu with options, getting user input for their choice, implementing different cases within the switch statement for each option, and adding a default case for invalid choices. An arithmetic operation program can serve as an example, where cases are added for addition, subtraction, multiplication, and division based on the user's selection.
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.