Thursday, October 27, 2016

Blog 20

Write the pseudo code for the program description below. At least 3 sentences.

The program draws a square where the user inputs the length of the sides of the square.

14 comments:

  1. User inputs length of side(integer).
    Draw line the length indicated and turn right 90 degrees.
    Repeat 3 more times.
    -Katelyn

    ReplyDelete
  2. Chris VanYe
    input a value for x
    four times:
    go forward x
    turn right

    ReplyDelete
  3. Create for I in range loop.
    tell it to repeat 4 times.
    tell it to draw four edges.

    jonathan

    ReplyDelete
  4. Asks for side length
    loop
    forward (input)
    left 90

    ReplyDelete
  5. User inputs length.
    Draws one side. Turns Left 90 degrees. Repeats moving and turning three more times.
    -Ben

    ReplyDelete
  6. 1.set the input for user, length and side
    2.set the length and side in to the value of forward
    3.set the turning angle
    Charlie Lin

    ReplyDelete
  7. Initialize user input 2 times for width and height.
    Use a for-loop with a range of 4.
    Call the left and forward functions within the loop.
    Draws a square with the calculated user output you typed in.

    - Abby Peterson

    ReplyDelete
  8. The program asks for the code. Then it will insert the code. Then it will draw a square with the length the user inputted
    -Sean.

    ReplyDelete
  9. set the in put for length and side.
    set the in put for length and side forward.
    and angle make 90 degree.
    Lux lei

    ReplyDelete
  10. user inputs langht
    user inputs hieth
    for i in range (2)
    forward (langht)
    left (90)
    forward (hight)
    left (90)
    - Owen Luther

    ReplyDelete
  11. The program asks for code. It will then go forward. After that, it will turn at 90 degrees on a 4 loop. Alex Haston.

    ReplyDelete
  12. -The length of the square
    -turn the left
    -draw the square
    -Gary Gao

    ReplyDelete
  13. The user enters a length for the square. Go forward that length and turn left 90 degrees. repeat the previous two sentences 3 more times thus completing the square.
    Joe Haj

    ReplyDelete
  14. for 4 times
    draw the line length indicated
    turn 90
    ~Travis Vonheeder

    ReplyDelete