Question
You are now working for a department store, and your task is to create a point-of-sale application to allow customers to calculate the total cost
You are now working for a department store, and your task is to create a point-of-sale application to allow customers to calculate the total cost of their sale including taxes.
Create a C++ program that does the following:
Calculates sales tax and total cost based on the type of purchased product using the following categories and tax percentages:
Category 1 - Clothing: 6%
Category 2 - Beauty products: 7%
Category 3 - Grocery: 3%
Category 4 - Gardening: 6%
Category 5 - School supplies: 3%
Category 6 - Tobacco products: 10%
Creates an array to store the numbers users input and uses the switch statement to calculate the sales tax and final cost based on the category of the purchased product
Prompts the user for category and price of the product
Calculates and displays the final cost
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started