Question
Question 1 of 3. Count Frequency: [20 marks] Write a program with function(s) that counts the frequencies of array elements. Your program will take an
Question 1 of 3. Count Frequency: [20 marks] Write a program with function(s) that counts the frequencies of array elements. Your program will take an array as input from the user. Write a function called CountFreq() that takes the array as a parameter and prints all unique elements and their frequencies. You can print the elements in any order. Make sure your code works for any input number/array, not just the test cases. Your code will be tested on other test cases not listed here. You need to assume a maximum array size of 20 Please properly comment your code before submission. For this part of the assignment, name your source file as CountFrequency_WSUID.cpp. For example, if your user ID is A999B999 name your file as CountFrequency_A999B999.cpp.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started