Program Description
This program is to be written in
Eclipse (not zyBook). Zip the
project folder that gets created and
upload it to the Chapter 9
Assignment folder on D2L.
First, create a text file that contains
at least 20 numbers, each on its
own line. The numbers are to
represent monetary amounts (i.e.
dollars and cents, such as 123.49).
Name the file Amounts.txt and
store it in the project folder.
In your program, read in the
numbers from the file using a loop.
Do not use a counting type of loop
ā your program should work
correctly based on any number of
values in the file. Display each of
the numbers that are read. Total up
all of the numbers and display the
total. Also, compute the average of
the numbers. For each value that is
displayed, ensure that 2 decimal
digits are displayed (e.g. xxx.xx) by
using the printf method.