Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
Ashoor Questions
555 Questions
(Geometry: rightmost lowest point) In computational geometry, often you need to find the rightmost lowest point in a set of points. Write the following method that returns the rightmost lowest point in a set of points
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
171
(Geometry: polygon subareas) A convex 4-vertex polygon is divided into four triangles, as shown in Figure 8.9
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
197
(Geometry: area of a triangle) Write a method that returns the area of a triangle using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
169
(Geometry: intersecting point) Write a method that returns the intersecting point of two lines. The intersecting point of the two lines can be found by using the formula shown in Programming Exercise 3.25. Assume that (x1, y1) and (x2, y2) are the two points on line 1 and (x3, y3) and (x4, y4) are o
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
292
(Algebra: solve linear equations) Write a method that solves the following 2 * 2 system of linear equations:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
178
(Identical arrays) The two-dimensional arrays m1 and m2 are identical if they have the same contents. Write a method that returns true if m1 and m2 are identical, using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
251
(Strictly identical arrays) The two-dimensional arrays m1 and m2 are strictly identical if their corresponding elements are equal. Write a method that returns true if m1 and m2 are strictly identical, using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
194
(Column sorting) Implement the following method to sort the columns in a twodimensional array. A new array is returned and the original array is intact
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
164
(Row sorting) Implement the following method to sort the rows in a twodimensional array. A new array is returned and the original array is intact
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
183
(Markov matrix) An n * n matrix is called a positive Markov matrix if each element is positive and the sum of the elements in each column is 1. Write the following method to check whether a matrix is a Markov matrix
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
199
(Check Sudoku solution) Listing 8.4 checks whether a solution is valid by checking whether every number is valid in the board. Rewrite the program by checking whether every row, every column, and every small box has the numbers 1 to 9
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
173
(Game: find the flipped cell) Suppose you are given a 6-by-6 matrix filled with 0s and 1s
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
190
(Even number of 1s) Write a program that generates a 6-by-6 two-dimensional matrix filled with 0s and 1s, displays the matrix, and checks if every row and every column have an even number of 1s
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
172
Total:
555
Previous
10
11
12
13
14
Next
Go