Question: 3. Suppose you are writing a program that asks the user to give a yes-or-no response. Assume that the program reads the user's response into
3. Suppose you are writing a program that asks the user to give a yes-or-no response. Assume that the program reads the user's response into the Stringvariableresponse. a. If response is yes or y, set the boolean variable accept to true; otherwise, set it to false. b. How would you change the code so that it will also accept Yes and Y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
