Math 112 Written Homework Functions