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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

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

 

er 7
Input Validation
Debugging Exercises
1. Why does the following pseudocode not perform as indicated in the commens
// 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 10.
Display "Enter a value between 1 and 10."
Input value
End While
%3D
|/ This program gate
Transcribed Image Text:er 7 Input Validation Debugging Exercises 1. Why does the following pseudocode not perform as indicated in the commens // 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 10. Display "Enter a value between 1 and 10." Input value End While %3D |/ This program gate
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning