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 ![Rolling Eyes Rolling Eyes](http://compsci.ca/v3/images/smiles/icon_rolleyes.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Catalyst
![](http://catalyze.mine.nu/jack_of_spades+100.jpg)
|
Posted: Thu May 15, 2003 7:19 pm Post subject: (No subject) |
|
|
you dont need the :* on subtotal since its a number |
|
|
|
|
![](images/spacer.gif) |
Martin
![](http://www.compsci.ca/wiki/images/4/46/CanadianStickUp.jpg)
|
Posted: Thu May 15, 2003 7:46 pm Post subject: (No subject) |
|
|
Hey Neja, finally registered I see ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
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 |
|
|
|
|
![](images/spacer.gif) |
Neja
|
Posted: Thu May 15, 2003 9:32 pm Post subject: (No subject) |
|
|
Oh! Thanks a ton. Now I really feel like a fool.... ![Mr. Green Mr. Green](http://compsci.ca/v3/images/smiles/icon_mrgreen.gif) |
|
|
|
|
![](images/spacer.gif) |
|
|