(50 points) Problem I: Write a program that does the following:
read a list of double precision floating point numbers from an existing file called "incomes.txt." Pretend these numbers represent customer income per year. You may assume there is at least one income listed in this file, but there are no more than 1024 incomes listed.
print out, to a file called "stats.txt," each of the following statistics:
minimum income
maximum income
average income
finally, print all the incomes in ascending order, one per line
Design Sketch: I want you to write a class for DoubleList. It should be implemented as an array list of doubles. I will tell you how to sort, calculate min, max, and average this week in lecture, so be sure to attend.
(50 points) Problem II: Write a program that does the following:
read a list of student IQ scores from an existing file called "IQs.txt." You may assume there is at least one IQ listed in this file, but there are no more than 1024 IQs listed.
print out, to a file called "summary.txt," each of the following statistics:
minimum IQ
maximum IQ
average IQ
finally, print all the IQ in ascending order, one per line