Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

On a time crunch. No idea how to do it at all please help. \"Write a C++ program

ID: 3632839 • Letter: O

Question

On a time crunch. No idea how to do it at all please help.

"Write a C++ program in a script file that creates a n x m matrix with elements that have the following values. The values of the elements in the first row is the number of the column. The value of the element in the first column is the number of the row. The rest of the elements are equal to the sum of the element above them and the element to the left. When executed, the program asks the user to enter values for n and m."

Hint: Use for and if……else if……….else…….. loops
Your Solution should look like this:
>>enter the rows3
>>enter the columns3
>>A =
1 2 3
2 4 7
3 7 14
>>enter the rows4
>>enter the columns5
A =
1 2 3 4 5
2 4 7 11 16
3 7 14 25 41
4 11 25 50 91

Explanation / Answer

#include int main() { int A[50][50],i,j; int m,n; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote