Create 30

This program will consist of three parts: getGrades(), averageGrades(), and a driver program.
getGrades
Write a function to prompt the user for ten grades and return the result back to main(). Note that any variables declared in getGrades() will be destroyed when the function returns. This means that main() will need to declare the array and pass it as a parameter to getGrades().
averageGrades
Write another function to find the average of the grades and return the answer. Of course, the grades array will need to be passed as a parameter. The return value should be the average.
Driver Program
Finally, create main() that:
 Has the grades array as a local variable
 Calls getGrades()
 Calls averageGrades()
 Displays the result
Please note that for this assignment, integers should be used throughout.