# Write a main function | Computer Science homework help

Write a main function that asks the user for four floats and then outputs the minimum, maximum, their sum and mean value.
use the functions from (a) – (d) to implement this.
(a) Take two floats as argument and returns the minimum of those.
(b) Take four floats as argument and returns the minimum. Make use of the function defined in a)
(c) Are the same as in a) and b), but returns the maximum.
(d) Take four floats as argument and returns their sum and mean.
The output has to be as follows:
Give four floats: 10.0 -2.3 13.2 20.4
Min: -2.300000
Max: 20.400000
Sum: 41.299999
Mean: 10.325000 # Write a main function | Computer Science homework help

Write a main function that asks the user for four floats and then outputs the minimum, maximum, their sum and mean value.
use the functions from (a) – (d) to implement this.
(a) Take two floats as argument and returns the minimum of those.
(b) Take four floats as argument and returns the minimum. Make use of the function defined in a)
(c) Are the same as in a) and b), but returns the maximum.
(d) Take four floats as argument and returns their sum and mean.
The output has to be as follows:
Give four floats: 10.0 -2.3 13.2 20.4
Min: -2.300000
Max: 20.400000
Sum: 41.299999
Mean: 10.325000 