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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started