Question: I need a quick!!! (5 points) Write a function called total cost that takes in one parameter, price. The function returns the total price that
I need a quick!!!

(5 points) Write a function called total cost that takes in one parameter, price. The function returns the total price that includes a service fee. The service fee is determined by the following: If the price is less than or equal to $10, there is a $2 service fee If the price is less than $100 but greater than $10, the service fee is 15%. If the price is $500 or more, the service fee is waved #Write your code here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
