Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- All the outputs should change according to the entered values. - Outputs should exactly match mine. -****Not allowed to use the input function**** -

- All the outputs should change according to the entered values.

- Outputs should exactly match mine.

-****Not allowed to use the input function****

- sys.argv

Write a program that takes three numbers and determine the minimum and maximum among them. You are not allowed to use min and max functions.

Input:

a) python C:\Users eda\DataProgramming\M3\assign3-11.py -2 100 50

b) python C:\Users eda\DataProgramming\M3\assign3-11.py 10.5 12 10.5

c) python C:\Users eda\DataProgramming\M3\assign3-11.py 10 0 1

Output:

a) Max: 100.0

Min: -2.0

b) Max: 12.0

Min: 10.5

c) Max: 10.0

Min: 0.0

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

Students also viewed these Databases questions

Question

What is topology? Explain with examples

Answered: 1 week ago