My school forced me to take this class because I'm getting an Associate in science (im going for physical therapy) and they said i need at least one computer class. Basically, I am writing a program that needs to read
"This program will read each line of invoice1.txt and print a
statement indicating the item and its cost. When the file
is exhausted, it will print the sum of all of the costs.
hammer 9.95
saw 20.15
shovel 35.40
Total 3 items $ 65.50"
Most of my program is written because my teacher wrote it, my program is reading everything to the cost of the shovel, but i need help for it to read "total 3 items $ 65.50". basicall add them all