Question: The following pseudocode works, but it performs a case-sensitive validation of the users input. How could the algorithm be improved so the user does not

The following pseudocode works, but it performs a case-sensitive validation of the user’s input. How could the algorithm be improved so the user does not have to pay attention to capitalization when entering a name?// This program asks the user to enter a string // and validates the input. Declare String choice // Get theWhile choice != "Lisa" AND choice != "Tim" Display "Please enter Lisa or Tim. " Display "Cast your vote for

// This program asks the user to enter a string // and validates the input. Declare String choice // Get the user's response. Display "Cast your vote for Chess Team Captain." Display "Would you like to nominate Lisa or Tim?" Input choice // Validate the input.

Step by Step Solution

3.57 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The following pseudocode could be improved to perform caseinsensitive validation of the users input ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Programming Logic And Design Questions!