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
(Sort students) Write a program that prompts the user to enter the number of students, the students’ names, and their scores, and prints student names in decreasing order of their scores
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
435
(Execution time) Write a program that randomly generates an array of 100,000 integers and a key
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
223
(Eliminate duplicates) Write a method that returns a new array by eliminating the duplicate values in the array using the following method header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
251
(Computing gcd) Write a method that returns the gcd of an unspecified number of integers. The method header is specified as follows:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
209
(Random number chooser) Write a method that returns a random number between 1 and 54, excluding the numbers passed in the argument. The method header is specified as follows:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
188
(Reverse an array) The reverse method in Section 7.7 reverses an array by copying it to a new array. Rewrite the method that reverses the array passed in the argument and returns this array. Write a test program that prompts the user to
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
168
(Statistics: compute deviation) Programming Exercise 5.45 computes the standard deviation of numbers. This exercise uses a different but equivalent formula to compute the standard deviation of n numbers
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
222
(Find the index of the smallest element) Write a method that returns the index of the smallest element in an array of integers. If the number of such elements is greater than 1, return the smallest index. Use the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
185
(Find the smallest element) Write a method that finds the smallest element in an array of double values using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
168
(Average an array) Write two overloaded methods that return the average of an array with the following headers:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
208
(Count single digits) Write a program that generates 100 random integers between 0 and 9 and displays the count for each number. (Hint: Use an array of ten integers, say counts, to store the counts for the number of 0s, 1s, ..., 9s.)
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
169
(Revise Listing 5.15, PrimeNumber.java) Listing 5.15 determines whether a number n is prime by checking whether 2, 3, 4, 5, 6, ..., n/2 is a divisor
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
164
(Print distinct numbers) Write a program that reads in ten numbers and displays the number of distinct numbers and the distinct numbers separated by exactly one space (i.e., if a number appears multiple times, it is displayed only once)
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
171
Total:
555
Previous
14
15
16
17
18
Next
Go