Question: Write a C++ program that reads in a list of integers into an array with base type int. The program should read this array from

Write a C++ program that reads in a list of integers into an array with base type int. The program should read this array from a file "Lab7_3input.txt". You may assume that there are fewer than 50 entries in the array. Your program determines how many entries there are. The output is to be a two-column list. The first column is a list of the distinct array elements; the second column is the count of the number of occurrences of each element. (Optional: The list should be sorted on entries in the first column, largest to smallest.) For example, for the input -12 3 -12 4 1 1 -12 1 -1 1 2 3 4 2 3 -12 the output should be Count -12 3 3 After sorting, Count 2 3 2 -1 -124
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
