Question: C++ > Arrays 1 Arrays 1 Submit Assignment Due No Due Date Points 10 Submitting afile upload Write a function that takes two input parameters,

C++
> Arrays 1 Arrays 1 Submit Assignment Due No Due Date Points 10 Submitting afile upload Write a function that takes two input parameters, an array of integers named grades and an integer named gnum count of how many grades are in the array. The function computes and returns the number of passing grades, where a passing grade is any grade of 60 or higher. Write a main program that does the following: 1. Ask the user how many grades they want to enter, and read it in. 2. In a for loop, print a prompt like "Enter grade 1:" where the number changes on each entry, and read in the grade. 4. Call the function to compute the number of passing grades and output it. Next Previous
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
