Sunday
March 26, 2017

Post a New Question

Posted by on .

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.

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question