Question: PYTHON - Write a program that uses a custom function to return the cost of purchasing an item, possibly in multiple quantities. The item might
PYTHON - Write a program that uses a custom function to return the cost of purchasing an item, possibly in multiple quantities. The item might be subject to 7% sales tax. The main function should prompt the user to enter the quantity, unit price, and taxable data. The main function should call the custom function with these three inputs as arguments and print the cost of the purchase in currency format. See Sample Output.
Output Enter the quantity 10 Enter the unit price 5.00 Is item subject to 7% tax y/n? y Amount due is $53.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
