CHAPTER 6 OVERVIEW-HENDRICKSON
6. Ch-6 Repetition Statements(loops)
   a. Lecture over new concepts
        6.1 Classifying loops
            1. Understand the difference between pre-test & 
               post test loops
            2. Understand between fixed repition and variable 
               condition loops
            3. To understand when to use a fixed repition loop
        6.2 The for loop(pre-test loop)
            1. To understand how the loop control variable 
               is used in a loop
            2. To Understand the flow of control when using 
               a fixed repition loop
            3. To be able to use a for loop in a program
            4. to be able to use a for loop in a program 
               that counts down
        6.3 While loops(pretest loop)
            1. To understand when variable repition should 
               be used in a program
            2. To understand why "While" is a variable control
               loop
            3. To understand the flow of control when using 
               a while loop
            4. To be able to use a while loop in a program
            5. To use the while as a fixed repition loop
        6.4 Do while(post test loop)
            1. To understand that Do..while is a post test loop
            2. To understand the flow of control of a do..while 
            3. To be able to use a do while loop in a program
            4. to use Do..while loops with mulitple conditions
               (and/or)
        6.5 Loop assertions
            1. to understand how input assertions & output 
               assertions can be used to verify loops
            2. to understand how loop inveriants and loop variants
               can be used to verify loops
        6.6 Nested loops
            1. To be able to use nested loops
            2. To understand the flow of control when using 
               nested loops
            3. To be able to employ a consistent writing style 
               when using nested loops
            4. Application of nested for loops
            5. Application of mixed nested loop types
        6.7 Repition and selection
            1. To be able to use selection statements(if, switch)
               in the body of loops
            2. To be able to use a loop within an option of a 
               selection statement              
        6.8 Graphics
            1. To learn how to create animations of images
            2. To learn how to affect the spped and smoothness 
               of the movement of an image
        Case Study: Finding a prime number

   b. Programming assignments discussion
        1. program a p282 #1 modified for 5 entries(fixed)(regular)
        1. program a p282 #4 modified for 5 entriew(fixed)(honors)
        2. program b p282 #5 modified for variable number(regular)
        2. program b p364 #7 variable, use data in book(honor)
        3. program c p282 #9 Do...while with variable size(regular)
        3. program c p285 #17 Do..while with variable size(honor)
        4. program d p285 #23 Manhatten Island problem(regular)
        4. program d p376 #27 Calc Pi to +/- 0.001 using while(honor)
        5. program e ___  Multiplication table(regular)
        5. program e ____ Find how many 3 digit numbers are divisible
                          by a product of their digits(also 2 & 4)
                          (honor)
        6. program f p370 #40 (regular..dice)
        7. program f p370 #39 (honors...plot curves)


   c. Debugging techniques
        1. see previous chapters
        2. Loops with large "bodies" must have open"{" & close "}"
        3. for (x=1; x < 5; x++) ; <-- don't put semicolon here
           (null loop...)
        4. while (x < 5){...} & do {....} while (x<5); <--note!
        5. when is doubt, uses braces, too much..ok, too few..crash!

   d. Homework
        6.1 none
        6.2 page 304 #1-8 all
        6.3 page 312 #1-6 all
        6.4 page 319 #1-9 all
        6.5 page 324 #1-3 all
        6.6 page 334 #1-4 all
        6.7 page 338 #1-4 all
        6.8 page 348 #1-6 all
        Vocabulary P359(21 words)
        Chapter Review #1-17 all

   e. Chapter Tests & Quizzes
   
========end of first semester===projected=========================
 Go back    to chapter 5. . . .

 Go forward to chapter 1. . . .

 Go back to Computer Science page. . . .