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

Secondhand Rose Consignment Shop is having a seven-day sale during which the pri

ID: 647080 • Letter: S

Question

Secondhand Rose Consignment Shop is having a seven-day sale during which the price of any unsold item drops 10 percent each day. For example, an item that costs $10.00 on the first day costs 10 percent less, or $9.00, on the second day. On the third day, the same item is 10 percent less than $9.00, or $8.10. Design an application that allows a user to input a price until a sentinel value of 0 is entered. Output is the price of each item on each day, one through seven. Be sure to include a welcome message to the user. Include comments in the pseudocode. When the user chooses to stop, be sure to NOT print the days and prices for the zero entry (see below). Turn in the pseudocode and flowchart for this problem AND the QBasic program (.bas file). In the Qbasic program, make sure to format the output of the price (as shown below). Sample input/output:

Explanation / Answer

PRINT "Secondhand Rose Consignment Sale - Discount calculator"
INPUT "Enter the original price of an item ", price
FOR nCounter = 1 to 7
PRINT "Day"; nCounter;"$";price
price=price-(price*0.10);
NEXT nCounter

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