7. Write a function definition (that takes three parameters). One parameter is used as the sales
price, one parameter as the discount, and one parameter as the tax rate. The function is to
calculate the total sales after taking discount off the sales price, and added with tax.
(You can make up a reasonable formula to calculate the total. The purpose of this question
is for you to practice writing a function with parameters; it’s not about actual accounting.)
Then, make a function call (i.e. invoke the function.)
8. Write a function definition that does the same task as the previous question but it also
returns the value of the result.
Then, make a function call (i.e. invoke the function.)
Page 13 of 13