Must show it in Python: Please show step by step with comments. Please show it in simplest form. [CANNOT USE MAX,MIN BUILT-IN FUNCTIONS] [FOR THIS TASK YOU DO NOT NEED TO USE LISTS

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

Must show it in Python:

Please show step by step with comments.

Please show it in simplest form.

[CANNOT USE MAX,MIN BUILT-IN FUNCTIONS]

[FOR THIS TASK YOU DO NOT NEED TO USE LISTS]

 

Write a Python program that asks the user for a quantity then takes that many numbers and prints the maximum, minimum and average of those numbers.
[CANNOT USE MAX,MIN BUILT-IN FUNCTIONS][FOR THIS TASK YOU DO NOT NEED TO USE LISTS]
=====:
=======
Example01: If the user enters 5 as an input for quantity. Then enters 10, 4, -1, -100, and 1.
Your program output should be: "Maximum 10", "Minimum -100", "Average is -17.2"
Input:
5 10 4 -1 -100 1.
Output:
Maximum 10
Minimum -100
Average is -17.2
Explanation:
Average calculation: (10+4 + (-1) + (-100) + 1)/5 = -86/5=-17.2
Transcribed Image Text:Write a Python program that asks the user for a quantity then takes that many numbers and prints the maximum, minimum and average of those numbers. [CANNOT USE MAX,MIN BUILT-IN FUNCTIONS][FOR THIS TASK YOU DO NOT NEED TO USE LISTS] =====: ======= Example01: If the user enters 5 as an input for quantity. Then enters 10, 4, -1, -100, and 1. Your program output should be: "Maximum 10", "Minimum -100", "Average is -17.2" Input: 5 10 4 -1 -100 1. Output: Maximum 10 Minimum -100 Average is -17.2 Explanation: Average calculation: (10+4 + (-1) + (-100) + 1)/5 = -86/5=-17.2
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Array
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
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr