Write a program with one void function. This function will be named get_age.
In the get_age function, ask the user to input their age, and then display
that value back to the screen.
Lab 8-2
Project Name: yourname8_2
cpp filename: yourname8_2.cpp
Write a program with three void functions. Name the functions get_value,
am_person and pm_person
Ask the user to answer the following question: "Are you a morning person
(enter 1) or an evening person (enter 2)
Depending upon the user's answer, call the appropriate function that will
display an appropriate message.
Lab 8-3 Value-Returning Functions
Project Name: yourname8_3
cpp filename: yourname8_3.cpp
Write a function that returns an integer value to main
Inside the function, ask the user to input an integer value. (For ex., the
number of pairs of shoes that they own?)
Return this value back to main
In main, display the value that was returned.
Lab 8-4 (calculator) - 25 points
Project Name: yourname8_4
cpp filename: yourname8_4.cpp
Change you calculator program to use functions for the add, subtract, multiply
and divide features
Name your functions f_add, f_sub, f_div, f_mul. These should be void functions
(each function will thus have to do the calculation and display the answer
inside the function.
Add a function to gather the input from the user and to do error checking.
Add a menu selection item for the user to choose their math operator. The
menu should look something like this:
Welcome to the calculator!
Make your choice from the menu
below:
a - add my numbers
b - subtract my numbers
c - multiply my numbers
d - divide my numbers
Your program should use the switch statement to evaluate the user's answer
Use the toupper() function to allow the user to enter any lower case letter
and convert it to upper case (Note: your switch statements should use upper
case!