Question
Shop Choice store sells home products, groceries and electronic appliances. A customer
is grouped in different classes, silver, gold and platinum. Customers with bill amounts
below are classified as:
Silver $1.00 – $10, 000.00
Gold $10, 001.00 – $20, 000.00
Platinum Over $20, 001.00
Write a pseudocode that will accept items bought by a customer and place them in the
appropriate class based on amounts calculated for the bill.
Discounts are applied as follows:
Silver – 1%
Gold – 5%
Platinum – 10%
Tax on Home Products and Appliances is 20%. A general Consumption tax of 17.5% is
to be applied to all grocery items.
The program should accept all items purchased by the customer, place them in the
appropriate class, and calculate discount and tax. A final bill should be output, displaying
items purchased, tax applied to the items based on the typed of product purchased and
total to be paid by customer. Also, display a header on the bill showing the name of the
store, address, telephone number, date of purchase and cashier’s name.
is grouped in different classes, silver, gold and platinum. Customers with bill amounts
below are classified as:
Silver $1.00 – $10, 000.00
Gold $10, 001.00 – $20, 000.00
Platinum Over $20, 001.00
Write a pseudocode that will accept items bought by a customer and place them in the
appropriate class based on amounts calculated for the bill.
Discounts are applied as follows:
Silver – 1%
Gold – 5%
Platinum – 10%
Tax on Home Products and Appliances is 20%. A general Consumption tax of 17.5% is
to be applied to all grocery items.
The program should accept all items purchased by the customer, place them in the
appropriate class, and calculate discount and tax. A final bill should be output, displaying
items purchased, tax applied to the items based on the typed of product purchased and
total to be paid by customer. Also, display a header on the bill showing the name of the
store, address, telephone number, date of purchase and cashier’s name.
Answers
oobleck
read amount,category
if amount <= 10000 then
store in silver
discount_pct = 0.01
else
...
if category = home then
tax_pct = 0.20
else
...
discount = amount * discount_pct
tax = (amount-discount) * tax_pct
display <info>
loop as necessary
if amount <= 10000 then
store in silver
discount_pct = 0.01
else
...
if category = home then
tax_pct = 0.20
else
...
discount = amount * discount_pct
tax = (amount-discount) * tax_pct
display <info>
loop as necessary