I have to write a c++ program with 2 functions findmax() and getavg(). The function findmax() will print the larger of 2 numbers sent to it and getavg() will calculate the average of 2 numbers sent to it. The main program will ask the user for 2 numbers and then give the user a menu:
Type 'm' to find the max or type 'a' to get the average:
Read in a value from the user and using a switch statement call the appropriate function
To clarify: This forum will certainly try to help you with homework if there is a specific part you're having trouble with, and you have already attempted the problem yourself. We won't start&finish the homework for you.