Exercise 1 Create program that calls the function avg_value(…