Question: I need help writing a programming using C only. No C++ can be used. Statistics Calculator Write a program that reads a text file of
Statistics Calculator Write a program that reads a text file of numbers as input, calculates statistics, and displays those statistics to the terminal screen. The input to your program should be a user specified text file. In other words, obtain the name of the input file at run time from the user of the program. Protect your program against crashes that might be caused by a bad file name. Each number in the input text file will be listed on a separate line. Highest value, lowest value, mean, median, and standard deviation are the required statistics. Details of each statistic are listed below. High Value Low Value Mean Median Standard Deviation ,r = = 7l The standard deviation is a measure of The largest numerical The smallest numerical The arithmetic mean value of a set The median is the (commonly referred to as number in the middle of how widely values are dispersed from the "average") value of a set the average value (the mean). a set of numbers (if there are even numbers of values in the set, then calculate the average of the two numbers in the middle The program should be modular. The following nine functions (with respective inputs and outputs) are required as part of your solution: List of numbers Length of list- -List of numbers -Length of list Max Maximum value Getlnput Maximum value -List of numbers Length of list Min Minimum value-Minimum v Hean value- DisplayStats Median value- deviation -List of nunbers- Mean Mean value- -Length of list standa -List of number- -List of numbers- Median Median value--> Sum Length of list- Length of list- -List of nunbers -List of numbers StdDevP -standard deviation Sort -sorted list- Length of list- Length of list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
