Question: Select the pseudocode from the choices provided which best represents the following problem statement: Design a program which prompts the user for a test score,


Select the pseudocode from the choices provided which best represents the following problem statement: Design a program which prompts the user for a test score, then uses a loop to validate that the user's input is in the range 0.100. Invalid scores should result in an error message to the user and another prompt for a test score in the valid range. Once a valid score has been entered then it should be displayed. Declare Integer Score Display "Enter a test score between 0 and 100:" Input score While score > 0 OR score 100 Display "Your score is ", score End While Display "Enter a test score between 0 and 100:" Input score While score 100 Display "ERROR: The score cannot be less than 0" Display "or greater than 100." Display "Please retry: enter a test score between 0 and 100." Input score End While Display "Your score is ", score Declare Integer Score Display "Enter a test score between 0 and 100:" Input score While score 100 Display "ERROR: The score cannot be less than 0" Display "or greater than 100." Display "Please retry: enter a test score between 0 and 100." Input score End While Display "Your score is ", score
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
