Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago