Write a program that reads in a set of positive integers,representing test score
ID: 3617290 • Letter: W
Question
Write a program that reads in a set of positive integers,representing test scores for a class, and outputs how many times aparticular number appears in the list. You may assume that the dataset has at most 100 numbers and -999 marks the end of the inputdata. The numbers must be output in increasing order.
For example, the data set:
55 80 78 92 95 55 78 53 92 65 78 95 85 92 85 95 95 -999
The output is:
Test Score Count
53 -------- 1
55 ---------2
65 ---------1
78 ---------3
80 ---------1
85 ---------2
92 ---------3
95--------- 4
Explanation / Answer
please rate - thanks there were a few things not very clear in the question so messageme if any problems #include "iostream" using namespace std; int main() { const int array_size = 100; int array[array_size]; int i = 0; int number; int c; for(int c = 0;c number) && (number >= 0) &&(number!=-999)) { if(number >=array_size) { coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.