I am not sure how to start and if i'm headed in the right direction with functions and arrays in C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am not sure how to start and if i'm headed in the right direction with functions and arrays in C++

write a program that asks users to input up to 20 integers, and then find the maximum, minimum, average, and median of the numbers that were entered. Supposed to use functions called index_of_longest, average, and median. Here is what I have so far: https://code.sololearn.com/ca20A15A14A7/#cpp

8th Mar 2021, 2:51 AM
Carlye
4 Answers
0
Ok, maybe can I see an example of starting the functions of what you're explaining. I'm a total newbie on this.
8th Mar 2021, 3:35 AM
Carlye
0
Or an example of an array and function that is doing similar jobs. I'm not sure what should be passing through the function and array to even use a function.
8th Mar 2021, 3:39 AM
Carlye
0
Yeah, I'm not learning through solo learn but I use it to help review and to get help answering some questions.
8th Mar 2021, 4:16 AM
Carlye
0
I was just thinking that you need to first understand how mean, median is calculated. Once that part is cleared, you start to dig on how to implement it in codes.
8th Mar 2021, 4:23 AM
Ipang