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?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.