Question: In C + + Our charitable organization tracks donations in the file named Donations.txt ( attached below ) Read the file into a new

In C++
Our charitable organization tracks donations in the file named "Donations.txt"(attached below)
Read the file into a new program and display its contents followed by the total of all donations
Format your output to match the attached sample named "Sample_Donations.txt"(this file is only to see the desired output style - do not use this file in the program)
Donations.txt:
month Day Year ID Donation
11201818792.33
214201851544.13
413201828689.50
54201818710.13
66201818758.47
85201857856.12
917201932680.26
107201932644.63
112220185781200.12
12120182861.01
Format (Sample_Donations.txt):
Date ID Donation
-------------------------------
01/01/201818792.33
02/14/201851544.13
04/13/201828689.50
05/01/201818710.13
06/04/201818758.47
08/05/201857856.12
Total 350.68

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!