Question: Write a program that reads a list of grades. The input begins with an integer indicating the number of grades that follow. Output the total
Write a program that reads a list of grades. The input begins with an integer indicating the number of grades that follow. Output the total number of A's (grades that are higher than 92) and what the grades are. For example:
if input is
5 75 63 85 98 96
output will be:
There are 2 A's 98 96
#include
using namespace std;
int main() { int numInts; cin >> numInts; int intArr[numInts]; // get the user input grades and count the number of grades that are greater than 92 // output the number of grades that are greater than 92 in the format suggested // output all the grades that are greater than 92 return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
