To test your learning, you will create a solution "from scratch". Place your code between the indicated lines and it will be tested against multiple test cases.
The algorithm will have you calculate the total price after taxes.
You are given a variable price
representing the price per item and quantity
representing the number of items purchased. The salesTax variable is 10%. Use these variables to calculate the totalPrice
variable as the total price after taxes.
Note
Don't worry too much about the function
and return
statements as they will be covered in future challenges. For now, only use operators that you have already learned.