View the step-by-step solution to:


A program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should

be stored in a two-dimensional array. Once the figures are entered, the program should display the following data for each quarter:

- A list of the sales figures by division

- each division's increase or decease from the previous quarter (This will not be displayed for the first quarter)

- The total sales for the quarter

- The company's increase or decrease from the previous quarter (This will not be displayed for the first quarter)

- the average sales for all divisions that quarter

- the division with the highest sales for that quarter

Input Validation: Do not accept negative numbers for sales figures.

Top Answer

View the full answer

Quater 1 Division 1: 12
Quater 1 Division 2: 23
Quater 1 Division 3: 234
Quater 1 Division 4: 12
Quater 1 Division 5: 23
Quater 1 Division 6: 233
Quater 2 Division 1: 12
Quater 2 Division 2: 23...

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question