Question: Write a function make_receipt that consumes a float representing the price of a meal. The function needs to do the following 1. Calculate the discounted

 Write a function make_receipt that consumes a float representing the price

Write a function make_receipt that consumes a float representing the price of a meal. The function needs to do the following 1. Calculate the discounted price by multiplying the price by .9 (a 10% discount) 2. Return the discounted price. 3. Print out the original price passed in. 4. Print out the discounted price Now, you just bought a meal for $20, but the manager was so impressed with your programming ability that they decided to discount t twice. Call this function on the original $20 meal price twice. Console Feedback: Instructor Feedback Your function is not printing. This function is supposed to print Incorrect Answen Original Price: 20.0 Discounted Price: 18.0 Double Discounted Price: 16.2 Run BlocksSplTextst Upload Z History 1 def make_receipt(price): discount price*.9 return discount 4. print "Original Price: ", make_receipt(20/.9)) 6 print("Discounted Price: ", make_receipt (20)) print("Double Discounted Price: make_receipt (20*.9))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!