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

Username:   Password: 
 RegisterRegister   
 Help on turing sounds/output problem..
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
8749236




PostPosted: Tue Mar 22, 2011 4:46 pm   Post subject: Help on turing sounds/output problem..

What is it you are trying to achieve?
Write a program to output the song ?Old MacDonald Had a
Farm? with 10 verses. Use two arrays, one for the animals
and one for the sounds they make and initialize them both.
Use a getch between each verse to clear the window. If the
first three animals were cow, ass, and pig and the first three
sounds were moo, heehaw, and oink then this is how the first
three verses should appear. Take note of the ?a? or ?an? in
front of the animal or its sound.


What is the problem you are having?
Don't know how to do it, don't know how to use getch to clear the window
(don't give me any hint just tell me how to do or else i will go crazy..)

Describe what you have tried to solve this problem
just keep testing for 5 hours...


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
No usful code

Turing:


<Add your code here>



Please specify what version of Turing you are using
4.1
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Mar 22, 2011 5:09 pm   Post subject: Re: Help on turing sounds/output problem..

8749236 @ Tue Mar 22, 2011 4:46 pm wrote:

(don't give me any hint just tell me how to do or else i will go crazy..)

You must be new to this whole school/real-world thing; that's certainly not how things work around here.

If you change your mind about the hints, good places to start would be Turing's documentation -- array and Turing Walkthrough for tutorials. getch simply blocks until a character is read from a keyboard.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
8749236




PostPosted: Wed Mar 23, 2011 11:01 am   Post subject: RE:Help on turing sounds/output problem..

ok..
apython1992




PostPosted: Wed Mar 23, 2011 1:07 pm   Post subject: Re: Help on turing sounds/output problem..

You might get more useful help if you asked more specific questions - saying "I don't know how to do it" is something we can all deduce judging that you posted on the help forum. What don't you know how to do? I know that you said you don't know how to use getch, but you also don't know how to solve the problem in general. Could you say what you're confused with? Do you understand arrays? Are you confused with what logic you need to employ?
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  [ 4 Posts ]
Jump to:   


Style:  
Search: