Question: Programming Project #4 EGRE245 Fall 2018 Analyzing Rainfall 1 Overview The rainfall figures know the total rainfall for each week, the total rainfall for all

 Programming Project #4 EGRE245 Fall 2018 Analyzing Rainfall 1 Overview The

rainfall figures know the total rainfall for each week, the total rainfall

for all six weeks, which week was the driest and wettest, plus

Programming Project #4 EGRE245 Fall 2018 Analyzing Rainfall 1 Overview The rainfall figures know the total rainfall for each week, the total rainfall for all six weeks, which week was the driest and wettest, plus the total rainfall on the driest and wettest days (ie. Sundays in all the weeks, or Mondays, Tuesdays, etc.) as well as uhich days were the driest and wettest (study the sample data and run), in millimeters (mm) are available for the past six weeks. We want to Write a program that reads in six weeks of rainfall data, echo prints the output to the screen, and then outputs the information mentioned above (your output should match the sample run exactly except for the input rainfall data itself and my name). Note that the first rainfall value per week represents Sunday's data. You may assume that this input data will always be integers greater than or equal to 0. You may not use arrays or any other files other than the input data file in your program. Your data must come from a file that has been inputted through redirection on the command line; see the sample run for a demo of how this is done (how this works will also be demo'ed in class). To do this you need not do anything differently in your actual code: write your scanf input statement(s) eractly as you have been doing up to this point. Up to this point you have run your programs on the command line by either typing a or a. exe (in Windows) or a.out (in Linux or on a Mac). When you run this project as you have done in the past your program will expect input to come from the keyboard exactly has it has worked in the first three projects (with no prompts this time, however). Note that this would be a lot of data to type in every time you run your program! So instead for project #4 you will run your programs differently on the command line: for this project if you type a.exe

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!