A number within a range. Ask the user to enter a number. If it is under 10, display the message "Too low", if their number is between 10 and 20, display "Correct", otherwise display "Too high". Sample Output: Enter a number within a range Enter a number: 10 Correct Enter a number within a range Enter a number: 8 Too low Enter a number within a range Enter a number: 21 Too High Enter a number within a range Enter a number: 18 Correct

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 14E: In Chapter 4, you created a program that generates a random number, allows a user to guess it, and...
icon
Related questions
Question

use python

A number within a range.
Ask the user to enter a number. If it is under 10, display the message "Too low", if their number is
between 10 and 20, display "Correct", otherwise display "Too high".
Sample Output:
Enter a number within a range
Enter a number: 10
Correct
Enter a number within a range
Enter a number: 8
Too Low
Enter a number within a range
Enter a number: 21
Too High
Enter a number within a range
Enter a number: 18
Correct
Transcribed Image Text:A number within a range. Ask the user to enter a number. If it is under 10, display the message "Too low", if their number is between 10 and 20, display "Correct", otherwise display "Too high". Sample Output: Enter a number within a range Enter a number: 10 Correct Enter a number within a range Enter a number: 8 Too Low Enter a number within a range Enter a number: 21 Too High Enter a number within a range Enter a number: 18 Correct
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Types of Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
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,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
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