Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9.1 ( Move the ball ) Write a program that moves a ball in a panel. You should define a panel class for displaying the

9.1

(Move the ball) Write a program that moves a ball in a panel. You should define a panel class for displaying the ball and provide the methods for moving the ball left, right, up, and down, as shown in Figure 9.22a. Check the boundaries to prevent the ball from moving out of sight completely.

image text in transcribed

(a) You can click a button to move the ball. (b) You can obtain the future value by entering the investment amount, years, and annual interest rate.

my code:

image text in transcribed

my error:

image text in transcribed

9.3

(Select geometric figures) Write a program that draws a rectangle or an oval, as shown in Figure 9.23. The user selects a figure from a radio button and specifies whether it is filled by selecting a check button.

image text in transcribed

The program displays a rectangle or an oval when you select a shape type, and whether it is filled.

my code:

image text in transcribed

my error:

image text in transcribed

help me get these programs to run correctly. even if you have to change the whole code

74 Moving Ball90 76 Investment CalculatorX Investment Amount Years Annual Interest Rate Future Value 10000 3.2 1102266 Calculate Left Right Up Down

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago

Question

LO1 Discuss four different views of motivation at work.

Answered: 1 week ago

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago