### Question hw

I have to create a program that calculates the total due on sales taxes for a quarter period of the year based on the sales and jurisdiction.

I have this so far started with professor...

 ``12345678910111213141516171819202122232425262728`` ``````#include using namespace std; const double LOCAL_TAX_RATE = 0.08875; const double CREDIT_PERC = 0.05; int main() { int GROSS, NON_TAXABLE; int TAXABLE; double PRE_TAX, VENDOR_CREDIT, PEN_AND_INT, TAX_DUE; cout << "Enter two integers, one for GROSS " << "one for NON_TAXABLE: "; cin >> GROSS >> NON_TAXABLE; cout << endl; cout << "Enter the penalties and interest due at this time: "; cin >> PEN_AND_INT; cout << endl; cout << "The numbers you entered are " << GROSS << " for GROSS SALES and " << NON_TAXABLE << " SALES EXEMPT FROM TAXES. " << "PENALTIES AND INTEREST " << PEN_AND_INT << endl; cout << "The taxable Total of the Sales for this quarter is " TAXABLE``````
Last edited on
What is the question?
To start, work out on paper what the math formulas are that you need to use. Post the formulas here. Also post the text of the assignment.
I wish I could upload a pic but this is what im suppose to get this with the code:

enter two integers , one for gross one for nontaxable: 10000 2000
enter the penalties and interest due at this time: 525

the numbers you entered are 10000 for gross sales and 2000 sales exempt from taxes
penalties and interest 525
the taxable total of the sales for this quarter is = 8000
the pre_tax for this quarter is = 718
the amount to be credited to vendor for this quarter is = 35.5
the final calculation of the sales taxes due for this quarter is = 1199.5
Last edited on
@OP,
 the taxable total of the sales for this quarter is = 8000

Do you know the formula that determined 8000 was the answer?

 the pre_tax for this quarter is = 718

Do you know the formula that determined 718 was the answer?

 the amount to be credited to vendor for this quarter is = 35.5

Do you know the formula that determined 35.5 was the answer?

 the final calculation of the sales taxes due for this quarter is = 1199.5

Do you know the formula that determined 1199.5 was the answer?
No I dont thats what I need help with...
Read the assignment carefully. It probably describes the formulas that you must use. Looking at the example you give, the only one that I can see is:
 `the taxable total of the sales for this quarter is = 8000`

That's g(ross sales - nontaxable sales). In the example, 10,000 - 2000.

Can you post the full text of the assignment? It will help us figure out the formulas.
We can already guess based on the posted data (despite one typo on it), but what good would it do to you?

You have to learn to decipher the instructions. That is step one. Next step is how to convert the "this must happen" into code statements.

Without full text it is hard to help you in that first step.
Topic archived. No new replies allowed.