Question: Part C. (Name your C program yourlastName yourFirstNome lab2e.c) 1. Historical records of earthquake activity since 1900 may be found for local regions. Assume that

 Part C. (Name your C program yourlastName yourFirstNome lab2e.c) 1. Historical

Part C. (Name your C program yourlastName yourFirstNome lab2e.c) 1. Historical records of earthquake activity since 1900 may be found for local regions. Assume that earthquake data for the local area is saved in a file named "epquakes.txt". Each data entry should be a floating point magnitude value between 0.0 and 14.0. However, occasionally errors occur that result in bad data values (for example, negative numbers). 2. Using your zyBook example, write a C program that counts and displays the number of values in the data file that are above 3.0. Also count and display the number of entries in the file that are invald 3. Use the sample data file provided. First, write your code using a while loop to read and process all values in the file, regardless of how many there are. Then, comment out your while loop and replace it with a for loop to read and process only the first 10 data values from the file. Test both versions of your code, and capture screenshots of the output each time

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!