The purpose of this program is calculate the value of each combination of user inputs.