c programming i rainfall project 1- College Paper Lab | collegepaperslab.com

College Paper Lab

c programming i rainfall project 1- College Paper Lab | collegepaperslab.com

The objectives of this assignment are as follows:

1.Create a fully functioning desktop application.

2.The form will allow a user to import a textfile named, rainfall.txt. Each row of this file contains a numeric value representing total rainfall for a specific day. This file contains no date information—only the rainfall amount is provided in each row.

3.Your application will display the number of rows read (the count of rows), the count of processed rows, the minimum and maximum rainfall values found, and the average rainfall value for the rows that are processed.

4.Finally, the application will create a new textfile named, rainfall2.txt. This file will consist only of those rows selected for processing.

To properly complete this assignment, you will need to apply the following skills:

1.Construct Windows desktop GUI application using Windows Forms

2.Open, read, and write the contents of a text file

3.Work with loops and conditional logic

Supplementary Information:

Everything you need to understand accessing, reading, and writing a text file can be found in the readings found in the Unit N folder of the Units of Instruction content area.

Additional Resources (please take the time to read and understand):



Assignment User Story:

As a user, I want a new Windows desktop application that is capable of reading a text file, processing the rows according to my business rules, and writing a new file containing only the processed rows.

Assignment Requirements:

In this final assignment you will open, read, and process the rows from the rainfall.txt file. You will repeatedly read numbers from this file. The numbers in the file represent daily rainfall amounts. A row may contain the number 99999 which is an indicator that the end of the data we are interested in has been reached and you can stop reading the file (this is referred to as a sentinel value).

You will count the total number of rows read from the file. And you will determine whether each individual row is ‘good.’ A good row is one in which the value of the row is non-negative. You will then provide a count of these good/processed rows, the minimum and maximum values found in the file, the average value of these processed rows, and then then output only these rows to a new text file named rainfall2.txt.

The program will produce the average of the non-negative values in the file up to the 99999 sentinel value (if it shows up—it may not exist at all in which case you simply read to the end of the file).

The text file to be used with this application is attached: rainfall.txt

Processing Rules:

The rules for processing rows in the input file are as follows:

1.Read the rows in the input file until either the sentinel value of 99999 has been found or the end of file has been reached, whichever occurs first.

2.A ‘good’ row is defined as being one in which the value read from the row is non-negative.

3.In addition to providing the total count of all rows read, also calculate of count of good rows, display the minimum and maximum read values and average rainfall value of only these rows.

4.Write only the ‘good’ rows to an output file named rainfall2.txt.

5.The directory on your own computer that you use to store the files (both the input file and the one that you will create) is up to you. I generally will create the following for an assignment such as this: C:\temp

College Paper Lab – Check our website for more...



Disclaimer: It is illegal to use the research material ordered on this website for other than research purposes. You must quote the sources appropriately. The company bears no responsibility for the use of research work, not intended for education use, the work is sold as-is with the highest quality and service available and written by freelancers. #Domyhomework #studygram #essaywriting #paperwriting #academicwriting #homeworkhelp #homeworkhelper #essayhelp #homeworkhelpservice #examtips #onlinedegree #onlineclasses #freelancerwriting #expertwriters #philosophywriters #assignmenthelp #onlineassignmenthelp #assignmenthelpaustralia #programmingassignmenthelp #matlabassignmenthelp #managementassignmenthelp #engineeringassignmenthelp #computerassignmenthelp #civilassignmenthelp #mechanicalassignmenthelp #lawassignmenthelp #nursingassignmenthelp #bestassignmenthelp #myassignmenthelp