Read and format a list of amounts in a file named AMOUNT.TXT.
It should appear right justified and must have exactly two digits after the decimal point.
Say the number is 12, it should appear as 12.00.
If the number is 1.5, it should appear as 1.50.
Furthermore, your program must display the total sum of all the amounts read.
Note: Amount will not exceed 1,000,000 pesos.
SAMPLE INPUT FROM FILE
1
2
5.5
10
1100
100.5
SAMPLE OUTPUT ON SCREEN:
0001.00
0002.00
0005.50
0010.50
1100.00
0100.50
=======
1219.50
This doesn't look like your previous program, and you didn't even use my suggestions.
This looks suspiciously like someone else wrote this program for you, what with advanced concepts like vectors, references, use of the auto keyword which to my knowledge is not taught in any classes yet.
You will not learn if you take code from others and turn it in as your own.