Menu

(Solved) : Write Program C Determines Division Highest Sales Quarter Four Divisions Northeast Southea Q43997331 . . .

Write a program (C++) that determines which division had thehighest sales for a quarter. The four divisions are: Northeast,Southeast, Northwest and Southwest.

  1. You will have the following functions, getSales, findHighest,printResult, each of which will be called by main.
  2. The getSales function, you will input the sales for eachdivision into an array called quartersales. You will use the indexof the array to determine which division is the highest sellingdivision. Northeast – 0, Southeast – 1, Northwest – 2, Southwest –3.
  3. In the getSales function, valid the sales amount to make sureit is a positive amount. If a negative amount is entered, make theuser enter the sales amount again.
  4. In the findHighest function, determine which division had thehighest sales.
  5. In the printResult function, display the division name and thesales amount. The sales amount should always be printed with 2decimal places.
  6. Submit your program to blackboard as usual. Always include thefollowing lines of comments in your program as well as otherinternal documentation.
  7. When writing your programs, inputs should always have promptsso the user understands what needs to be input and output shouldalways have descriptions as well.

Expert Answer


Answer to Write a program (C++) that determines which division had the highest sales for a quarter. The four divisions are: Northe…

OR