This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 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 Im 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, Englands 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 Todays 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 : one execution of its repetend And we give you a methodology for developing for-loops. 3...
View Full Document
This note was uploaded on 11/27/2010 for the course CS 9339 at Cornell University (Engineering School).