Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a python program that asks the user for three numbers and displays Their sum The average of the numbers to 1 decimal point The
Write a python program that asks the user for three numbers and displays
Their sum
The average of the numbers to 1 decimal point
The largest number (done)
The smallest number
Display the number of even and odd integers (HINT % operator)
Number of integers that are negative and positive
Sample code template :
import math # module (file that contains useful functions including max x = int(input("please enter the first number ")) y = int(input("please enter the second number ")) z = int(input("please enter the third number ")) a = max(x,y,z) even = 0 # initialize odd = 0 # initialize print("max of ", x, " and ", y," and ", z, "is ", a) print("The first number is ", x) if (x > 0): even = even + 1 else: odd = odd + 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started