subject

You are to write a program that performs basic statistical analysis on a 500 element array of integers. Your program should include the following programmer defined functions: int* generateArray(int size){
This function should dynamically create an array of 501 elements and provide random numbers to fill the array. The random numbers should range from 10 to 100. The function should return the created array to the array generated in the main program.

}

int findMode(int *arr, int size){
This function should analyze the array to find the most occurring value in the array. You do not have to account for bi-modal occurrences, so the first modal value is enough to satisfy this function definition.
}

int findMedian(int *arr, int size){
This function should determine the median of the set of numbers in the array. Since there are 501 elements, you should have a clean median. Do not forget that the list has to be sorted in order to properly find the median.
}

Of course, main is critical to the function of your program and should output the mode, median of the list. An output of the 501 element array is not necessary.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
Write a 3-4 page apa formatted paper comparing your organizationโ€™s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
You are to write a program that performs basic statistical analysis on a 500 element array of intege...
Questions
question
Health, 08.02.2021 22:40
question
Mathematics, 08.02.2021 22:40
question
Mathematics, 08.02.2021 22:40
question
Chemistry, 08.02.2021 22:40
Questions on the website: 13722359