
Lesson 7-2: Multiway Branching
160 | Chapter 7
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: As Prelab Exercise 4 demonstrated, program Switches is not very robust. Add the
code necessary to allow the program to work properly with both lowercase and uppercase versions
of the input letters. Run your program with the same data, but type in the letters as lowercase.
Exercise 2: Program Switches is still not very robust. Add a default case that prints an error
message and asks for the letter to be reentered. Test your program with the same data set, but add
several ...