Common Computer Science References
At the end of this lesson, you will be able to:
create an application that uses arrays
what is an array
read "Holding Data", Chapter 4, Computer Based Problem Solving
read up to and including "Lists"
to get the files in your coded, just place them in the GitHub repo and then pull them over!
read the following problem:
create a "Statistics" application like this:
read in a text file with a list of integers
use an argument being passed in
note: the arguments are an array!
place them in an array
you might need another structure to read them in first, since you have no idea how many there will be
(Hint: maybe an list before you place them in an array!)
show the numbers to the user
create 2 functions, called mean & median
I know there are built in functions that can do these calculations, you can not use them!
you MUST write the functions to do it manually
loops!
pass the array, it must be an array, to each of these functions and do the calculation and return the answer
get the main() to show the results
BONUS: also calculate mode
it is odd, since it could be 1 number or 2!
do the above in a second language