Complex Logic Problems Involving Arrays and Loops

1...Write a class that will do a sequential search of a 1 dim int array
     called n for the occurrence of a 5

2...Write the above using a pre-defined method

3...Write a class that does a binary search on the same array noted
     above. Assume the array is sorted low to high and no values repeat.
     You are still looking for the 5.

4...Replace all the values in the above array with the absolute value
     of the difference between each value and the standard deviation
     of all the values.

5...Randomly draw 10 by 10 rectangles on a screen that is 800 by 600.
     Rule -- no rectangles are allowed to touch each other. How would
     you decide when to quit.

6...Input a number and perform all the math methods on it and print
     the results along with necessary descriptions. Use casting when
     necessary to complete the task.

7...Given 2 strings of equal length, count the number of times that
     each character in string one is within 3 characters + or -
     from the corresponding character (same relative position)
     in string two. Assume a sequential alphabet of a ---z followed by
     A -- Z.