Question: Write a c + + program ( basic ) to create a solution that allows the user to read from a file information as given
Write a c program basic to create a solution that allows the user to read from a file information as given below and store them in an array of structs. The first line of the file will have headers that title each column. You will allow the user to choose a column and then options to do the following. If the column contains NUMERICAL data: calculate the following statistics. The program will have a separate function to find the mean add all the values and then divide by the number of values median middle value if there is an odd number, or the mean of the middle if there are an even number of values the smallest value, the largest value, and search for a value in the list user enters value to search for Print out all statistics, labeled and in a neat form. If the column contains NONNUMERIC data then have separate functions to print the column sorted in ascending order, and search for a value in the list user enters value to search forYour program should read all the data into the array of structs and then allow the user to choose a column to make calculations.
Name Age Team GPA Income
Bob Hockey
Sue Soccer
Anna Lacrosse
Alex Dance
Dave Baseball
Abby Soccer
Jack Baseball
Jill Hockey
Cheryl Soccer
Hannah Dance
Zach Lacrosse
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
