Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is an emergency. I want an answer as soon as possible eletrsqueda.om/mod U E-learning System (Academic troduction to Computer Science fall20 Question 15 Not

It is an emergency. I want an answer as soon as possible
image text in transcribed
image text in transcribed
eletrsqueda.om/mod U E-learning System (Academic troduction to Computer Science fall20 Question 15 Not yet answered The following program reads three positive integer numbers: x, y and z entered by the user.it checks whether or not all the numbers are positive. Then, it calculates and prints the total and the average of the double of the numbers. The result should be printed with 2 decimal points. If at least one of the input numbers is not positive, the program prints an error message. Complete the missing parts of the following code by drag and drop the appropriate statements shown below. Marked out of 100 Flag question # average =%2d"%[total, average) print total =%2d total = x2 + y2 + 22 else: X, Y, Z = (input ("Enter three integer numbers:").split print("Numbers are not positive") total = x+2 + y2 + 2+2 If and y>0 and > 0) average total/3 ## ### total = x2 + y2 + 2*2 print("total =%2d average = %2d"%[total, average) Xy, z = (input ("Enter three integer numbers:").splito else: total = x+2 + y +2 ++2 print("Numbers are not positive) average = total/3 if(x>0 and y>0 and 2> 0): total = x**2 + y2 + 72 print("total = %.21 average = %.21 %[total, average) if (x>0 or y>0 or z>0): Xy.Z = (int(x), intly), int(z))

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

=+ a. How does this change affect the incentives for working?

Answered: 1 week ago