Question: Please give me a correct c++ answer for the below question I've attached 6. (10 points) Write a that reads integers in the range o...4
6. (10 points) Write a that reads integers in the range o...4 from standard input, input and then prints a program integer were entered. the program histogram of how many of each encounters any integers not in the range or any input that is not an integer it can just stop reading data and print the results i has so far. Here is an example: if the program name is then executing echo 1 1 3 o 2 o o 2 2 2 hist would produce output like this: O: www 1: ww You can assume that all the standard wincludes are there. Just write the main function. (Hint: use an array or a vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
