Did you get this code above as a starter for your problem? Or, is there code missing from the above quote? It seems to me that this looks like a starter section of a problem that a professor might...