Projects: Functions (a)
Instructions: Create a C program that runs successfully for each project below.
Project 1
Using a user-defined function, make a program that converts kilometers to miles.
The conversion calculation is: kilometers * 0.621 = miles
Project 2
Make a program that uses three user-defined functions:
- first function: calculate the viewer's age at the millenium (2000)
- second function: calculate the year of the viewer's 21st birthday
- third function: calculate the year of the viewer's 50th birthday
Print these three results.