Lecture 6 – January 25th

 

Quiz on turning comments into code  - Key to quiz

 

Extended deadline for submission of yesterday’s lab until midnight tonight.

 

General comments about style and update on PrintWriter and FileWriter – Slides

 

Note that all of the links point to text files.

 

Code for examples of  FileWriter

Lecture6.java

Lecture6_2.java

Lecture6_3.java

Lecture6_4.java

 

Code for examples of PrintWriter

Lecture6_7.java

Lecture6_8.java

 

 

 

Glimpse of programming assignment

 

Discussion of words:  lexigraphic, lexicon, and collating sequence

 

Sorting of decks of cards  - followed by discussion of algorithms used and of choices made

 

Sorting of people using bubble sort

            Discussed the terms :  pass,  sort of order n2