Write a program that asks the user to respond


Write a program that asks the user to respond to a question by entering either 1 for yes or 2 for no. Use a While loop to continue prompting the user until a valid response is entered. Upon entering a valid response, the program should display an appropriate message to the user. 3-7. King of the Hill. Write a program that reads in a list of positive integers from the user until the user enters the value -1 as a sentinel. At that time the program should display the largest value in the input list.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that asks the user to respond
Reference No:- TGS087599

Expected delivery within 24 Hours