Download the text file containing monthly rainfall totals for the fictional city of Octaville during 1988-1991.

1 view (last 30 days)
You can download this file by right clicking the link, choosing "Save link as," and saving the file to your computer. "OctavilleRainfall.
Read in this data using the fscanf( ) command and answer the following questions (You are NOT allowed to use built-in functions):
(3a) Using fprintf( ) create a two column table displaying the year and the total rainfall for each year accurate to one decimal place.
(3b) Using fprintf( ) create a two column table displaying the month (1-12) and the average rainfall for each month accurate to one decimal place.
(3c) Which month (1-12) had the highest average rainfall? Which year had the highest average rainfall? Do not read this data off the table. You can create your own algorithm to determine this.
  2 Comments
Joseph Cheng
Joseph Cheng on 14 May 2015
Edited: Joseph Cheng on 14 May 2015
Even if we were going to do the homework you didn't even attach the input file.
**edit thank you Walter for editing it so the file is present but whatever edit made it look worse (or is it the firefox issue we're experiencing with the new layout of the website?)

Sign in to comment.

Answers (0)

Categories

Find more on Downloads in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!