Write a c program using pointers that will create


Write a C++ program using pointers that will create dynamically allocated array of monthly sales figures whose size has been input by the user. After prompting the user to input the sales figure, it will find the highest monthly sales amount and the lowest monthly sales amount. And it will calculate the average sales of the monthly figures.

The program should be modular with each major task being handled by its own function.

(PLEASE USE POINTERS.)

Sample run:

Please input the number of the monthly sales figures to be input: 4

Please input the sales for month 1: (some number)

Please input the sales for month 2: (some number)

Please input the sales for month 3: (some number)

Please input the sales for month 4: (some number)

The highest monthly sales amount was (highest sale)

The lowest monthly sales amount was (lowest sale)

The average sales amount for 4 sales figures is (average)

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a c program using pointers that will create
Reference No:- TGS01480365

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)