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



Question 1

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

Sure! Here's a pseudocode to solve the problem:

```
1. Get the customer's name, address, and telephone number
2. Get the date of purchase
3. Get the cashier's name
4. Display the store name, address, telephone number, date of purchase, and cashier's name as the header of the bill

5. Create variables to store the total bill amount, tax amount, and discounted amount
6. Create empty lists to store the items purchased in each category (home products, groceries, and electronic appliances)

7. Loop until the customer finishes entering items:
a. Get the name and price of the item
b. Check the type of the item (home product, grocery, or electronic appliance)
c. Calculate the tax amount based on the type of the item
d. Add the tax amount to the total bill amount
e. Add the item to the corresponding category list

8. Calculate the total bill amount after tax by adding the tax amount to the bill amount
9. Determine the customer's class based on the total bill amount:
- If the total bill amount is between $1.00 and $10,000.00, classify as Silver
- If the total bill amount is between $10,001.00 and $20,000.00, classify as Gold
- If the total bill amount is over $20,001.00, classify as Platinum

10. Calculate the discount based on the customer's class:
- If the class is Silver, calculate 1% of the total bill amount
- If the class is Gold, calculate 5% of the total bill amount
- If the class is Platinum, calculate 10% of the total bill amount

11. Subtract the discount from the total bill amount
12. Display the items purchased in each category
13. Display the total bill amount, tax amount, discount amount, and final amount to be paid by the customer

14. End the program
```

This pseudocode outlines a basic algorithm for solving the problem, but please note that this pseudocode assumes that you have a way to input and store data, perform calculations, and display output. Implementation details may vary depending on the programming language or environment you are using.