Something's wrong with my code....
Author |
Message |
Neja
|
Posted: Thu May 15, 2003 6:55 pm Post subject: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Catalyst
|
Posted: Thu May 15, 2003 7:19 pm Post subject: (No subject) |
|
|
you dont need the :* on subtotal since its a number |
|
|
|
|
|
Martin
|
Posted: Thu May 15, 2003 7:46 pm Post subject: (No subject) |
|
|
Hey Neja, finally registered I see |
|
|
|
|
|
Neja
|
Posted: Thu May 15, 2003 9:28 pm Post subject: (No subject) |
|
|
I've been registered since that first time u gave me this link, silly |
|
|
|
|
|
Neja
|
Posted: Thu May 15, 2003 9:32 pm Post subject: (No subject) |
|
|
Oh! Thanks a ton. Now I really feel like a fool.... |
|
|
|
|
|
|
|