Kojo Projects - Introduction, Square and Circle, May 3, 2012, Cardinal Forest Elementary School

Kojo Programming
Learn about Kojo
E Books on Kojo
Back to Kojo Projects

Kojo exercise for May 3, 2012 - Drawing squares, polygons, circles
repeat(), forward(), turn(), left(), right()

  1. Open Kojo

  2. Open the square program

  3. Draws a square with side = 100

  4. Here's the program:

  5. Draw a hexagon. Change the program to repeat(6) and turn(80)

  6. The hexagon is not correct

  7. Try right(40)

  8. The hexagon is not correct

  9. What is the correct number for right() ?

  10. The hexagon should look like this:

  11. Try to draw two hexagons, blue and red, and next to each other.

  12. Here are the two hexagons:

    Hint: Here's how to put two squares next to each other:

    	clear()
    	setPenColor(red)
    	repeat(4) {
    	      forward(100)
    	      right(90)
    	}
    	setPenColor(blue)
    	repeat(4) {
    	      forward(100)
    	      left(90)
    	}
    

  13. Now try to draw three hexagons, red, blue, and yellow:

    Hint: Here's how to put three squares next to each other:

    	clear()
    	setPenColor(red)
    	repeat(4) {
    	     forward(100)
    	     right(90)
    	}
    	setPenColor(blue)
    	repeat(4) {
    	     forward(100)
    	     left(90)
    	}
    	right(90)
    	setPenColor(yellow)
    	repeat(4) {
    	     forward(100)
    	     right(90)
    	}
    
    

    Part 2

  14. Open the circle program

  15. An orange circle with a green outline

  16. Use different colors, choose from:
    black, blue, brown, cyan, drakGray, gray,
    green, orange, pink, purple, red, white, yellow

  17. Pink circle with purple outline:

  18. Here's a program for pink and purple:

    Part 3

  19. Make a bigger circle.

  20. Use forward(2)

  21. Try to draw an orange and green snowman

  22. Here's a program that you can use: