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
(All closest pairs of points) Revise Listing 8.3, FindNearestPoints.java, to display all closest pairs of points with the same minimum distance. Here is a sample run:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
206
(Points nearest to each other) Listing 8.3 gives a program that finds two points in a two-dimensional space nearest to each other. Revise the program so that it finds two points in a three-dimensional space nearest to each other. Use a two-dimensional array to represent the points. Test the program
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
229
(Algebra: multiply two matrices) Write a method to multiply two matrices. The header of the method is:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
236
(Algebra: add two matrices) Write a method to add two matrices. The header of the method is as follows:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
222
(Compute the weekly hours for each employee) Suppose the weekly hours for all employees are stored in a two-dimensional array
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
237
(Sort students on grades) Rewrite Listing 8.2, GradeExam.java, to display the students in increasing order of the number of correct answers
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
203
(Sum the major diagonal in a matrix) Write a method that sums all the numbers in the major diagonal in an n * n matrix of double values using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
210
(Sum elements column by column) Write a method that returns the sum of all the elements in a specified column in a matrix using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
193
(Game: hangman) Write a hangman game that randomly generates a word and prompts the user to guess one letter at a time, as shown in the sample run. Each letter in the word is displayed as an asterisk. When the user makes a correct guess, the actual letter is then displayed. When the user finishes a
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
355
(Sort characters in a string) Write a method that returns a sorted string using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
176
(Culture: Chinese Zodiac) Simplify Listing 3.9 using an array of strings to store the animal names
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
191
(Partition of a list) Write the following method that partitions the list using the first element, called a pivot
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
190
(Merge two sorted lists) Write the following method that merges two sorted lists into a new sorted list
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
187
Total:
555
Previous
12
13
14
15
16
Next
Go