Question: Programming language is C++ PA 10-1 (25 points) Fill a 20x20 two-dimensional array with random numbers, 0 through 9. Don't use or srand in your

Programming language is C++

Programming language is C++ PA 10-1 (25 points) Fill a 20x20 two-dimensional

PA 10-1 (25 points) Fill a 20x20 two-dimensional array with random numbers, 0 through 9. Don't use or srand in your program. Print out the array. Sum the values in both diagonals (upper left to lower right and upper right to lower left) diagonals Your numbers will be different than the ones shown below 2 5 8 l E:\CodeBlocks-EP\CodeBlocks-EP\Marsh2050\bin'Debug\Marsh2050.exe 1 7 4094 8 8 2 4 5 5 17115 2 76 1 4 2 3 2 2 16 8 576 1 8 9 27 9 5 4 3 1233 4 113874 27 79 3198 6 5 02 86 0 2 4 8 6 5 09006 138 9 34460 6 61 8496 3 78 8 2 9 1 3 5 98 40 7 6 3615 4 2 09 7 372 6 016 5 7 5 4 1 2 0014 607 1 77 7 733 5 9 98 1 8 2 6603 801 2 5 09 4783 5 12 016 406 18 98 4 1 4 3 9 8 808 7 78 3 83710 7 3 4 9 6 5 109 96 8 3 48 499 2 5 5 33 3 7 438088 0 6 8 1 9 8 9 722 8 2 8 90 78 1 5 8 6 124 2 5 8 6 26 53 9 2 4 6 18 2 11 9 7 6 295 2 0 0 39 1 8195 3 2 5 2 5 8 6 7 7229 419 6 98 2 5 5 4 9 1 25 08 3 9 3 9679 9 769 35 7 6 6 5 8 2 5 4 4 16 163 3 5 5 3 2 8 2 5 3 6186 2 1 46 29 1 5 036 49 29 3 4405 9 6 34 28 8 7 5 8 1 2 5 7 4 4 4 4 4 29307 787 The sum of the numbers in the UL -LR diagonal is 81 The sum of the numbers in the UR - LL diagonal is 92 The sum of the numbers in both diagonals is 173 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!