Answered step by step
Verified Expert Solution
Link Copied!

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

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions