Question: C# Source Code (not pseudo) Lab4C: Just a moment! Switch statements are usually used as a mechanism to route messages to systems. For example, if

C# Source Code (not pseudo)
C# Source Code (not pseudo) Lab4C: Just a moment! Switch statements are

Lab4C: Just a moment! Switch statements are usually used as a mechanism to route messages to systems. For example, if the user is presented with a menu of options (i.e. Press 1 for a list of movies, Press 2 for show times, etc.) the system will "switch" on the user's input and run a set of code to handle their choice. We will practice this concept by creating a menu of options that responds to the user's choice. For this program, you will create a menu that presents the user with 3 options as shown in the sample run below. Depending on the user input, the program will display output that should look like the sample run below. The user input is shown in bold. The program should also handle input values less than 1 and greater than 3 (shown in Sample run #4). Sample run #1: Select from the following: To see a list of movies, press 1. To see show times, press 2. To pay your bill, press 3. Choice: 1 The Neverending Story 6 Princess Diaries: the untold story Monty Python and the Programmer Sample run 2 : Select from the following: To see a list of movies, press 1. To be show times, press 2. To pay your bill, press 3. Choice: 2 All movies play at 3PM. Sample run #3: Select from the following: To see a list of movies, press 1. To see show times, press 2. To pay your bill, press 3. Choice: 3 Corporate accounts payable, Nina speaking. Just a moment! Sample run 4: Select from the following: To see a list of movies, press 1. To see show times, press 2. To pay your bill, press 3. Choice: 7 I'm sorry, Dave. I can't do that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!