Question

In: Computer Science

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

make it in C++ with pointer

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, 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:
S =T/1.06
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
--------------------
Total Collected: $ 26572.89
Sales: $ 25068.76
County Sales Tax: $ 501.38
State Sales Tax: $ 1002.75
Total Sales Tax: $ 1504.13

Solutions

Expert Solution

#include
#include

using namespace std;

int main()
{
string month;
int year;

double T;
double S;
double stateSalesTax,countrySalesTax,totalSalesTax;

cout<<"Enter the month: ";
cin>>month;
cout<<"Enter the year: ";
cin>>year;
cout<<"Enter the Total Collected: ";
cin>>T;

S=T/1.06;
stateSalesTax=S*0.04;
countrySalesTax=S*0.02;
totalSalesTax=stateSalesTax+countrySalesTax;

cout<<"Month: October "< cout<<"--------------------"< cout<<"Total Collected: $ "< cout<<"Sales: $ "< cout<<"County Sales Tax: $ "< cout<<"State Sales Tax: $ "< cout<<"Total Sales Tax: $ "< return 0;
}

OUTPUT:


Related Solutions

A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected.
Must be done in Visual StudiosA 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, 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...
A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected.
A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 5 percent and the county sales tax rate is 3 percent. Create a GUI application that allows the user to enter the total sales for the month into a text field. From this figure, the application should calculate and display the following: The number of county sales tax...
A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected.
C programming Monthly Sales Tax Program A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the amount of county sales tax, the amount of...
Monthly Sales Tax A retail company must file a monthly sales tax report listing the total...
Monthly Sales Tax A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 5 percent and the county sales tax rate is 2.5 percent. Write a Python program with function(s) that asks the user to enter the total sales for the month. Make sure that you do not allow user to enter negative values for the total...
Monthly Sales Tax Program A retail company must file a monthly sales tax report listing the...
Monthly Sales Tax Program A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the amount of county sales tax, the amount of state sales...
A retail company must file a monthly sales tax report listing the total sales for the...
A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4% and the county sales tax rate is 2%. Create an application that allows the user to enter the total sales from the month. From this figure, the application should calculate and display the following: 1. The amount of country sales tax 2. The amount of state...
Sales tax is collected from buyers and remitted to the government. A retailer has to file...
Sales tax is collected from buyers and remitted to the government. A retailer has to file a monthly sales tax report which lists the sales for the month and the amount of sales tax collected, at both the county and state levels. Develop a program that will input the total collections for a month, calculate the sales tax on the collections, and display the county and state taxes. Assume that states have a 4% sales tax and countries have a...
Winfield Company operates a retail store a) Below is a table containing monthly sales and sales...
Winfield Company operates a retail store a) Below is a table containing monthly sales and sales staff compensation, in dollars for the previous year. Use the high-low method to create an equation in the form Y = a+ bX to describe the behavior of sales staff compensation. Month Comp Sales 1 412,700 1,808,000 2 386,000 1,659,000 3 359,700 1,512,000 4 346,500 1,138,000 5 359,400 1,218,900 6 341,000 1,233,000 7 366,500 1,409,300 8 364,200 1,437,000 9 400,100 1,616,600 10 443,000 1,833,000...
All sales are on account (credit) with 50% collected in the month of sale, 30% collected in the following month after sale, and 20% collected in the second month after sale.
Black Horse Transportation's sales budget for the first quarter follows: January February March $125,000 300,000 290,000   All sales are on account (credit) with 50% collected in the month of sale, 30% collected in the following month after sale, and 20% collected in the second month after sale. There are no uncollectable accounts. The March cash receipts are: Select one: A. $250,500 B. $172,500 C. $102,500 D. $260,000
You work for Mut the Custard, a frozen custard company. You’ve collected data on monthly sales...
You work for Mut the Custard, a frozen custard company. You’ve collected data on monthly sales (S, number of regular-sized frozen custards per month) the price of your regular-sized frozen custard (P, in dollars), and the population size in the different cities in which your company operates (N, number of people; you currently only have one establishment in each city). You estimate the following regression model: S = a + bP + cN. In your regressions, you usually look for...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT