Design a pseudocode application that reads inventory records and produces a repo
ID: 3628566 • Letter: D
Question
Design a pseudocode application that reads inventory records and produces a report that shows the price of every item on each day, one through seven. Secondhand Rose Resale Shop is having a seven-day sale during which the price of any unsold item drops 10% each day. The inventory file includes an item number, description, and original price on day one. For example, an item that costs $10.00 on the first day costs 10% less, or $9.00, on the second day. On the third day, the same item is 10% less than $9.00 or $8.10.Explanation / Answer
Declarations
num cost
num day = .10
string record_itemNumber
string description
file inventory_File
do this every iteration of the loop
while there are still records in inventory_File
cost= record.Original_Price
for day2 = 1 to 7
output cost for day, day2
output record_ItemNumber, description, cost
cost = cost * 0.9
endfor
endwhile
I Hope this will helps you.....
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.