Yabe Online Auctions requires its sellers to post items for sale for a six-week period during which the price of any unsold item drops 12 percent each week. For example, an item that costs $10.00 during the first week costs 12 percent less, or $8.80, during the second week.
During the third week, the same item is 12 percent less than $8.80, or $7.74. Design a modular program that allows a user to input prices until an appropriate sentinel value is entered and displays the price of each item for weeks one through six.