Thursday, October 15, 2009

Lab 10

1) write a function which prints out all the FACTORS of a number

2) write a function which will return the SUM of its arguments

3) write a function which will return whether a number ISEVEN

4) write a function which will return whether a given year is a LEAPYEAR

5) write a function which will take in a fahrenheit number and return the celsius

6) According to Plato, the ideal age of a wife is half the age of the husband plus 7 years. write a function which will calculate this "ideal" age for the wife, given the husband's age.

No comments:

Post a Comment