Computer Science Canada I'm having trouble understanding the meaning behind each individual command |
Author: | rty1001 [ Tue Sep 12, 2017 12:18 pm ] | ||
Post subject: | I'm having trouble understanding the meaning behind each individual command | ||
What is it you are trying to achieve? An understanding of this code. What is the problem you are having? Understanding this code. Describe what you have tried to solve this problem N/A Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) var numbers : array 1 .. 100 of int var x : int var writeFile : int var readFile : int open : writeFile, "data.txt", put for i : 1 .. 100 randint (x, 1, 10) put x put : writeFile, x end for close : writeFile open : readFile, "data.txt", get for j : 1 .. 100 get : readFile, numbers (j) end for /* put "Please enter a positive number to continue" put "Please enter a negative number to quit" var response: int loop get response put if response <0 then exit end if end loop */ for k : 1 .. 100 put numbers (k) end for
Please specify what version of Turing you are using 4.1.1 |
Author: | Insectoid [ Wed Sep 13, 2017 7:30 pm ] |
Post subject: | RE:I\'m having trouble understanding the meaning behind each individual command |
Which specific parts do you not understand? |
Author: | rty1001 [ Thu Sep 14, 2017 11:46 am ] |
Post subject: | Re: I'm having trouble understanding the meaning behind each individual command |
Everything |
Author: | Insectoid [ Thu Sep 14, 2017 5:08 pm ] |
Post subject: | RE:I\'m having trouble understanding the meaning behind each individual command |
If you click on the Turing button at the top centre of this page you'll find a link to the Turing documentation. It lists every commend and describes in detail how they work. |