Pass an Array to a Function to Compute a Total

create a program that asks the user to enter their golf scores for a 9-hole course. You will create a function that will pass the array to the definition and compute and display their total so that they can determine if they won the match at the end of the game.
Instructions
Follow these instructions to complete your flowchart and program:

  1. Write a flowchart and C code for a program that does the following:
    o Declare an array that will store 9 values
    o Use a for() statement to store user entered scores for all 9- holes
    o Create a function and pass the array into the definition of the function to compute the total
    o Use an accumulating total statement to compute the total score
    o Use another for() statement to display each hole stored in the array element
    o Display the overall total to the output screen so that the golfer can see if he won.
  2. Submit one Word document which contains:
    o Your flowchart in Flowgorithm
    o A screenshot of your code
    o A screenshot of your output including the Title Bar of the console window.
  3. Submit the “.c” code file, which should include a comment line with your name and the date.
  4. Submit the Flowgorithm (.fprg) file.