Due: 09/14 at 11:59 p.m.
In this assignment, you ask the user for the size of an array and declare a dynamic
integer array of that size in main(). Then populates the array with integers
from a file and make sure that you read no more than the array's maximum
size into the array. Write a function that takes the array as a parameter (as a pointer) and should also take the length read from the user as a parameter.
This function calculates and returns the standard deviation of all values in
the array. In main(), output the standard deviation.
In your assignment please make sure that:
- You write your code so that it compiles on the UD lab machines and cs2 (so you should be working on this in the lab) using Emacs and g++.
- You document your program thoroughly including:
- A header comment describing the author name, file name, date, and purpose of the file.
- A comment at the prototype of any defined functions (at minimum describe the name, parameters, return value, and purpose of the function).
- All of the comments listed above should contain labels for each entry (Name:, Date:, Purpose:, etc.)
- With respect to documentation standards for this class you can see
this example. For the purpose of this class you can consider this example to be "well documented".
- All identifiers (variable names, method names, class names, etc.) are meaningful to the reader.
- Please include comments that show which parts of your code correspond to a particular problem so I know what to regrade.
What to submit:
Please submit (by email) a single zip archive named lastname_firstname.zip
(use your name) containing your source code and a readme discussing how you
tested your code and the output and why you are confident your program is
robust (can handle all kinds of exceptions and gracefully return).