1 / 8

COMP 110 Even more even more loops and stuff

COMP 110 Even more even more loops and stuff. Luv Kohli September 19, 2008 MWF 2-2:50 pm Sitterson 014. Announcements. Lab 3 due Hand in your printed out modifyFace() method Interesting talk on Monday at 4pm, SN011

clare
Download Presentation

COMP 110 Even more even more loops and stuff

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COMP 110Even more even more loops and stuff Luv Kohli September 19, 2008 MWF 2-2:50 pm Sitterson 014

  2. Announcements • Lab 3 due • Hand in your printed out modifyFace() method • Interesting talk on Monday at 4pm, SN011 • William Swartout, “Toward the Holodeck: Integrating Graphics, Artificial Intelligence, Entertainment and Learning” • Arrr! Today be Talk Like a Pirate Day!

  3. Questions? • How is Program 2 coming along?

  4. Today in COMP 110 • Lab 4 assigned • Help with Program 2 if you need it

  5. Silly exercise time!

  6. Review: Types of Loops • while • Safest choice • Not always most elegant • do-while • Loop iterates AT LEAST once • for • Similar to while, but often more convenient syntax

  7. How do you decide which loop to use? Which kind of loop would you use for each of these scenarios? • “Are we there yet?” loop • Crazy driver loop • Candy loop

  8. Monday • Finish up loops • Review strings and loops

More Related