Write a program that stores these values into a 2-Darray. Rows represent months, and columns represent sales regions. The cells represent sales figures: 6545 6420 6541 4568 9280 9874 1258 6000 3214 8452 5050 7412 3650 8544 8523 2140 5222 9632 3250 9512 1478 3659 4500 2589 4521 3200 3698 6900 3205 8451 2630 4722 9562 5024 8744 3568 Then process this 2-D array and output the totel annual sales by months (ie sum the rows) Your output should resemble ths and note that you wil also want tocreate a 12 ciement string arrav withthe months
Write a program that stores these values into a 2-Darray. Rows represent months, and columns represent sales regions. The cells represent sales figures: 6545 6420 6541 4568 9280 9874 1258 6000 3214 8452 5050 7412 3650 8544 8523 2140 5222 9632 3250 9512 1478 3659 4500 2589 4521 3200 3698 6900 3205 8451 2630 4722 9562 5024 8744 3568 Then process this 2-D array and output the totel annual sales by months (ie sum the rows) Your output should resemble ths and note that you wil also want tocreate a 12 ciement string arrav withthe months
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%

Transcribed Image Text:This question requires C++ and Edipse or Replit IDE works.
PART ONE======-
Write a program that stores these values into a 2-Darray Rows represent months, and columns represent sales regions.
The cells represent sales figures:
6545
6420
6541
4568
9280
9874
1258
6000
3214
8452
5050
7412
3650
8544
8523
2140
5222
9632
3250
9512
1478
3659
4500
2589
4521
3200
3698
6900
3205
8451
2630
4722
9362
5024
8744
3568
Then proces this 2-D array and outout thetofalannua sale by months e sum the rows) Yor outout should resemble
![Then process this 2-D array and output the total annual sales by months (i.e. sum the rows). Your output should resemble
this, and note that you will also want to create a 12 element string array with the months:
Jan sales: 19506
Feb sales: 23842
Mar sales: 18472
Apr sales: 20914
May sales: 20717
Jun sales: 1694
Jul sales: 14248
Aug sales: 10748
Sep sales: 11419
Oct sales: 18556
Nov sales: 16914
Dec sales: 17336
For your convenience, here's code that initializes the array:
int sales(MONTHS (REGIONS] -
( (6545, 6428, 6541),
(4588, 9280, 9874),
(1258, 6000, 3214),
(8452, 5050, 7412),
(3650, 8544, B523),
(2140, 5222, 9632),
(3250, 9512, 1478),
(3659, 4588, 2589),
(4521, 3200, 3698),
(6990, 3205, 8451),
(263e, 4722, 0562),
(5224, 8744, 3568) );
PART TWO --
Take your code from Part Three above and now modify it such that the output is the total sales across all regions (i.e. sum
the columns). Your output should resemble this:
Region 1 sales: 52717
Region 2 sales: 74399
Region 3 sales: 74542](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7046966f-9344-443e-91ea-b5b9aad430b5%2Fb396c8c2-2340-408f-bde5-a17cbd24a326%2F3u9ytki_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Then process this 2-D array and output the total annual sales by months (i.e. sum the rows). Your output should resemble
this, and note that you will also want to create a 12 element string array with the months:
Jan sales: 19506
Feb sales: 23842
Mar sales: 18472
Apr sales: 20914
May sales: 20717
Jun sales: 1694
Jul sales: 14248
Aug sales: 10748
Sep sales: 11419
Oct sales: 18556
Nov sales: 16914
Dec sales: 17336
For your convenience, here's code that initializes the array:
int sales(MONTHS (REGIONS] -
( (6545, 6428, 6541),
(4588, 9280, 9874),
(1258, 6000, 3214),
(8452, 5050, 7412),
(3650, 8544, B523),
(2140, 5222, 9632),
(3250, 9512, 1478),
(3659, 4588, 2589),
(4521, 3200, 3698),
(6990, 3205, 8451),
(263e, 4722, 0562),
(5224, 8744, 3568) );
PART TWO --
Take your code from Part Three above and now modify it such that the output is the total sales across all regions (i.e. sum
the columns). Your output should resemble this:
Region 1 sales: 52717
Region 2 sales: 74399
Region 3 sales: 74542
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education