I need help writing a program for my c++ class i dont understand? Please help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need help writing a program for my c++ class i dont understand? Please help?

i am supposed to write a program to display a matrix first it needs to ask for the number of rows and columns then depending on your input, 1) The next to the last column should be the sum of each row. 2) The last column is the average of each row 3) the next to last row is the sum of each column. and finally 4) the last row is the average of each column.

11th Nov 2016, 12:25 AM
Jesus Esparza
Jesus Esparza - avatar
3 Answers
+ 1
This isnt a homework service. please show your work and what you tried first
11th Nov 2016, 12:42 AM
Seckar
Seckar - avatar
0
That is interesting task. So are you looking for a code example demonstrating how to instantiate and display a matrix MxN based on user input?
11th Nov 2016, 12:41 AM
Alexey Shulga
Alexey Shulga - avatar
0
well yes i was hoping to get an example because the part where he asks for the sum and average confuses me and i will show what i have as soon as i can. thanks
11th Nov 2016, 12:51 AM
Jesus Esparza
Jesus Esparza - avatar