... switchboardYou often want to test a variable for numerous different values. For example, maritalStatus may be 0 for unmarried, 1 for married, 2 for divorced, 3 for Branching Out with if and switch09_563489-bk01ch05.indd ... to see whether they both are true before deciding the value of b. However, this may be a wasted effort. If one expression is false, there’s no reason to perform the other. Regardless of the value ... program returns the value entered, in the form of a string, when the user presses Enter. Because the program is looking for the princi-pal in the form of a decimal, the input string must be...