Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program [call it minmax.py] that accepts three integers in the range [0-100] as input from the user. Your program should then determine and

 Write a program [call it minmax.py] that accepts three integers in the range [0-100] as input from the user. Your program should then determine and print the smallest and largest integers in the values entered by the user using comparison operators *not* using predefined min or max Python functions.

For instance:

If the user input is: 36 5 99 your program should give as output: min = 5 max = 99

If the user input is: 50 25 0 your program should give as output: min = 0 max = 50

An extension for a *bonus* of 3 points: Display the output as [min mid max] as well,

If the user input is: 36 5 99 your program should give as output: min = 5 mid = 36 max = 99

If the user input is: 50 25 0 your program should give as output: min = 0 mid = 25 max = 50




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

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

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions

Question

Use a graph to estimate the limits in Problems lim x0 5* 1 X

Answered: 1 week ago

Question

Let X be normally distributed with parameters and 2. Find Var(X).

Answered: 1 week ago