Here are the instructions from my instructor:

Define a function getSum5(arg_n, arg_opt), that if arg_opt is equal to 1, it calculates the sum of odd numbers from 1 to arg_n: 1+3+5+arg_n; if...