Quote:
|
Originally Posted by L_i_o_n
Okay I need to modify the following program so that I can total the amount of hours in each month rather than generalize it to 744.
|
According to your initial post:
Quote:
|
Write a program that asks for the starting time and the number of minutes of call...
|
Given that you know the date in which each call is made, you have the information needed to determine in what month any particular call is made. How you save the information depends upon the course level
(Is this an introductory course or something more advanced?). Not knowing anything about the expectations or what material you have covered, you could be saving all input to an array, file, or linked list. With any of these options, you will need to traverse however the information was stored given specific knowledge of what month is to be summarized.