posted 10 years ago
Hello friends I am new to the forum and I need some help with my code can someone help me please the instructions are:
You have a store that sells the following items:
•Shoes $50.00
•T-shirts $30.00
•Shorts $75.00
•Caps $15.00
•Jackets $100.00
Your sales associates need a program where they can enter customer information and calculate the customer’s total bill.
When the sales associate enters the program they should be presented with this main menu.
1. Enter customer information
2. Display Total Bill
3. Quit
If the sales associate selects option 1, the program should allow the sales associate to input their name, address, and e-mail address. Your program should then display this customer information to the screen with a message that the customer has been added to the customer list.
If the sales associate selects option 2, the program should ask the sales associate for the customer’s name, product that the customer is purchasing, the quantity, and the price of the product. The total bill will then be displayed to the screen and should include the following:
1. The customer’s name.
2. The product the customer is purchasing, the quantity, and total cost
3. The amount of tax (8%)
4. The total cost with tax.
Example Total Bill Output:
John Doe
Product Purchased Quantity Total Cost
Shoes 2 $100.00
Tax (@ 8%): $8.00
Total Cost: $108.00
So far I have this code shown below done but I need help with the part that says option 2 to calculate the total bill amount thank you and I would appreciate your help.