Question: Dev C++ programming. Need urgent within 1 hour please. PROBLEM DESCRIPTION Consider daily (ether 2 or 30 days) carbon dioxide (CO2) data from a greenhouse

Dev C++ programming. Need urgent within 1 hour please.Dev C++ programming. Need urgent within 1 hour please. PROBLEM DESCRIPTION Consider

PROBLEM DESCRIPTION Consider daily (ether 2 or 30 days) carbon dioxide (CO2) data from a greenhouse in unit of parts per-million (ppm), for every month of January to December for the past three years (.e. 2018 and 2020) They are stored in a text file, Co2.c in the format as shown in Figure 1. The months (represented by months' numbers) and corresponding years are stored in file month. text in ordered sequence of months and year as shown in Figure 2. The file content format, for instance: 2019 means January 2019 Assume that for all odd-numbered months (.e. 1.3.5.7... 11), only the first 30 days of CO2 amounts are recorded, and for all even-numbered months (Le.2.4.6.....12). only the first 28 days of CO2 amounts are recorded as illustrated in Figure 1. CO2_1_for_day1 CO2_1_for_day2 1 2018 2 2018 CO2_1_for_day 80 CO2 2 for day 1 : CO2 2 for_day26 12 2018 1 2019 2 2019 12 1 2 2019 2020 2020 CO2_11_for_day 80 CO2_12_for_day 1 CO2_12_for_day2 : 12 CO2_12_for_day 28 2020 Figure 1: Contents of input file Figure 2: Contents of input file month.de Suppose you work with a company as a programmer and your employer passes the two files to you. Your job is to write a modular program using 2 structures (one for storing input data and another for output datal to calculate the total CO2 amounts for each of the 3 years. These results must be tabulated in a neat table format (named Table 1 with correct table title) displayed on screen and in an output file named outlet Table 1 must have columns Year and Total CO2 Amount (ppm). Finally, your program must calculate and identity the month with the most total CO2 for each of the three years. This information must be tabulated in another table (named Table 2 with correct table title) to be displayed on screen and in the same file evlet with information of Year, Month Date and Total CO2 Amount (ppm)

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!