CS99 Fall 2002 Prelim 2 Topics Previous topics: + All topics from T1 + algorithms again + all homework and exercises to date Problems: + short answer: - arrays (creating, inserting, extracting) - characters and strings - a bit about structures + student problem (loops) + character graphics (nested loops) + maybe an algorithm + writing a function (example: write a function called $myUpper$ that converts a lowercase string to uppercase) Loops: + identifying when to use a loop + syntax of $while$ and $for$ + definite and indefinite loops + design process (from algorithm to working loop) + boundary and initial conditions for preprocessing + postprocessing after loops + processing input in loops Arrays: + 1D + 2D + size and dimensions + indexing (from lecture and lab) + storing and retrieving elements Strings: + creating + array of strings + character arithmetic + using numerical values of characters to manipulate strings Functions: + creating... for example, function newString = myUpper(oldString) % MYUPPER make string uppercase +---------------------------------------+ | put your code here | | | +---------------------------------------+ Not on exam: + plotting