CS 111 - 3/28/17 Exam 2 in Class on TUESDAY 4/4/17 Same format as Exam 1 - 20 multiple choice questions - 2 write code questions Picture Algorithms - color manipulation color negative gray scale brighten/darken posterization red-eye reduction - position manipulation mirror image rotation flipping duplicating cropping enlarging reduction Java Topics - looping/iteration statements while for range - selection statements if else elif - boolean operator and or not - return statement Sound Manipulation - Chapter 7 Sounds manifest as waves To digitize a sound, we record the amplitude of the wave as it crosses a point (most often a microphone is at that point) The .wav files we use in class will have 22,050 samples per second. (We record 22,050 amplitude values every second) The amplitude values are stored as a - signed (positive/negative) integer number - using 16 bits - 65536 different values, - half postive, half negative (0 is considered positive for this) Thus amplitude values range from -32,768 to +32,767