Question: 2) Programming: Return and Print K First Back #22.5) Making a Receipt 2/5 completed) NxtLast M BlockPy: #225) Making a Receipt Write a function make,receipt
2) Programming: Return and Print K First Back #22.5) Making a Receipt 2/5 completed) NxtLast M BlockPy: #225) Making a Receipt Write a function make,receipt that consumes a float representing the price of a meal. The function needs to do the following Sarver Exacution: I. Calculate e discounted price by multiplying the price by 2. Return the discounted price. 3. Print out the original price passed in. 4. Print out the discounted price .9 (a 10% discount) Now, you just bought a meal for $20, but the manager was so impressed with your programming ability that they decided to discount it twice. Call this function on the original $20, meal price twice Feedback: Ready Console History Run I Blocks Split Text Reset Upload
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
