Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ array Design, implement and test a C++ program using Visual Studio that inpu

ID: 3662431 • Letter: C

Question

C++ array

Design, implement and test a C++ program using Visual Studio that inputs and stores in a singledimension array a set of data values representing Quiz scores and the number of students that received each score. The input data consists of a collection of pairs of data values: • the first integer value in each pair is a quiz score value (values between 0 – 50, e.g., 51 possible quiz score values) • the second integer value in each pair is a frequency count of the number of students that received that quiz score value (e.g., frequency count values are >= 0) (that is, array ScoreFrequency[ k ] is the number of students that received quiz score k). The input data set is a variable-length sequence of these pairs of data values, with the end of the data set denoted by reading in a pair of sentinel data values where the quiz score value is less than 0 (and the associated frequency value is not significant, although it must be specified). For example, a very small input data set might look like: 35 5 50 2 41 6 42 3 48 4 -1 0 which would result in the ScoreFrequency[ ] array of 51 values being all zeros except for the indicated array locations for subscripts 35, 41, 42, 48, and 50 having the associated array values indicated. If the data set contains more than one pair of (score, frequency) values for the same quiz score, then add the additional frequency value to the appropriate array entry (for example, if this data set also contained another pair of values " 42 2 ", then the ScoreFrequency[42] entry would be 5, the initial 3, plus the additional 2 from the second pair of values for quiz score 42). Once the data is input and stored in the array, analyze the dataset and determine the lowest quiz score that any student received, the highest quiz score that any student received, and the largest frequency count for any of the quiz scores: (for the small example, lowestscore = 35, largestscore = 50, and largestfrequency = 6 ). Then produce a console output report with three sections: 1. First, print out the array values in a table format that identifies the quiz scores and associated frequency counts. Only output the sequence of array entries from the lowestscore up to the largestscore range. Also, output the 3 values determined in the analysis step. 2. Then, output a readable "bar chart" graph in a vertical arrangement down the page from the lowestscore to the largestscore, with each labelled line consisting of a horizontal bar string of asterisk characters ('*') representing the frequency count. 3. Finally, output another readable "bar chart" graph in a horizontal arrangement where the quiz score values (from lowestscore to largestscore) appear across the page and the asterisk-bars are displayed vertically down the page on consecutive lines.

Explanation / Answer

http://www.tutorialspoint.com/cplusplus/cpp_arrays.htm once please do go through this link it is a very good one for beginners.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote