Well I got the code part so far im lost tho.if any of you have another code that can help me that be cool and My teacher wants the algorithm steps as well in a text file i just dont know how to set it up.
Type the Algorithm for:
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.
thanks it helped alot. Is there a rule to writing an Algorithm? Can it be in my own words step by step? Do I have to explain each line or the main problem?
The best way to a program is to do it step by step, so you declare your variables then you gather your information from your user. Next you process the information (so in this case would be the mathematical part). Finally output the results. Just remember to do it all step by step.