Question: Write a program that accepts integers from the user and stores them in a 4x4 array. In the prompt, inform the user of which element

 Write a program that accepts integers from the user and stores

Write a program that accepts integers from the user and stores them in a 4x4 array. In the prompt, inform the user of which element they are filling in. Once all 16 locations (from 1001 to 31131) are filled in, print the array on the screen showing the array indices on the top and the left and showing the sum of each row and sum of each column. Use printe format specifiers and some symbols (11ke l. -, and +) to make the output line up and look nice. Reserve 5 spaces on the screen for each number. A sample output might look like: Index 11 01 21 311 Sum 0 5 5 20 24 28 -10 2 7 7 -1 6 7 -4 7 -2 Sum 11 17 | 16 | 15 14 11 You should write a function to handle the entering of the numbers. You should write a function for printing each data row of this table. You should write another function to calculate the sum of a column, which you will use on the last row of the output. Questions: What happens if someone enters a really big number, like 2000000000? If you're not sure, try it out with your program. What change could you make to your program to make this not be a problem anymore

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!