Question: need help with Python plz. Algorithm on using a function: 1. From the keyboard, enter values for ProductPrice, Quantity, and DiscountStatus (values are the text/string/words

need help with Python plz.
Algorithm on using a function: 1. From the keyboard, enter values for ProductPrice, Quantity, and DiscountStatus (values are the text/string/words High or Low) 2. Create a function that takes ProductPrice and Quantity as input and returns ProductCost which is computed as ProductPrice times Quantity 3. Create a function that takes Product Cost and DiscountStatus and returns FinalCost which is computed as follows: if DiscountStatus is High FinalCost = ProductCost * 0.90 # 10% reduction - - 100 - 10 = 90 otherwise FinalCost = ProductCost * 0.95 #5% reduction -- 100-5 = 95 return FinalCost 4. execute the function that returns ProductCost 5. execute the function that returns FinalCost 6. print FinalCost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
