Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing Help !! Urgent Please :(
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
moneywin




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Beastinonyou




PostPosted: 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.
Velocity




PostPosted: 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
Beastinonyou




PostPosted: 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]
moneywin




PostPosted: 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.
moneywin




PostPosted: 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
moneywin




PostPosted: 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 ?
Tony




PostPosted: 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
code:

total := ...

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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: