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
(Pattern recognition: consecutive four equal numbers) Write the following method that tests whether the array has four consecutive numbers with the same value
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
159
(Game: pick four cards) Write a program that picks four cards from a deck of 52 cards and computes their sum. An Ace, King, Queen, and Jack represent 1, 13, 12, and 11, respectively. Your program should display the number of picks that yields the sum of 24
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
170
(Math: combinations) Write a program that prompts the user to enter 10 integers and displays all combinations of picking two numbers from the 10
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
188
(Identical arrays) The arrays list1 and list2 are identical if they have the same contents. Write a method that returns true if list1 and list2 are identical, using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
179
(Strictly identical arrays) The arrays list1 and list2 are strictly identical if their corresponding elements are equal. Write a method that returns true if list1 and list2 are strictly identical, using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
157
(Algebra: solve quadratic equations) Write a method for solving a quadratic equation using the following header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
176
(Simulation: coupon collector’s problem) Coupon collector is a classic statistics problem with many practical applications. The problem is to pick objects from a set of objects repeatedly and find out how many picks are needed for all the
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
225
(Game: locker puzzle) A school has 100 lockers and 100 students. All lockers are closed on the first day of school. As the students enter, the first student, denoted S1, opens every locker
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
184
(Game: Eight Queens) The classic Eight Queens puzzle is to place eight queens on a chessboard such that no two queens can attack each other (i.e., no two queens are on the same row, same column, or same diagonal). There are many possible solutions. Write a program that displays one such solution. A
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
270
(Game: bean machine) The bean machine, also known as a quincunx or the Galton box, is a device for statistics experiments named after English scientist Sir Francis Galton
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
182
(Revise selection sort) In Section 7.11, you used selection sort to sort an array. The selection-sort method repeatedly finds the smallest number in the current array and swaps it with the first
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
191
(Sorted?) Write the following method that returns true if the list is already sorted in increasing order
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
209
(Bubble sort) Write a sort method that uses the bubble-sort algorithm. The bubblesort algorithm makes several passes through the array
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
174
Total:
555
Previous
13
14
15
16
17
Next
Go