Study Guide for CS 303E Test 2 (Spring 2014) on 31 Mar 2014 * Loops - while and for. Use of break and continue. * Functions - user defined and built-in Look at problems on the Project Euler site. * Math Functions * Random Functions * Strings and String Functions * String Formatting * Reading and Writing Text Files * The questions will be similar to quiz questions and the tutorial exercises that you have done on Code Lab and Coding Bat and simpler versions of your assignment problems. * Work out Logic and String problems from the Java section of Coding Bat. - Warmup-1 - Warmup-2 - String-1 - String-2 - String-3 - Logic-1 - Logic-2 * Here are some additional String problems that you want to consider. In all cases you will be asked to write a function. - Write a function that accepts a String as input parameter and returns True if it is palindromic and False otherwise - Write a function that accepts a String and a rotation parameter and rotates the String by that amount and returns it. For example, given a String "computer" and a rotation parameter of 2, it will return "ercomput". * Here are some file manipulation problems to look at. - Write a function that accepts two Strings - the name of an input file and a target String. It will return the number of occurences of the target String in the file. - Write a function that accepts the name of an input file and a list of forbidden words. If any one of those forbidden words exists in the file it will return False and True otherwise.