In C++, create a 3-by-3 array that is capable of storing integers and initialize each entry to 0. Ask the user to supply a row and a column and a value, then put the value into the array at that row and column.

In C++, create a 3-by-3 array that is capable of storing integers and initialize each entry to 0. Ask the user to supply a row and a column and a value, then put the value into the array at that row and column. Print the array to the screen as a table with 3 rows and 3 columns, and ask the user for another row, column, and value. Repeat until the user inputs values for all entries.

Once finished, compute and print the total of the values in the array.

Don't use plagiarized sources. Get Your Custom Essay on
In C++, create a 3-by-3 array that is capable of storing integers and initialize each entry to 0. Ask the user to supply a row and a column and a value, then put the value into the array at that row and column.
Just from $8 /Page 0r 300 words
Order Now

1. When the array is printed to the screen as a table, use setw() to ensure the numbers have enough room. You may assume the numbers are no more than 3 digits each.

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

2. Your program needs to check whether the user input row and column are valid. If the user inputs an invalid row or column (i.e. less than 1 or greater than 3), prompt the user to re-input valid row and column.

3. If an entry already has a user input, your program should disallow user to input a value at the same entry and also ask user to enter a value at a different entry.

Looking for a similar assignment? Get help from our qualified experts!

Order Now