Computer Science Canada Could someone help me with calculating hst im trying to figure out what i did wrong if someone could help thanks! |
Author: | pattingman [ Tue Apr 14, 2015 4:07 pm ] | ||
Post subject: | Could someone help me with calculating hst im trying to figure out what i did wrong if someone could help thanks! | ||
What is it you are trying to achieve? <Replace all the <> with your answers/code and remove the <>> What is the problem you are having? <I believe i messed the order of calculating.I can't seem to get it to calculate the price of hst in my code.> Describe what you have tried to solve this problem <Trying to figure out how to calculate hst which is 0.13 I keep trying but i cant seem to see whats wrong > Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <hst := price*0.13 total := price + hst >
Please specify what version of Turing you are using <4.1.1> |
Author: | Dreadnought [ Tue Apr 14, 2015 4:25 pm ] |
Post subject: | Re: Could someone help me with calculating hst im trying to figure out what i did wrong if someone could help thanks! |
You are trying to print the value of hst before you compute it. |
Author: | Tony [ Tue Apr 14, 2015 4:27 pm ] | ||
Post subject: | RE:Could someone help me with calculating hst im trying to figure out what i did wrong if someone could help thanks! | ||
Start at the top, go down one line at a time, and keep track of what's happening in the computer. When you get to the last line of
What is the value held by variable hst? |