Similar Books


    No books found

Title
Chapter: 14 / Q: 15
(Display a STOP sign) Write a program that displays a STOP sign, as shown in Figure 14.47b. The octagon is in red and the sign is in white. (Hint: Place an octagon and a text in a stack pane.)
Chapter: 14 / Q: 16
(Display a 3 * 3 grid) Write a program that displays a 3 * 3 grid, as shown in Figure 14.47c. Use red color for vertical lines and blue for horizontals. The lines are automatically resized when the window is resized
Chapter: 14 / Q: 17
(Game: hangman) Write a program that displays a drawing for the popular hangman game, as shown in Figure 14.48a
Chapter: 14 / Q: 18
(Plot the square function) Write a program that draws a diagram for the function f(x) = x2 (see Figure 14.48b)
Chapter: 14 / Q: 19
(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
Chapter: 14 / Q: 20
(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:
Chapter: 14 / Q: 21
(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
Chapter: 14 / Q: 22
(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
Chapter: 14 / Q: 23
(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,
Chapter: 14 / Q: 24
(Geometry: Inside a polygon?) Write a program that prompts the user to enter the coordinates of five points from the command line
total questions: 772

Questions

772

Views

A PHP Error was encountered

Severity: Warning

Message: Undefined property: stdClass::$TotalViews

Filename: books/book.php

Line Number: 411

Best Answers

299

Points

5