Lecture 15-More Loops - CS1110 21 October 2010 A4: mean:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 1 CS1110 21 October 2010 Read: Sec. 2.3.8 and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams A decimal point I'm a dot in place Animosity Is no amity Debit card Bad credit Desperation A rope ends it Dormitory Dirty room Funeral Real fun Schoolmaster The classroom Slot machines Cash lost in 'em Statue of liberty Built to stay free Snooze alarms Alas! No more Z's The Morse code Here come dots Vacation times I’m not as active Western Union No wire unsent George Bush He bugs Gore Parishioners I hire parsons The earthquakes That queen shake Circumstantial evidence Can ruin a selected victim Victoria, England’s queen Governs a nice quiet land Eleven plus two Twelve plus one (and they have 13 letters!) 2 A4: mean: 96.7 median: 98 std dev: 6.2 A4 times: mean: 5.6 median: 5 std dev: 2.5 A4 max times: 15 (2 people) 12 (2 people) 10 (4 people) 09 (5 people) 08 (5 people) Only 107 people gave us the time spent Today’s terminology: assertion : true-false statement, sometimes placed in a program to assert that it is true at that point. precondition : assertion placed before a statement postcondition : assertion placed after a statement loop invariant : assertion supposed to be true before and after each iteration of the loop iteration of a loop
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/27/2010 for the course CS 9339 at Cornell University (Engineering School).

Page1 / 2

Lecture 15-More Loops - CS1110 21 October 2010 A4: mean:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online