Answer:
The pseudocode algorithm is as follows:
- Start
- Input Quantity
- Input Price
- Bill = Quantity * Price
- Discount = 0.10 * Bill
- Display "Before Discount: "+bill
- Display "Discount: "+discount
- Display "After Discount: "+(bill - discount)
- Stop
Step-by-step explanation:
This begins the algorithm
Start
First, get input for quantity
Input Quantity
Then, get input for price
Input Price
Calculate the total bill (before discount)
Bill = Quantity * Price
Calculate discount
Discount = 0.10 * Bill
Print the total bill (before discount)
Display "Before Discount: "+bill
Print the discounted amount
Display "Discount: "+discount
Print the total bill (after discount)
Display "After Discount: "+(bill - discount)
End of algorithm
Stop