2 Replies - 630 Views - Last Post: 17 June 2009 - 06:49 PM Rate Topic: -----

#1 karen0986  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-June 09

segment program to calculate the height of a rocket

Posted 17 June 2009 - 06:41 PM

i have just study java so i'm so confuse. plz help me solve this task

Write a segment program to calculate the height of a rocket with given time. Rocket has contant acceleration g, itís speed v = g*t (t is time) and itís height Ĺ * v * t
Is This A Good Question/Topic? 0
  • +

Replies To: segment program to calculate the height of a rocket

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1201
  • View blog
  • Posts: 7,309
  • Joined: 07-September 06

Re: segment program to calculate the height of a rocket

Posted 17 June 2009 - 06:44 PM

Not sure what is so hard. Create a Scanner, take the user input as an integer, then plug it into the equations, first v then x (position). The integer input should be used instead of t.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5411
  • View blog
  • Posts: 27,423
  • Joined: 10-May 07

Re: segment program to calculate the height of a rocket

Posted 17 June 2009 - 06:49 PM

** Renamed title to be more accurate of topic **
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1