CS 111 - 12/4/14 Tonight - Project 4 Due Final Exam: Wednesday Dec 10 10:30am - 12:30pm in LC B1 20 multiple choice questions 2 write method questions Only Sound topic related questions (no Turtles or Pictures) General Java Questions: could include all information Arrays will be heavily covered For Sound: Volume changing (multiplication) Combining two sounds together (addition) Joined two sounds in series "cropping" make sound bite Repeating a sound Removal of Clipping Changing of pitch Reverse Fade in the volume int [] arr = new int[5]; for (int i = 0; i < arr.length ; i++) arr[i] = i + 5; for (int i = 0; i < arr.length ; i++) arr[i] = arr[i] * 2; pos: 0 1 2 3 4 --------------------------- val: 10 12 14 16 18 int [] arr = new int[5]; for (int i = 0; i < arr.length ; i++) arr[i] = i + i; for (int i = 0; i < arr.length ; i++) arr[i] = arr[i] * i; pos: 0 1 2 3 4 --------------------------- val: 0 2 8 18 32 int [] arr = new int[5]; for (int i = 0; i < arr.length ; i++) arr[i] = i; for (int i = 0; i < arr.length-1 ; i++) arr[i] = arr[i] + arr[i+1]; pos: 0 1 2 3 4 --------------------------- val: 1 3 5 7 4 int [] arr = new int[5]; for (int i = 0; i < arr.length ; i++) arr[i] = i; for (int i = 0; i < arr.length-1 ; i++) arr[i+1] = arr[i] + arr[i+1]; pos: 0 1 2 3 4 --------------------------- val: 0 1 3 6 10