Exercises: Functions

These exercises are based on the variables exercises, so you may start from those (your solutions or ours) or start from scratch.

Why pay a fortune teller when you can just program your fortune yourself?



Forgot how old you are? Calculate it!



Ever wonder how much a "lifetime supply" of your favorite snack is? Wonder no more!



Create 2 functions that calculate properties of a circle, using the definitions here.

Create a function called calcCircumfrence:

Create a function called calcArea:



It's hot out! Let's make a converter based on the steps here.

Create a function called celsiusToFahrenheit:

Create a function called fahrenheitToCelsius: