Question
Using Python: Write the pseudo code first and then write a Python function that will take an initial item price and return that item's price
Using Python:
Write the pseudo code first and then write a Python function that will take an initial item price and return that item's price at the end of the week.Test this with the initial price of $10.00
The Last Stop Boutique is having a five-day sale. Each day, starting on Monday, the price will drop 10% of the previous days price. For example, if the original price of a product is $20.00, the sale price on Monday would be $18.00 (10% less than the original price). On Tuesday the sale price would be $16.20 (10% less than Monday). On Wednesday the sale price would be $14.58; on Thursday the sale price would be $13.12; and on Friday the sale price would be $11.81. Develop a solution that will calculate the price of an item for each of the five days, given the original price. Test the solution for an item costing $10.00.
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