In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of October 25th
(this exercise will still be available for submission after that deadline, but without counting towards your grade)
[to understand the context of this problem, you should read the class #03 exercise sheet]


In this problem you should submit a function as described. Inside the function do not print anything that was not asked!

The name of the .py source file you submit to Mooshak should NOT start with a digit (you will get an error if you submit it like that).

[IP025] All in One

Who knew numbers could be so needy? They want you to find their maximum, their minimum, and then—just to show off—compute their sum and average too! It's time to roll up your sleeves and show these numbers who's boss!

The Problem

Write a function calculator(a, b, c) that given three integers a, b, and c, returns a string in the form "MAX MIN SUM" corresponding respectively to the maximum, minimum and sum.

Constraints

The following limits are guaranteed in all the test cases that will be given to your program:

-104a, b, c ≤ 104       The inputs can be any integer within this range

Example Function Calls Example Output
print(calculator(45, 12, 36))
print(calculator(-900, 245, 1034))
print(calculator(2, 2, 1))
print(calculator(-3, -3, -3))
45 12 93
1034 -900 379
2 1 5
-3 -3 -9

Introduction to Programming (CC1024)
DCC/FCUP - University of Porto