Write a c++ program that asks the user to enter two numbers (from 100 to 999) to create a matrix that have the size [a][5]. Then, the program will reverse the digits of each element in that matrix and it will print it again. As shown in figures below Enter start number of elements to make your array shoud be(from 100 to 999): 100 Enter the end number of elements to make your array, should be greater than the first number : 115 10e 101 102 103 104 1e5 106 107 108 109 110 111 112 113 114 The matrix after reversing the digits of each element will be : 1 181 201 301 401 601 701 Be1 ge1 411 501 11 111 211 311 Process exited after 4.309 seconds with return value e Press any key to continue Enter start number of elements to make your array shoud be(from 100 to 999): 120 Enter the end number of elements to make your array, should be greater than the first number : 170 120 121 122 123 124 127 128 125 126 129 130 131 132 133 134 135 136 137 138 139 144 149 154 140 141 142 143 145 146 150 151 147 152 153 155 156 157 158 159 162 163 167 168 148 160 161 165 166 164 169 The matrix after reversing the digits of each element will be 21 121 221 321 421 521 621 721 821 921 31 131 531 631 141 231 331 731 831 241 341 741 841 431 931 441 941 41 $41 641 51 151 251 351 451 551 651 751 851 951 61 161 261 361 461 561 661 761 861 961 Process exited after 7.571 seconds with return value e Press any key to continue.

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
i need the answer quickly
Write a c++ program that asks the user to enter two numbers (from 100 to 999) to create a
matrix that have the size [a][5]. Then, the program will reverse the digits of each element in
that matrix and it will print it again. As shown in figures below
Enter start number of elements to make your array shoud be(from 100 to 999): 100
Enter the end number of elements to make your array, should be greater than the first number : 115
104
108 109
113 114
100 101 1e2
103
105 106 107
110 111
112
The matrix after reversing the digits of each element will be :
1 101 201 3e1 401
501 681 701 se1 901
11 111 211 311 411
Process exited after 4.309 seconds with return value e
Press any key to continue.
Enter start number of elements to make your array shoud be(from 1ee to 999): 120
Enter the end number of elements to make your array, should be greater than the first number: 170
120 121 122 123 124
127
132
137
125 126
130 131
128 129
133
134
138
139
135 136
140 141
142
143
144
145 146
150 151
155 156
147
148
149
152
153
154
159
164
168 169
157
158
163
160
161
162
165 166 167
The matrix after reversing the digits of each element will be :
21
121
221 321 421
521
621
721
821
921
31
131
231
331
431
531
631
731 831
931
41
141
241
341
441
541
641
741
251
841
351
851
941
51 151
451
951
551
651
751
61 161
261
361
461
561
661
761
861 961
Process exited after 7.571 seconds with return value e
Press any key to continue
Transcribed Image Text:Write a c++ program that asks the user to enter two numbers (from 100 to 999) to create a matrix that have the size [a][5]. Then, the program will reverse the digits of each element in that matrix and it will print it again. As shown in figures below Enter start number of elements to make your array shoud be(from 100 to 999): 100 Enter the end number of elements to make your array, should be greater than the first number : 115 104 108 109 113 114 100 101 1e2 103 105 106 107 110 111 112 The matrix after reversing the digits of each element will be : 1 101 201 3e1 401 501 681 701 se1 901 11 111 211 311 411 Process exited after 4.309 seconds with return value e Press any key to continue. Enter start number of elements to make your array shoud be(from 1ee to 999): 120 Enter the end number of elements to make your array, should be greater than the first number: 170 120 121 122 123 124 127 132 137 125 126 130 131 128 129 133 134 138 139 135 136 140 141 142 143 144 145 146 150 151 155 156 147 148 149 152 153 154 159 164 168 169 157 158 163 160 161 162 165 166 167 The matrix after reversing the digits of each element will be : 21 121 221 321 421 521 621 721 821 921 31 131 231 331 431 531 631 731 831 931 41 141 241 341 441 541 641 741 251 841 351 851 941 51 151 451 951 551 651 751 61 161 261 361 461 561 661 761 861 961 Process exited after 7.571 seconds with return value e Press any key to continue
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
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