Exploring Programming | Academics | Middle School | The American School in Japan

Logo Test, Version B, Spring 2001

For this test, you may use your old programs and the help file in MSW Logo.

Download  polygon2.lgo and do the following actions in order:

  1. Modify the do.while loop in the polygon subroutine so that it will draw a hexagon. Show me your code and that it works. Save the file as usernametest1.lgo 

  2. Modify the polygon subroutine so that you pass it the additional integer argument of :numbersides and it will automatically draw the correct figure. Show me your code and that it works. Save the file as usernametest2.lgo

  3. Modify the for loop in the rotate subroutine so that it rotates the angle specified instead of stopping after a few degrees. Show me your code and that it works. Save the file as usernametest3.lgo

  4. Choose one of the following commands, use it in a program, you write, and then explain how it works in the comments of the program. Show me your code and that it works. Save the file as usernametest4.lgo.

Created March, 2001

Last Maintained 04/09/03
Owner: D. Fincher (dfincher@asij.ac.jp)