
-----------------------------------
Neja
Thu May 15, 2003 6:55 pm

Something's wrong with my code....
-----------------------------------
Hey, I know this is a stupid question, but I'm having a bit of trouble (Keep in mind I've only been doing turing for like 3 days now)

var name, article: string
var total, GST, PST: real
var subtotal: real
put "Enter customer's name."
get name:*
put "What did ", name, " buy?"
get article:*
put "Enter the subtotal of their purchase."
get subtotal:*
GST:= subtotal*.07
PST:= subtotal*.08
total:= subtotal+GST+PST
put total

Now the thing is, it keeps giving me an error saying that subtotal is wrong. What the heck? (And I know, it's a stupid assignment...it's my teachers fault :roll:

-----------------------------------
Catalyst
Thu May 15, 2003 7:19 pm


-----------------------------------
you dont need the :* on subtotal since its a number

-----------------------------------
Martin
Thu May 15, 2003 7:46 pm


-----------------------------------
Hey Neja, finally registered I see :D

-----------------------------------
Neja
Thu May 15, 2003 9:28 pm


-----------------------------------
I've been registered since that first time u gave me this link, silly

-----------------------------------
Neja
Thu May 15, 2003 9:32 pm


-----------------------------------
Oh! Thanks a ton. Now I really feel like a fool.... :mrgreen:
