Can anybody make this on java ???
plss I nedd it for my exam ...
This is the text fot program :

Program an animation of a cannon ball shot into the air: The position, x,y,
of the cannon ball in the air after t seconds have elapsed is de?ned by these
formulas:
x = initial
velocitycosine(radians angle)t
2
velocitysine(radians angle)t)((gravityt )2)
y = (initial
where initial velocity is the velocity of the ball when it ?rst leaves the cannon,
gravity is the pull of gravity, and radians angle is computed as radians angle =
(degrees PI)180 degrees is the angle that the cannon was pointed when it
shot the cannon ball.
Your application should let the user experiment with di?erent initial velocities,
degrees angles, and gravitational constants.

04-29-2009, 05:30 PM

markw8500

That sounds like a small challenge... But not impossible...

Get started and once you get stuck, post your questions...

04-29-2009, 08:46 PM

2potatocakes

haha, I love newbies that come on here thinking we'll do their homework for them ;)

04-29-2009, 09:42 PM

CJSLMAN

Sorry, but this is not "Code-R-Us". If you have a specific question/problem, you will get a specific answer. You also have to show some effort, so....
On what part are you stuck on?

Luck,
CJSL

04-29-2009, 10:35 PM

eliCanzee

This is a question from david schmidt book chaprer 7.14 question number 15 ... but I don't know how to start has anybody ready this work :P .

04-29-2009, 10:49 PM

CJSLMAN

Start from the begining...

I'm not a GUI expert, so the GUI guys will have to jump in and help out...

First write down the requirements and understand them completely (do you understand the equations?)

Write down on paper the flow of your program and the different classes and methods that you will need.

One of those requirements is:

Quote:

Your application should let the user experiment with different initial velocities, degrees angles, and gravitational constants.

So start by getting the user's options (JOptionPane?)... are there any limits that these options should have? If so. you would also have to check for those limits.

Luck,
CJSL

04-29-2009, 11:22 PM

OrangeDog

This is an exercise you have to do for your exam. If you don't know how to start try reading the rest of the book.