# Computer Science

posted by .

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?

• Computer Science -

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.

• Computer Science -

how would you write that?
(I don`t have the program with me)

• Computer Science -

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

• Computer Science -

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.

## Similar Questions

1. ### 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 non-negative integer that does not appear anywhere below it in the same …
2. ### 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 non-negative integer that does not appear anywhere below it in the same column …
3. ### 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 …
4. ### Algebra II-Please 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 …
5. ### 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 …
6. ### math

How can the digits 1 through 5 be arranged in the box to make the greast products?
7. ### Java programming

can anybody help me.. Multidimensional Array Use a two-dimensional 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 …
8. ### 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 …
9. ### 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?
10. ### 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. …

More Similar Questions