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
(The Queue class) Section 10.6 gives a class for Stack. Design a class named Queue for storing integers. Like a stack, a queue holds elements. In a stack, the elements are retrieved in a last-in first-out fashion
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
236
(The Course class) Revise the Course class as follows:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
294
(Financial: the Tax class) Programming Exercise 8.12 writes a program for computing taxes using arrays. Design a class named Tax to contain the following instance data fields:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
198
(Game: ATM machine) Use the Account class created in Programming Exercise 9.7 to simulate an ATM machine
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
232
(Displaying the prime numbers) Write a program that displays all the prime numbers less than 120 in decreasing order. Use the StackOfIntegers class to store the prime numbers (e.g., 2, 3, 5, ...) and retrieve and display them in reverse order
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
182
(Displaying the prime factors) Write a program that prompts the user to enter a positive integer and displays all its smallest factors in decreasing order
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
167
(The MyPoint class) Design a class named MyPoint to represent a point with x- and y-coordinates. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
293
(The MyInteger class) Design a class named MyInteger. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
9391
(The BMI class) Add the following new constructor in the BMI class:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
175
(The Time class) Design a class named Time. The class contains:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
217
(The Location class) Design a class named Location for locating a maximal value and its location in a two-dimensional array. The class contains public data fields row, column, and maxValue that store the maximal value and its indices in a two-dimensional array with row and column as int types and ma
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
330
(Geometry: intersecting point) Suppose two line segments intersect. The two endpoints for the first line segment are (x1, y1) and (x2, y2) and for the second line segment are (x3, y3) and (x4, y4)
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
201
(Algebra: 2 * 2 linear equations) Design a class named LinearEquation for a 2 * 2 system of linear equations:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
9359
Total:
555
Previous
8
9
10
11
12
Next
Go