I need to make a program to create an array of doubles. Array of sales for 10 shops in a center .Load this array from a file at the start of the program.
Use a menu to allow display and update of this array.
Allow access to the shops array via menu. Main menu, which should be called from main().
should have these:
1. Display sales for selected shop
2. Display the sales for all shops
3. Display average sales for all the shops
4. Display the highest sales for all the shops
Design the program using modules which must be
“Highly cohesive”-each module performs one task
“Loosely coupled”-pass parameters across to modules if possible
All the options should call a function. Pass the array to the function.
Option3 should call a function that returne the average.
Option4 should call a function that returns the total.
The menu should also be in a function.
Use functions to make shore that the data put in is correct and does not crash with the input of a non number. …..readdouble() or reading()
Note: to clear screen ….. System (“cls”); #include <cstdlib>