Question: Ask a user to input 3 floating point numbers a.Find an average. Then use math.ceil( ) find the ceiling of the average. math.ceil( ) -

 Ask a user to input 3 floating point numbers a.Find an

Ask a user to input 3 floating point numbers a.Find an average. Then use math.ceil( ) find the ceiling of the average. math.ceil( ) - takes one argument. b.Use math.ceil( ) function on each input, then find the average and the ceiling of the average. Print The average computed in a), the average computed in b), and the absolute value of the difference between those two values. Use math.fabs() to compute the absolute value of the difference. The resultant final output should be in this format: The average using the method in a) is: (averagea\}, but the average using the method in b) is: \{averageb\}. The absolute difference between the two values is \{diff_ceill. Ex: If the input is a:4.8b:3.0c:2.0 The output is: The average using the method in a) is: 2, but the average using the method in b) is: 2. The absolute difference between the two values is 0.0. \begin{tabular}{l|l|l} LAB & 2.22.1: LAB: Average and Ceiling (custom) & 0/10 \end{tabular} main.py Load default template.. 1 import math 2a= float(input (a:) ) 3b= float(input (b:) )) 4c= float(input('c: '))

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!