Turing Help !! Urgent Please :(
Author |
Message |
moneywin
|
Posted: Thu Nov 10, 2011 9:31 pm Post subject: Turing Help !! Urgent Please :( |
|
|
This post was removed at the request of the poster.
It detailed a request for help that amounted to posting their homework. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Beastinonyou
![](http://compsci.ca/v3/uploads/user_avatars/10820786614fe1f6d9ccbda.png)
|
Posted: Thu Nov 10, 2011 9:44 pm Post subject: Re: Turing Help !! Urgent Please :( |
|
|
You need to identify what exactly you're having troubles doing.
Seems like you've outlined what you need to have done in all entirety, but what have you yourself accomplished so far?
People can help you solve your problems, but they need to know what they are first =P. |
|
|
|
|
![](images/spacer.gif) |
Velocity
![](http://compsci.ca/v3/uploads/user_avatars/1809397984eb9e2888e99b.jpg)
|
Posted: Thu Nov 10, 2011 10:44 pm Post subject: RE:Turing Help !! Urgent Please :( |
|
|
seems like your asking us to do the project for you, you will rarely get a response on here of someone who is actually willing to ; odds , 1 in 75 posts.
I can do your project for you, for a price, in paypal or a game currency. Just lmk if your interested i garuntee you getting 95+. or your money back |
|
|
|
|
![](images/spacer.gif) |
Beastinonyou
![](http://compsci.ca/v3/uploads/user_avatars/10820786614fe1f6d9ccbda.png)
|
Posted: Thu Nov 10, 2011 10:48 pm Post subject: Re: RE:Turing Help !! Urgent Please :( |
|
|
Velocity @ Thu Nov 10, 2011 10:44 pm wrote: seems like your asking us to do the project for you, you will rarely get a response on here of someone who is actually willing to ; odds , 1 in 75 posts.
I can do your project for you, for a price, in paypal or a game currency. Just lmk if your interested i garuntee you getting 95+. or your money back
You forgot to use your syntax tags:
[syntax="sarcasm"]
I can do your project for you
[/sarcasm] |
|
|
|
|
![](images/spacer.gif) |
moneywin
|
Posted: Fri Nov 11, 2011 6:28 pm Post subject: RE:Turing Help !! Urgent Please :( |
|
|
im sorry, i forgot to add the second part of this , where i ahve my example, to show which part im screwing up. |
|
|
|
|
![](images/spacer.gif) |
moneywin
|
Posted: Fri Nov 11, 2011 6:29 pm Post subject: RE:Turing Help !! Urgent Please :( |
|
|
var destination, answer, qualityt, qualitytt : string
var total : int
total := 0
put " These are the choices"
put "1. Hawaii"
put "Please Place number of choice"
get destination
if destination = "1" then
put "would you like to play by airplane or train?"
get answer
if answer = "train" then
put " First Class or Economy"
get qualityt
if answer = "First Class" then
total := total+600
elsif answer = "Economy" then
total := total + 400
elsif answer = "airplane" then
put "First Class or Economy"
get qualitytt
elsif answer = "First Class "then
total := total +300
if answer = "Economy" then
total := total +200
put "you have deceided to go to", destination, " the price of your travel is", total
end if
end if
end if
end if |
|
|
|
|
![](images/spacer.gif) |
moneywin
|
Posted: Fri Nov 11, 2011 6:31 pm Post subject: RE:Turing Help !! Urgent Please :( |
|
|
i dont know why, bt my total can't show up on turing,. it awlays end?
is it possible to have a if statemnt in another if statement with another if statement ?
and
can you tell me what part i did wrong to why my total doesn't show up ? |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Fri Nov 11, 2011 7:59 pm Post subject: Re: RE:Turing Help !! Urgent Please :( |
|
|
the problem is
moneywin @ Fri Nov 11, 2011 6:29 pm wrote:
end if
end if
end if
end if
Every time you see such pattern, it probably means something is wrong. In your case, "put" appears only if all four if answers are "correct". Which series of answers must one give to arrive at that condition? What about any others?
You also have other issues. To debug, replace every
with
code: |
put "you answered: ", answer
total := ...
put "current total so far: ", total
|
and see if your code flows in the way that you think it flows. Hint: it's not. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|