Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected.

C++ please

A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a C++ program that asks the user for the month, the year, and the total amount collected at the cash register (that is, sales plus sales tax). Assume the state sales tax is 4 percent and the county sales tax is 2 percent. If the total amount collected is known and the total sales tax is 6 percent, the amount of product sales may be calculated as:

Sales is the product sales and Total is the total collected amount (product sales plus sales tax).

Write C++ code for the problem. And post it as mentioned in Submission Directions:

Make sure that you do the following:

  • use constants to store the state and the sales tax values
  • use any other constants you feel necessary
  • display the amounts in fixed notation with two digits following the decimal point
  • use the iomanip header to format the output as follows (you don't have to countsp aces between the columns, as long as your alignment looks similar with some spacing between the two columns you will be fine; output has to be aligned and needs to look neat)

output

Sales Report for January, 2021 ------------------------------------ Total Collected: $ 26572.89 Sales: $ 25068.76 County Sales Tax: $ 501.38 State Sales Tax: $ 1002.75 Total Sales Tax: $ 1504.13

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions