Answer:
Step-by-step explanation:
The following code is written in Python programming language and as requested takes three int/float variables. Then it sums up the three grades and places the result into a variable called sum. Then it creates a variable called average and divides the sum by three to get the actual average. Finally, it prints the value of the average variable to the user.
def average(gradeOne, gradeTwo, gradeThree):
sum = gradeOne + gradeTwo + gradeThree
average = sum / 3
print(average)