Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
class-diagram
Polymorphism
flowchart
if-else
Home
Questions
Questions
Study lists
Ashoor Questions
555 Questions
(Game: bean machine) Write a program that displays a bean machine introduced in Programming Exercise 7.21, as shown in Figure 14.52c
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
143
(Random time) Modify the ClockPane class with three new Boolean properties— hourHandVisible, minuteHandVisible, and secondHandVisible—and their associated accessor and mutator methods. You can use the set methods to make a hand visible or invisible
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
126
(Draw a detailed clock) Modify the ClockPane class in Section 14.12 to draw the clock with more details on the hours and minutes, as shown in Figure 14.52a
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
191
(Use the ClockPane class) Write a program that displays two clocks. The hour, minute, and second values are 4, 20, 45 for the first clock and 22, 46, 15 for the second clock, as shown in Figure 14.51c
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
161
(Random points on a circle) Modify Programming Exercise 4.6 to create five random points on a circle, form a polygon by connecting the points clockwise, and display the circle and the polygon, as shown in Figure 14.51b
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
148
(Geometry: Inside a polygon?) Write a program that prompts the user to enter the coordinates of five points from the command line
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
90
(Geometry: two rectangles) Write a program that prompts the user to enter the center coordinates, width, and height of two rectangles from the command line. The program displays the rectangles and a text indicating whether the two are overlapping,
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
94
(Connect two circles) Write a program that draws two circles with radius 15 pixels, centered at random locations, with a line connecting the two circles. The line should not cross inside the circles, as shown in Figure 14.49c
Java programming
2022-06-06
Answers
30
Question
40
Followers
30
0
1
94
(Two circles and their distance) Write a program that draws two filled circles with radius 15 pixels, centered at random locations, with a line connecting the two circles. The distance between the two centers is displayed on the line, as shown in Figure 14.49b
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
73
(Draw an arrow line) Write a static method that draws an arrow line from a starting point to an ending point in a pane using the following method header:
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
94
(Plot the sine and cosine functions) Write a program that plots the sine function in red and cosine in blue, as shown in Figure 14.48c
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
93
(Plot the square function) Write a program that draws a diagram for the function f(x) = x2 (see Figure 14.48b)
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
91
(Game: hangman) Write a program that displays a drawing for the popular hangman game, as shown in Figure 14.48a
Java programming
2022-06-05
Answers
30
Question
40
Followers
30
0
1
104
Total:
555
1
2
3
Next
Go