Added array valua total function.
Finished coding portion of assignment.