Sales Statistics Program

Sales Statistics Program

Create a program that uses a one-dimensional array to hold the monthly sales totals for a small business.

The program must be an object oriented program based on the following specifications:

THE STATISTICS CLASS 1. Create an object oriented class named SalesStatistics that has fields for the following items: a. An array to hold monthly sales. b. The total monthly sales for the 12 months. c. The highest monthly sales value of the 12 months. d. The lowest monthly sales value of the 12 months. e. The average monthly sales value for the 12 months.

2. Create Properties for each of the fields: a. Values calculated in the Statistics Class are to be READ-ONLY.

3. Create methods as required to calculated the values for the fields described in parts 1(b) through 1(e) above. Use loops to calculate each of these values. Don't use methods from the Array Class.

4. All calculations are done by the Statistics class. No user inputs or outputs are done by the Statistics class.

THE PROGRAM CLASS 1. The Program class accepts inputs from the user for the following: a. Sales for each month stored as an array.

2. The Program class creates and uses an object of the Statistics class to: a. Pass the inputs to the correct Property of the object. The data should be passed as an array, not as separate values for each month.

3. The Program class displays the following: a. The total monthly sales for the year. b. The highest monthly sales value of the 12 months. c. The lowest monthly sales value of the 12 months. d. The average monthly sales value for the 12 months.

4. The Program class provides for all inputs and outputs of the program. The Program class does no calculations.

No Flowcharts or Psuedocode.

Download the program : Click HERE ( It is in .zip format)

TYPE SOME PART OF QUESTION YOU ARE LOOKING FOR

.

.
acc week