Celebrate Birthday
Write a program 08-CelebrateBirthday
that has a function in it called celebrateBirthday()
. That function takes a parameter age
, increments it by 1, and returns that updated age to the caller.
Instructions
The main part of the script should have the user enter their age
. Then use the function to change that person's age, and then print out the new result.
Sample output:
Enter your age: 45 When you next celebrate your birthday, you'll be 46 years old!
Finishing Up
Once your program is working correctly, use your mouse to click-drag over the URL address for your project at the top of the browser window. Copy that link, and give that copied link to the instructor using the procedure given in class.