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
(Algebra: quadratic equations) Design a class named QuadraticEquation for a quadratic equation ax2 + bx + x = 0. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
214
(Geometry: n-sided regular polygon) In an n-sided regular polygon, all sides have the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). Design a class named RegularPolygon that contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
203
(The Fan class) Design a class named Fan to represent a fan. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
9377
(The Account class) Design a class named Account that contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
2
462
(Stopwatch) Design a class named StopWatch. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
307
(Use the GregorianCalendar class) Java API has the GregorianCalendar class in the java.util package, which you can use to obtain the year, month, and day
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
183
(Use the Random class) Write a program that creates a Random object with seed 1000 and displays the first 50 random integers between 0 and 100 using the nextInt(100) method
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
254
(Use the Date class) Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, and 100000000000, and displays the date and time using the toString() method, respectively
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
215
(The Stock class) Following the example of the Circle class in Section 9.2, design a class named Stock that contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
308
(The Rectangle class) Following the example of the Circle class in Section 9.2, design a class named Rectangle to represent a rectangle. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
204
(Guess the capitals) Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their capitals are stored in a twodimensional array, as shown in Figure 8.10
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
267
(Latin square) A Latin square is an n-by-n array filled with n different Latin letters, each occurring exactly once in each row and once in each column
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
182
(Largest block) Given a square matrix with the elements 0 or 1, write a program to find a maximum square submatrix whose elements are all 1s
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
171
Total:
555
Previous
9
10
11
12
13
Next
Go