Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Secondhand Rose Resale Shop is having a seven-day sale during which the price of

ID: 3626562 • Letter: S

Question

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. 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.

start

Declarations

num cost = 10

num day = .10

string = record_itemNumber

string = description


output inventory File

input one record in inventory File

while there are still records in the inventory file

Price = record.Original_Price

for 2day = 1 to 7

output cost for day, 2day

output record_ItemNumber, description, cost

cost = cost * 0.9

Explanation / Answer

start

Declarations
num cost = 10 cost is part of the record, don't assign it
num day = .10
string = record_itemNumber you're declaring a variable, not assigning it.
string = description

output file inventory_File
input one record in inventory_File do this every iteration of the loop
while there are still records in the inventory_File

    input record from inventory_File you'll need to define record for the next line.
    Price cost = record.Original_Price
    for 2day day2 = 1 to 7 variable names should not start with a digit
        output cost for day, 2day the meaning of this is unclear. the next line is sufficient output
        output record_ItemNumber, description, cost
        cost = cost * 0.9
    endfor
endwhile

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote