Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 1 Conditionals Exercise 1 Problem You will ask the user for a positive integer. The prompt portion for your input statement should be exactly

Exercise 1
Conditionals Exercise 1
Problem
You will ask the user for a positive integer. The prompt portion for your input statement should be exactly the following:
"Enter a positive integer: "
with the colon and one space at the end before the closing quote.
Write a program that determines if the positive integer they entered is between 0 and 25 or between 75 and 100(not including the endpoints). If yes, print the message: _ is between 0 and 25 or 75 and 100, where the blank would be the value of the positive integer they input. The program should do nothing if the value of what they input does not fit into either range.
Expected Output
If the number is 8, then the output would be: 8 is between 0 and 25 or
If the number is 80, then the output would be: 80 is between 0 and 25
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions