15 While Loop

How is a While Loop different from a For Loop?

Vocabulary

Index, termination

Study Questions

  1. Are there situations where you should consider a While Loop over a For Loop?
  2. When does the While Loop terminate execution?
  3. What is the significance of initialization, test, change for any loop?

Activity

  • Watch Video #1 (below)
  • Visit Sol Lewitt: A Wall Drawing Retrospective and google search results for Sol LeWitt Art.
  • Read a brief life and work overview to learn about the artist.
  • Select several art pieces showing a regular pattern that interest you. Share your selections with the teacher to finalize the drawing that you will recreate.
  • Your project must use the While Loop(s).
  • Comment your code well.
  • Use camelCase for variable, function names, or where ever appropriate.
  • Create a styled webpage using the basic wireframe shown below as a guide.
    • Use BULMA css classes to style your site and content within.
  • Define the vocabulary from this lesson. Use font size or style to emphasize Vocabulary Word and its definition clearly.
  • Answer the study questions.

Resources

  1. Video: 15 While Loop
  2. Link: Sol LeWitt at Mass Moca