Checkpoint 4.14.1.
Write a function called
int_return that takes an integer as input and returns the same integer.
int_return that takes an integer as input and returns the same integer.
add that takes any number as its input and returns that sum with 2 added.
change that takes any string, adds βNice to meet you!β to the end of the argument given, and returns that new string.
addup, that takes five integers as inputs and returns the sum of those integers.
divide that takes in any number and returns that same number divided by 2. The second function called sum should take any number, divide it by 2, and add 6. It should return this new number. You should call the divide function within the sum function. Do not worry about decimals.
average that takes in any three numbers and returns the average.
diffSquare that takes one number and the average of the three numbers, subtracts those numbers, and then returns the square of this difference.
stdev which is passed the three numbers and then:
average to find the averaage of those three values, and assign the resulting average to a local variable.
diffSquare three times, passing each of the three numbers in turn and the local variable average, assigning the resulting squared differences to three local variables.
average again, this time passing in the three squared differences, and assigning this new average to a variable called variance.