Write a C program (see below) and save it in a file called functions2.c in your ./CMSC104/hw7 directory
Compile the program:
gcc -o functions2 functions2.c
Run the program to make sure it works:
./menu
Use the SUBMIT utility to turn in the homework.
submit cs104_grasso hw07 functions2.c functions2.h functions2
Do the following:
Copy your menu.c code from the hw6 directory to your hw7 directory
Rename the source file to functions2.c
Modify the code to do the following:
Implement the 3 functions that are called from the menu
The function should request user input specific to that function
Make sure that you echo the input back to the user.
Calculate the result
Return the result as the appropriate data type
Create a new file called functions2.h that contains the function declarations for those 3 functions
Add the #include "functions2.h" statement to your functions2.c source file
Use a switch statement to process each user request
Call the appropriate function for that menu item.
Print the result
After processing, redisplay the menu.