(Solved):Why does the following pseudocode not perform as indicated in the comments? // This program asks the user to enter a value between 1 and 10 and validates the input. Declare integer value // Get a v… View Answer…

 

Question

Why does the following pseudocode not perform as indicated in the comments?

// This program asks the user to enter a value between 1 and 10 and validates the input.

Declare integer value

// Get a value from the user.

Display “Enter a value between 1 and 10.”

Input value

// Make sure the value is between 1 and 10.

While value < 1 AND value > 10

— Display “ERROR: The value must be between 1 and

Scroll to top