Question: Applying 2 dimensional arrays and looping structure, create a program using C LANGUAGE that will allow the user to enter the number of rows (r)

 Applying 2 dimensional arrays and looping structure, create a program using

C LANGUAGE that will allow the user to enter the number of

rows (r) and columns (c) and it will prompt the user to

enter the rxc - number of values (it should be able to

accept and print up to 2 decimal places). Then it will display

Applying 2 dimensional arrays and looping structure, create a program using C LANGUAGE that will allow the user to enter the number of rows (r) and columns (c) and it will prompt the user to enter the rxc - number of values (it should be able to accept and print up to 2 decimal places). Then it will display all the entered values in a table format together with the corresponding computed average value per row and column. If the entered row and column value is less than 1 or more than 10, it will display an invalid message. There should be an option to run the program again or to exit. Please follow the sample output below. Enge 1234 Program Created by: Juan Dela Cruz Stub Code: 1234 "ROW X COLUMN AVERAGE" : Enter number of rows (1-10): 5 Enter number of columns (1-10): 2 Enter the 10 integer values, separated by space: 8.5 4 9 2.5 6.7 1.2 3.33 5.4 7 8.2 Table | 8.50 | 4.00 Average: 6.25 | 9.00 | 2.50 Average: 5.75 | 6.70 | 1.20 Average: 3.95 | 3.33 1 5.40 Average: 4.36 | 7.00 | 8.20 | Average: 7.60 Average: | 6.91 | 4.261 Press any key to try again/ n to exit: Engg 1234 Program Created by: Juan Dela Cruz Stub Code: 1234 "ROW X COLUMN AVERAGE" : Enter number of rows (1-10): 3 Enter number of columns (1-10): 5 Enter the 15 integer values, separated by space: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Table | 1.00 | 2.00 | 3.28 | 4.06 | 5.00 Average: 3.00 | 6.00 7.00 | 8.00 | 9.00 | 10.00 | Average: 8.00 | 11.00 | 12.00 13.00 | 14.00 | 15.00 | Average: 13.00 Average: | 6.00 | 7.00 | 8.00 | 9.00 | 10.08 | Press any key to try again/ n to exit: Enge 1234 Program Created by: Juan Dela Cruz Stub Code: 1234 "ROW x COLUMN AVERAGE" : Enter number of rows(1-10): 4 Enter number of columns(1-10): 2 Enter the 8 integer values, separated by space: 8 4.56 9.4 7.5 1.45 5.55 1.35 6 Table | 8.00 | 4.56 | Average: 6.28 | 9.40 7.50 Average: 8.45 | 1.45 5.55 Average: 3.50 | 1.35 | 6.00 Average: 3.67 Average: | 5.05 | 5.90 Press any key to try again/ n to exit: n Thank you. Bye! Engg 1234 Program Created by: Juan Dela Cruz Stub Code: 1234 "ROW X COLUMN AVERAGE": Enter number of rows (1-10): -9 Enter number of columns (1-10): 3 Invalid! Enter a number from 1 to 10 only. Press any key to try again/ n to exit

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!