Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using a while loop, print program that asks the user to enter a number that is larger than 10. The program will continue asking for

Using a while loop, print program that asks the user to enter a number that is larger than 10. The program will continue asking for a number until a number that is larger than 10 has been entered. If the number entered, call it x, is less than 10 a message, "x is too small by at least y" is printed where y is the smallest number that must be added to x to make it greater than 10. If the number entered is equal to 10, a message, "x is not greater than 10" is printed. If the number entered is greater than 10, a message, "x is valid" is printed. Once a valid number is found, the program will print "Done"

 

Example:

Enter a number larger than 10: 5

5 is too small by at least 6

Enter a number larger than 10: 10

10 is not greater than 10

Enter a number larger than 10: 15

15 is valid

Done

Step by Step Solution

3.50 Rating (147 Votes )

There are 3 Steps involved in it

Step: 1

Program while True x intinputEnter a number larger than 10 if x10 greater than 10 will check if ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

discuss the dark side of digital marketing

Answered: 1 week ago

Question

=+how the customer arrived at their site.

Answered: 1 week ago

Question

What is another term for polymorphism?

Answered: 1 week ago

Question

What are the three sections useful for simplifying a display?

Answered: 1 week ago