From N V Fitton, ideas to share with my students at Northern Virginia Community College, Alexandria campus.
I teach mathematics and computer science.

Wednesday, January 18, 2006

130 recap and homework for Tuesday, January 24

We got through page 11 of my Logo work. See corrected page 11 here if you missed class.

Assignment for next week:

  • Polygon — well, we did that in class, so rather than submit it, make sure you understand it! Think about variations: Add a third variable for orientation, to draw left or right. Create a procedure for a parallelogram with side lengths and one angle specified. Rather than a polygon with n sides, how about a star with n sides?

  • Multisquare — a lot of squares together. More challenging: a Multipolygon, with polygons nested so that they are not touching. Use repeat and a variable to make this routine as short as you can!

    Here are examples of multisquare and multipoly.






  • Howmany procedure — like howlong on page 11, except that rather than give the length of the word, it tells how many of a given letter occur in the word. This is a challenging problem!


Please submit each program in a separate e-mail to vfitton@nvcc.edu. You may attach a program file (with suffix .LGO) if you like — see about files later in my book — or just cut and paste the text of your procedure into an e-mail.

For submissions, please use subject lines "130 multisquare" and "130 howmany"; for questions, please use the subject line "130 question" — and don't forget to include the code that shows your problem!

0 Comments:

Post a Comment

<< Home