Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started