Similar Books


    No books found

Title
Chapter: 15 / Q: 5
(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:
Chapter: 15 / Q: 6
(Alternate two messages) Write a program to display the text Java is fun and Java is powerful alternately with a mouse click
Chapter: 15 / Q: 7
(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
Chapter: 15 / Q: 8
(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
Chapter: 15 / Q: 9
(Draw lines using the arrow keys) Write a program that draws line segments using the arrow keys
Chapter: 15 / Q: 10
(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
Chapter: 15 / Q: 11
(Move a circle using keys) Write a program that moves a circle up, down, left, or right using the arrow keys
Chapter: 15 / Q: 12
(Geometry: inside a circle?) Write a program that draws a fixed circle centered at (100, 60) with radius 50
Chapter: 15 / Q: 13
(Geometry: inside a rectangle?) Write a program that draws a fixed rectangle centered at (100, 60) with width 100 and height 40
Chapter: 15 / Q: 14
(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)
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