Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use the uploaded code to complete the program Assignment 3 Overview This project deals with basic statistics. You will finish coding a program All

Please use the uploaded code to complete the program image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Assignment 3 Overview This project deals with basic statistics. You will finish coding a program All trials have exactly 100 elements, but there could be any number of trials that will read in statistical trials of 100 elements each. The finished 1) Read in cach trial into a hundred element array 2) Calculate the mean for that trial 3) Determine the median for that trial 4) Determine the minimum value for that trial 5) Determine the maximum value for that trial 6) Calculate the standard deviation for that trial 7) Print out the results of each trial to an output file program should be able to: A basic template is given as a starting point, but the rest of the progran is your responsibility. The following function at a minimum should be present: find Mean find Median find Minimum numbers findMaximum calculate the mean of an array of numbers determine the median of an array of numbers determine the minimum value in an array of determine the maximum value in an array of calculate the standard deviation of an array sort an array of numbers from smallest to umbers of numbers sortArray largest printTrialResults print the results for each trial 1) You must use the given main.cpp file without changing the existing code 2) Trial number: column width 11, left justified 3) Mean: column width 12, left justified, fised 1 decimal point 4) Median: column width 14, left justified, fixed 1 decimal point 5) Minimum: column width 11, left justified, fived 1 decimal point 6) Maximum: column width 11, left justified, fixed 1 decimal point 7) Standard Deviation: column width 15, left justified, fixed 1 decimal point For example: 1234567890112345678901212345678901234123456789011234567 8901123456789012345 trial I mean: 45.5 median: 48.7 min: 12.3 max:89.9 std dev: 15.6 trial 2 mean: 51.3 median: 518 min: 4.2 mas: 100.0 std dev: 20.5 Please note the numbers and line above the output are a ruler for reference only. These are NOT to be in your output. Submission You will submit one file for credit: Assignment3.cpp-your Assignment 3 source code

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions