A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

If you know what this does, you win.

584 views · started by Coak ·
#1
If you know what this does, you win.
var variable1:int
put "What is the price of the item?"
get variable1
put "The PST of the item is ", variable1*0.08
put "The GST of the item is ", variable1*0.05
put "The total of the item is ", variable1*0.08+variable1*0.05+variable1
#2
Errr...
It tells you how to get 23?
#3
No just read it, this is really basic turing.
#4
Gathers the information of an item, the price, the tax, and the total?
#5
Okay you guys suck at turing.
When you press run, this pops up a question saying "What is the price of the item?"
You answer a number (whole) or change
var variable1:int
put "What is the price of the item?"
get variable1
put "The PST of the item is ", variable1*0.08
put "The GST of the item is ", variable1*0.05
put "The total of the item is ", variable1*0.08+variable1*0.05+variable1

to

var variable1:real
put "What is the price of the item?"
get variable1
put "The PST of the item is ", variable1*0.08
put "The GST of the item is ", variable1*0.05
put "The total of the item is ", variable1*0.08+variable1*0.05+variable1

then it'll tell you the PST, GST and total if paying for it.
#6
i was close