Question: Lab Purpose This lab gives you practice using the Visual Studio programming environment to write a program to manipulate simple arrays Always bring to class



Lab Purpose This lab gives you practice using the Visual Studio programming environment to write a program to manipulate simple arrays Always bring to class 1. Gaddis' book, How-to handouts from Canvas and your class notes. 2. This assignment sheet& the grade sheet for this lab already printed out 3. USB Flash drive(s) or other storage media. Mandatory Instructions Microsoft has asked you to write a program that will produce a nice rainfall report for Seattle, WA Your program should read statistics for 12 months of rainfall from a data file called rain.dat. For each month of the year the data file contains the month number, average high temp, average low temp, average precipitation, and average rain/snow days. Data for January with descriptions of the numerical data in order that they appear in the file is shown below 46 36 5.13 18 1-January average high temp average low temp average precipitation average rain/snow days Read the data from the file into separate arrays then process the arrays in the following way: Create a report file, weather-report.txt, containing the following: 0. Title of the report: Seattle Monthly Averages I. Data exactly as it was read from the file 2. Month with lowest number of rain/snow days 3. Month with highest and lowest 4. Average monthly rainfall 5. Total rainfall for the y Example output is shown below. Do not assume the data file will be exactly the same. Verify our results. eattle Honthly Rverages onth High Lo Rain Days 5.13 18 4.18 3.TS 17 2.59 1 1.T8 10 1.49 9 0.T9 5 1.02 163 3.19 13 5.9 5.62 19 36 50 53 64 TO TS T6 TO Jul 51 36 Month with lowest nusber of rain/snow days is Jul (5) Month with higest temperatur is Aug (76) Month with lowest tesperatur is Error (36) Average monthly rainfall is 3.0 Total sonthly rainfall for the year is 37.07 ress any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
