THE CORRECT OUTPUT OF THE TEST CASE 10 20 5 10 15 20 25 4 12 18 16 24 32 18 27 36 14 21 12 16 30 40 4 4 12 15 18 21 24 27 28 35 42 10 24 30 45 50 50 20 24 40 60 12 14 24 28 32 36 30 35 40 36 42 48 54 48 56 16 18 49 56 63 54 63 72 81 70 80 90 9. 45 64 72 10 10 20 30 50 60 100 90 40 70 77 80 88 11 12 11 12 66 72 22 33 36 55 60 110 99 44 24 24 48 48 120 84 96 108 13

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
icon
Related questions
Question

For this C++ hw 

Create a multiplication table:

row from 1 to 12

column from 1 to 10

First, populate the multiplication table using a 2D array.

Print out the contents of the multiplication table.

 

Code format:

// 2D_Array.cpp :
//

// put in all required headers

// NEW** include iomanip for setw HERE:

 

// declare constants for the rowSize=12 and colSize=10

// Define a 12 row by 10 column array multArray

// using two nested loops, load all the values
// into the array

// using two nested loops, PRINT all the values
// from the array
//

// print out each element by setting the
// width to 6 characters wide

Below I have attached what the output needs to look like 

THE CORRECT OUTPUT OF THE TEST CASE
10
20
5
10
15
20
25
4
12
18
16
24
32
18
27
36
14
21
12
16
30
40
4
4
12
15
18
21
24
27
28
35
42
10
24
30
45
50
50
20
24
40
60
12
14
24
28
32
36
30
35
40
36
42
48
54
48
56
16
18
49
56
63
54
63
72
81
70
80
90
9.
45
64
72
10
10
20
30
50
60
100
90
40
70
77
80
88
11
12
11
12
66
72
22
33
36
55
60
110
99
44
24
24
48
48
120
84
96
108
13
Transcribed Image Text:THE CORRECT OUTPUT OF THE TEST CASE 10 20 5 10 15 20 25 4 12 18 16 24 32 18 27 36 14 21 12 16 30 40 4 4 12 15 18 21 24 27 28 35 42 10 24 30 45 50 50 20 24 40 60 12 14 24 28 32 36 30 35 40 36 42 48 54 48 56 16 18 49 56 63 54 63 72 81 70 80 90 9. 45 64 72 10 10 20 30 50 60 100 90 40 70 77 80 88 11 12 11 12 66 72 22 33 36 55 60 110 99 44 24 24 48 48 120 84 96 108 13
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Array
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education