Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago