Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

given 3 real numbers a,b, and c, complete the function absAverage () to output the average of the absolute value of the 3 numbers #!/bin/python

given 3 real numbers a,b, and c, complete the function absAverage () to output the average of the absolute value of the 3 numbers

#!/bin/python

import math import os import random import re import sys

# # Complete the 'absAverage' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER a # 2. INTEGER b # 3. INTEGER c # def absAverage(a,b,c): # Write your code here

if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') first_multiple_input = raw_input().rstrip().split() first_multiple_input = raw_input().rstrip().split()

a = int(first_multiple_input[0])

b = int(first_multiple_input[1])

c = int(first_multiple_input[2])

avg = absAverage

fptr.write(str(avg) + ' ')

fptr.close()

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

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago