Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions