here is the question that i was trying to solve :
A program that inputs the purchase price, then calculates the state sales tax amount, county sales tax amount, and total sales tax amount on the purchase. Assume the state sales tax rate is 4 percent and the county tax rate is 2 percent. Display the purchase price, state tax amount, county tax amount, and total tax amount on the screen.
i know i missed something but i couldn't make it .
i know i missed something but i couldn't make it .
I'm not sure what you mean but if you have a look at what I did u might be able to make some use of it. You don't really need to display the purchase price because it already appears in answer to the first prompt. If you want to explicitly print it out just add another cot << etc statement. :)