Question Description

I’m working on a computer science question and need an explanation to help me learn.

1.In a script, prompt the user to enter either a yes (‘y’) or no (‘n’). A character variable called letter is used to store the user’s input. The script will print “OK, proceeding” if the user enters either a ‘y’ or ‘Y’; print “OK, halting” if the user enters a ‘n’ or ‘N’; print “Invalid input” if the user enters anything else. The first line of the script is given:

letter = input(‘Enter your answer: ‘, ‘s’);
Please finish the script by using if-else statements (elseif clause is permitted).

Type your answer HERE:

"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now