
-----------------------------------
JumpingLimaBean
Thu Apr 28, 2011 5:29 pm

Help  Turing Functions Assignment
-----------------------------------
So i was absent from school today, and it turns out my class learnt functions.

I have to do the following in one program:

Write a program that includes the following functions: 
1. average - send two real numbers as parameters, and return the average of the two 
numbers 
2. isOdd - send an integer as a parameter, and return true if the number is odd, and 
false otherwise. 
3. distance - send two pairs of x and y coordinates as parameters, and return the 
distance between the two points. 
4. getInteger - send a string as a parameter.  The string should represent the message 
printed for the user.  The method will print the message to the user, and then get 
the user's input.  The method should return the integer if it is valid input, or keep 
requesting new input if the user does not provide valid input. 


This makes no sense *