Question: please The following program reads three positive integer numbers: X, Y, and z entered by the user. It checks whether or not all the numbers

 please The following program reads three positive integer numbers: X, Y,

please

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 50% of the input 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. print ("Numbers are not positive") average = %.2f" %(total, average)) print("total = %.2f total = x**0.5 + y**0.5 + Z**0.5 average = total /3 else: print("total =%2d average = %2d" %(total, average)) X, Y, Z = (int(x), int(y), int(z)) if (x>0 and y>0 and z>0): x,y,z = (input ("Enter 3 integer numbers: ")).splito total = x 0.5 + y*0.5 + Z-0.5 if (x>0 or y>0 or z>0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!