Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the 5 steps of problem solving to create a solution that allows the user to read from a file information as given below and

Use the 5 steps of problem solving 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 2 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 NON-NUMERIC 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 for).Your 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 20 Hockey 3.1125000
Sue 21 Soccer 2.7598000
Anna 22 Lacrosse 3.8465000
Alex 19 Dance 3.51135000
Dave 21 Baseball 2.6574000
Abby 20 Soccer 3.5684000
Jack 19 Baseball 3.264000
Jill 20 Hockey 2.98105000
Cheryl 21 Soccer 3.2597000
Hannah 20 Dance 3.0126000
Zach 21 Lacrosse 3.89132000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions