Computer Science

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?

  1. 👍 0
  2. 👎 0
  3. 👁 47
asked by Lena
  1. 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.

    1. 👍 0
    2. 👎 0
    posted by Leo
  2. how would you write that?
    (I don`t have the program with me)

    1. 👍 0
    2. 👎 0
    posted by Lena
  3. 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

    1. 👍 0
    2. 👎 0
    posted by Lena
  4. 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.

    1. 👍 0
    2. 👎 0
    posted by Leo

Respond to this Question

First Name

Your Response

Similar Questions

  1. 11th grade

    A box of books weighing 229 N is shoved across the floor by a force of 420 N exerted downward at an angle of 35° below the horizontal.If µk between the box and the floor is 0.75, how long does it take to move the box 7 m,

    asked by Bill on December 5, 2010
  2. physics

    A box of books weighing 229 N is shoved across the floor by a force of 420 N exerted downward at an angle of 35° below the horizontal.If µk between the box and the floor is 0.57, how long does it take to move the box 9 m,

    asked by Bill on December 5, 2010
  3. physics

    A box of books weighing 229 N is shoved across the floor by a force of 420 N exerted downward at an angle of 35° below the horizontal.If µk between the box and the floor is 0.75, how long does it take to move the box 7 m,

    asked by Corey on December 5, 2010
  4. physics

    A box of books weighing 229 N is shoved across the floor by a force of 420 N exerted downward at an angle of 35° below the horizontal.If µk between the box and the floor is 0.57, how long does it take to move the box 9 m,

    asked by Corey on December 5, 2010
  5. computers

    I was wondering if someone could please help me thanks so much. My computer screen is all messed up.. It looks like I watching a wide screen program I have to use the arrows (left, right) to see all of the words .

    asked by Anonymous on June 28, 2008
  6. Physic

    A 25 kg box is set on a flat surface with us=0.62 and uk=0.49. A force of 100N is applied to the box through a rope which makes and angle of 30 degrees with the horizon. (a)what's the component of Fa that is attempting to move the

    asked by Elaine on March 3, 2017
  7. Physics

    A box of books weighing 337 N is shoved across the floor by a force of 467 N exerted downward at an angle of 35° below the horizontal. (a) If μk between the box and the floor is 0.56, how long does it take to move the box 4.00 m

    asked by Anonymous on December 8, 2014
  8. Physics help!

    A box of books weighing 323 N is shoved across the floor by a force of 477 N exerted downward at an angle of 35° below the horizontal. (a) If μk between the box and the floor is 0.51, how long does it take to move the box 4.80 m

    asked by Bridge on September 28, 2011
  9. physics

    A box of books weighing 314 N is shoved across the floor by a force of 475 N exerted downward at an angle of 35° below the horizontal. (a) If μk between the box and the floor is 0.53, how long does it take to move the box 5.00 m

    asked by John Miller on April 8, 2013
  10. Physics

    A box of books weighing 337 N is shoved across the floor by a force of 467 N exerted downward at an angle of 35° below the horizontal. (a) If μk between the box and the floor is 0.56, how long does it take to move the box 4.00 m

    asked by Anonymous on December 8, 2014

More Similar Questions