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)
Get Free Quote!
418 Experts Online