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