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

Include the proper header and make sure you properly comment your program. Also, make sure you use proper coding conventions so your program runs and compiles correctly.

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

=+ Is the information source knowledgeable about the subject?

Answered: 1 week ago

Question

How many three-digit numbers are divisible by 7?

Answered: 1 week ago

Question

What is Indian Polity and Governance ?

Answered: 1 week ago