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 program that asks for the month, the year, and the total amount collected at the cash register (that is, product sales plus sales tax). The sales tax is split between the state and the county. Assume 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 is calculated using the formula:
S = T/1.06 where S is the product sales and T is the total income (product sales plus sales tax)
The program should display a report similar to
Month: October
Year: 2008
---------------------------------------
Total Collected: $ 26572.89
Product Sales: $ 25068.77
County Sales Tax: $ 501.38
State Sales Tax: $ 1002.75
Total Sales Tax: $ 1504.12
precision_lawns 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
precision_lawns 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
happygeek 2,411 Most Valuable Poster Team Colleague Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Yusuke00 -5 Newbie Poster
deceptikon commented: Do you get his grade now? -2
WaltP commented: I give you a C for using iostream.h and global variables, and not using strings -3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.