Question: C++ - calculating hours worked Suppose a log file has been created to keep track the hours worked by a programmer. The log contains at

C++ - calculating hours worked

C++ - calculating hours worked Suppose a log file has been created

Suppose a log file has been created to keep track the hours worked by a programmer. The log contains at most 100 entries. Each entry consists of two columns. The first column is a date and the second represents hours to be billed for that day of work. Assume the log was saved as a disk text file (c:templmyloghours.txt) Dec-30-2018 30 Dec-31-2018 5 Jan-01-2019 20 Jan-02-2019 15 Jan-21-2019 7 Feb-03-2019 43 Feb-04-2019 44 Write a CPP program to read a log file similar to the above disk file and calculate the total hours worked, as well as the monthly sub-totals. For instance, a possible output rendition for the program could be as shown below Total hours 165 Dec 35 Jan 42 Feb 87

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 Databases Questions!