Computer Science
posted by Lena .
In the program Turing, how would you move an box randomly around the screen. This is what I have so far:
for row: 3..10
for column: 10..30
locate (row,column)
put " "..
end for
I think this creates a box. How would I move this box across the screen by only using randint and delay?

You would need to create two variables, one for row and one for column. Each variable would be assigned a random integer within the range that you listed above.

how would you write that?
(I don`t have the program with me) 
var row,column: int
randint (row,3,10)
randint (column,10,30)
locate (row,column)
put " "..
??
i`m actually very new at this so i`m very confused 
I am not familiar with the exact syntax of the language you are using. But in pseudo code, it appears you have the right idea.
Respond to this Question
Similar Questions

math
6. The squares of an infinite chessboard are numbered as follows: in the first row and first column we put 0, and then in every other square we put the smallest nonnegative integer that does not appear anywhere below it in the same … 
MATH
The squares of an infinite chessboard are numbered as follows: in the first row and first column we put 0, and then in every other square we put the smallest nonnegative integer that does not appear anywhere below it in the same column … 
math
if you have 3 rows and three columns and you have to find the hidden numbers. each number is less than 100,the sum of the digits of each number in column 2 is 10,the sum of the numbers in column 1 is 30,row 1 contains odd multiples … 
Algebra IIPlease check calcs
Could someone check this matrix calculation The first matrix dimension is 1 by 3 row 1 = 1 row 2 = 7 row 3 =3 Second matrix is 1 by 3 Row 1 column one =2 row 1 column two = 5 row one column three = 5 my calculation is that it would … 
Math
I have to do a 4x4 magic square with the digits 2011 so that each row column and diagonal contains one 2 one 0 and two 1s. But the hard part is that the sum of each row column and diagonal has to be 4. Please help if you can i've been … 
math
How can the digits 1 through 5 be arranged in the box to make the greast products? 
Java programming
can anybody help me.. Multidimensional Array Use a twodimensional array (for example of 3 by 3) to simulate the addition operation of two matrices. Sample output: the first matrix: 1 2 3 1 0 1 1 2 1 the second matrix: 1 1 1 2 2 2 … 
Business Consulting, Intro to Computers
• Bill wants the entry in Column G to remind him of expenses that require receipts for the accountant. Tell Bill what to put in Column G to do this: a. Print the word “Yes” in any row where the total daily expenses are greater … 
Introduction to Computers
Tell Bill how to do the following tasks: What formula or function does he put in Column F that will show the total expenses for each day? 
Algebra
The chart below shows the average number of movies seen per person in selected countries. A chart is shown with 2 columns.The first column is titled Country. The second column is titled Average number of movies a person sees in a year. …