Any C++ help around? Attached is a simple functions programming code. Please see the attached sheet for instructions.

Programming Assignment 2 ? Simple Statistics Modularized
CS102 Section 02 SP16
Due 04/11/2016

Description
Continuing with the simple statistics we did in the first programming assignment, we are going to make
things a little bit neater and modularized through the use of functions. We are also going to learn about
sorting data.

Directions
Create the same program as programming assignment 1, but use functions and arrays:
? Create a function that takes user input and stores it to an array of any defined size using #define.
? Create a function to calculate the average using arrays and return the final value.
? Create a function to calculate the standard deviation using arrays and return the final value.
? Create two functions: one for finding the min and one for the max, return the values.
? Create a function that sorts the array where the input values were stored, return the number of
swaps required to order the array from least to greatest.
? Create a function that prints the average, STD, min, max, and the sorted input.
Move your functions to a separate header file, you will be submitting two files: your main.cpp and your

Sample Output:
Aeae
vrg: 350
.0
SdDv
t e: 1183
.10
MnVl
i a: 200
.0
MxVl
a a: 500
.0
Sre nu:200 .0,400 .0
otdIpt .0,300 .0,500

Other Resources
https://www.easycalculation.com/statistics/standard?deviation.php?
? Here is a webapp that you could
check values really quickly for accuracy. You may also use tools like Google spreadsheet or Excel.

Requirements:
? Code must compile, otherwise ?
automatic F?
(this is within reason? if it is an IDE issue, this is not
a problem? but if it?s a syntax error.. missing semicolons, misspelled variables, it?s an automatic
0)
? Commenting your code is required, worth ? of this assignment?s grade.
10%?
? 20%?
of this assignment?s grade will also go to using the function prototypes provided below. If
the prototypes of the functions below are not used, you lose 1/5th of your grade on this
assignment.

REQUIRED CODE: MAIN FILE
#nld sdoh
icue&lt;ti.&gt;
#nld sdi.&gt;
icue&lt;tlbh
#nld mt.&gt;
icue&lt;ahh

#eieSZ 0
dfn IE2

/ ucinpooye
/Fnto rttps
vi eU(la r[,itszOAry?
odgtIfotar] n iefra)
fotgtvrg(la r[,itszOAry?
la eAeaefotar] n iefra)
fotgtiVlefotar] n iefra)
la eMnau(la r[,itszOAry?
fotgtaVlefotar] n iefra)
la eMxau(la r[,itszOAry?
vi otra(la r[,itszOAry?
odsrAryfotar] n iefra)
vi rnSasfotar] la v,fotsdv la i,fot
odpittt(la r[,fotag la te,fotmn la
mx n iefra)
a,itszOAry?

itmi({
n an)
/ eieDcaeIiilz n raso asnee
/Dfn/elr/ntaieayary rvr edd

/ alfntos
/Cl ucin
fri0 IE +)
o(=?i&lt;SZ?i+{
/cl eU( n tr h eunit orary
}

rtr ?
eun0
}

Submission Instructions:
You must submit a ZIP file of your *.cpp and *.h files using the following naming convention:
? LastNameFirstInitial_PA2: EdmondsW_PA2.zip
Visual Studio Instructions:
? Go to Documents &gt; Visual Studio 2010 &gt; Projects &gt; (PROJNAME) &gt; (PROJNAME)
? This folder holds your *.cpp and *.h file(s)!
? Select your *.cpp and *.h file(s)
? Right?click on any selected file
? Hover your mouse over ?
?Send to?
? Select ?
Compressed (zipped) Folder
? Rename the zip file using the naming convention above.
Submit your appropriately named zip file to the assignment dropbox in Canvas.