subject

Programming Exercise 8.2 on page 327. Additional details: The size of an array cannot be changed based on user input (dynamic memory allocation), so the matrix should be dimensionsed to the max size ever expected (10 x 10 perhaps). Prompt user to enter N (the size of the N x N matrix). The program should work for any N >= 2. N should not be used anywhere for matrix dimensions. It is only used in for loops to control user input and printing. Note that a 3x3 matrix is really just using the upper corner of the 10x10 matrix. Prompt the user to enter the elements in the matrix row-by-row. Display the NxN matrix. Display the sum of the elements in the major diagonal. The sum should be displayed from the main function, not from the function sumMajorDiagonal. Include a printout of the main program and the function. Include printouts for the test case in the textbook as well as for a 2x2 matrix and a 3x3 matrix.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Much has been made of the new web 2.0 phenomenon, including social networking sites and user-created mash-ups. how does web 2.0 change security for the internet? how do secure software development concepts support protecting applications?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
You know the right answer?
Programming Exercise 8.2 on page 327. Additional details: The size of an array cannot be changed bas...
Questions
question
Mathematics, 04.06.2021 17:50
question
Mathematics, 04.06.2021 17:50
question
Mathematics, 04.06.2021 17:50
question
Spanish, 04.06.2021 17:50
Questions on the website: 13722367