Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am having troubles figuring out how towrite the code for the following problem

ID: 3618949 • Letter: I

Question

I am having troubles figuring out how towrite the code for the following problem, can someone please helpme out? Write a program that determines which of a company's fourdivisions (Northeast, Southeast, Northwest, and Southwest) had thegreatest sales for a quarter. It should include the followingtwo functions, which are called by main. -- double getSales( ) is passed the name of a division. It asks the user for a divison's quarterly sales figure, validatesthe input, then returns it. It should be called once for eachdivision. -- void findHighest( ) is passed the four sales totals. It determines which is the largest and prints the name of the highgrossing division, along with its sales figure. Input Validation: Do not accept dollar amounts lessthan $0.00. I am having troubles figuring out how towrite the code for the following problem, can someone please helpme out? Write a program that determines which of a company's fourdivisions (Northeast, Southeast, Northwest, and Southwest) had thegreatest sales for a quarter. It should include the followingtwo functions, which are called by main. -- double getSales( ) is passed the name of a division. It asks the user for a divison's quarterly sales figure, validatesthe input, then returns it. It should be called once for eachdivision. -- void findHighest( ) is passed the four sales totals. It determines which is the largest and prints the name of the highgrossing division, along with its sales figure. Input Validation: Do not accept dollar amounts lessthan $0.00.

Explanation / Answer

please rate - thanks #include using namespace std; double getSales(string); void findHighest(string[],double[]); int main() {string div[]={"Northeast","Southeast","Northwest","Southwest"}; double sales[4]; int i; for(i=0;i