The Question: Design a program that has a two-dimensional integer array with 7 rows and 7 columns. The program should store a random number in each element. Then, the program should search the array for saddle points. A saddle point is an element whose value is less than or equal to all the other values in the same row, and greater than or equal to all the other values in the same column. The program should display all of the saddle point values found in the array (if any). The program needs to be in pseudocode, and it's from Chapter 8 Programming Exercise 10 of the textbook "Starting Out With Programming Logic & Design 5 ed". This isn't graded for me, it's just practice, but I'm really stumped on how to do it. I don't know how to exactly approach this, either.
The Question:
Design a program that has a two-dimensional integer array with 7 rows and 7 columns. The program should store a random number in each element. Then, the program should search the array for saddle points. A saddle point is an element whose value is less than or equal to all the other values in the same row, and greater than or equal to all the other values in the same column. The program should display all of the saddle point values found in the array (if any).
The program needs to be in pseudocode, and it's from Chapter 8
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images