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
Asmaamasry Questions
705 Questions
(Two movable vertices and their distances) Write a program that displays two circles with radius 10 at location (40, 40) and (120, 150) with a line connecting the two circles, as shown in Figure 15.28b
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
239
(Geometry: add and remove points) Write a program that lets the user click on a pane to dynamically create and remove points (see Figure 15.28a)
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
198
(Geometry: inside a polygon?) Write a program that draws a fixed polygon with points at (40, 20), (70, 40), (60, 80), (45, 45), and (20, 60)
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
143
(Geometry: inside a rectangle?) Write a program that draws a fixed rectangle centered at (100, 60) with width 100 and height 40
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
145
(Geometry: inside a circle?) Write a program that draws a fixed circle centered at (100, 60) with radius 50
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
138
(Move a circle using keys) Write a program that moves a circle up, down, left, or right using the arrow keys
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
249
(Enter and display a string) Write a program that receives a string from the keyboard and displays it on a pane. The Enter key signals the end of a string. Whenever a new string is entered, it is displayed on the pane
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
0
172
(Draw lines using the arrow keys) Write a program that draws line segments using the arrow keys
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
166
(Display the mouse position) Write two programs, such that one displays the mouse position when the mouse button is clicked (see Figure 15.26a) and the other displays the mouse position when the mouse button is pressed and ceases to display it when the mouse button is released
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
324
(Change color using a mouse) Write a program that displays the color of a circle as black when the mouse button is pressed and as white when the mouse button is released
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
145
(Alternate two messages) Write a program to display the text Java is fun and Java is powerful alternately with a mouse click
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
174
(Create an investment-value calculator) Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is:
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
159
(Create a simple calculator) Write a program to perform addition, subtraction, multiplication, and division, as shown in Figure 15.25a
Java programming
2022-06-28
Answers
30
Question
40
Followers
30
0
1
169
Total:
705
Previous
52
53
54
55
Next
Go