Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help. I just can\'t seem to get this one and its driving me crazy. Here i

ID: 3657667 • Letter: P

Question

Please help. I just can't seem to get this one and its driving me crazy. Here is the programming challenge An amateur meteorologist wants to keep track of weather conditions during the past year's three-month summer season and has designated each day as either rainy ('R'), cloudy ('C'), or sunny ('S'). Write a program that stores this information in a 3 x 30 array of characters, where the row indicates the month (0=June, 1=July, 2=August) and the column indicates the day of the month. Note that data are not being collected for the 31st of any month. The program should begin by reading the weather data in from a file. Then it should create a report that displays, for each month and for the whole three-month period, how many days were rainy, how many days were cloudy, how many days were sunny. It should also report which of the three months had the largest number of rainy days. Data for the program can be found in the RainOrShine.dat.file.

Explanation / Answer

#include #include using namespace std; int main() { int counter1=0,counter2=0,counter3=0; int rowsize=2,columnsize=29; char ch; ifstream infile("Documents//WeatherData.txt"); char WEATHER [rowsize][columnsize]; for(int i=0;i