STEP 16: Now let's apply that extra credit using change_grade() and see how our average changes!

  • Go to and drag Function Call into the last line of main().
  • Rename the function to change_grade() and include these three parameters: 83, 95, grades.
  • Drag another Function Call to the next line.
  • Rename the function to print_average() and include grades as a parameter.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)