Assignment #2 - 88B

Assignment #2 - 88B


          Computers in Engineering - Assignment #2

                                                    Due 1 Oct
                                                    Weight 20

This assignment is based on the following problem: A meteorologist
keeps records of the month's weather as a series of data lines. The
first line represents the number of days in the month, while the
remainder of the lines give the rainfall per day in inches. Your task
is to find the first rainy day in the month (for example, the 5th day
may be the first rainy day). If no rainfall occurs, print an appropriate
message.  The second item of data on each line is the number of hours
of sunshine.  Print the total and the average for the month of the
rainfall and hours of sunshine.
NOTE: You only have to run this program for one month's worth
of data.  You should use the data in INF8:CS208.DATA2.