The purpose of a class is that the class contains data and has methods that operate on the data in the class. In this assignment you will create a new class. The data in the class will be an array of doubles. The methods in your class will operate on the array of doubles to give information about the data. The methods will perform the following operations:

  • print - print out the contents of the array
  • count - how many items in the array of doubles
  • sum - add up all the values in the array
  • average - average of all the values in the array
  • min - smallest value in the array
  • max - largest value in the array
  • standard deviation - what is the standard deviation of all the values in the array

Your main routine will act as a driver program for your new class. Your main routine will have to ask the user for the array values, create an instance of the new class with the data. Once the new class is created, your main routine will enter a loop. In the loop the program will present a menu of the possible operations (count, sum, average, etc.) and ask the user for what operation they want to perform. Once the user has selected the operation to be performed you will call the class method that performs that operation and print out the results.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.