code in C++, computer science homework help
code in C++, computer science homework help
1) Mode Function
-Demonstrate your pointer skill by using pointer notation instead of array notation .
In statistics, the mode is a set of values in the value that occurs most often or with the greatest frequency. Write a function that accepts as arguments the following:
A) An array of integers
B) An integer that indicates the number of elements in the array The function should determine the mode of the array. That is, it should determine which value in the array occurs most often. The mode is the value the function should return. If the array has no mode (none of the values occur more than once), the function should return -1.
(Assume the array will always contain nonnegative values).
2) Test Scores
Write a program that dynamically allocates an array large enough to hold a user defined number of test scores, Once all the scores are entered, the array should be passed to a function that calculate the median of the score. Another function should be called that calculates the average score. The program should display median and averages with appropriate headings.
-Use pointer notation rather than array notation whenever possible.
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


