Question: Need this coded in C, no C++ functions can be used. Can include stdio.h, stdlib.h, string.h, and ctype.h. EXAMPLE OUTPUT: 1. The program should print

Need this coded in C, no C++ functions can be used. Can include stdio.h, stdlib.h, string.h, and ctype.h.

Need this coded in C, no C++ functions can be used. CanEXAMPLE OUTPUT:

include stdio.h, stdlib.h, string.h, and ctype.h. EXAMPLE OUTPUT: 1. The program should

1. The program should print "COP 2220 Project 4: " with a blank line before and after. 2. Then it should prompt the user for the input file name of the file containing the data to sort 3. If the program can't open the file or if no file name is entered (Ad is entered on Linux or *z- Enter on Windows for EOF), it should print an error message and exit. 4. The file will contain numbers that could be positive or negative integers or floating point numbers four numbers to a line, separated by commas 5. The program should only handle the first 88 valid numbers in the file 6. The program should read the numbers from the file into a single dimensional array and then sort the array in ascending order (lowest to highest) using the bubble sort 7. If the program encounters a non-numeric value in the file, it should flush that input line in the file, print an error message and go to the next line. It should not use any numbers from that line 8. The program should print the sorted list of numbers, 8 numbers to a line in columns 9 characters wide with 2 digits to the right of the decimal point. 9. After printing the sorted list, it should print: There were lines found in file There were valid numbers found in file The smallest number found was: The average of the values is The largest number found was: There were negative numbers in the file o o o The average should be calculated as a double 10. If there are no valid lines in the file, the program should only print the following lines o There were 0 lines found in file o There were 0 valid numbers found in file 11. Include comments in your code to explain what the code does. Make sure to have comments on the program and for each function 12. See the examples below for spacing and formatting 13. Your program should include at least four functions called from main (in addition to main) that vou will define 14. Your program should not use global variables except an optional global debug fla!g

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!