Results 1 to 2 of 2
  1. #1
    Grenade is offline Member
    Join Date
    Dec 2010
    Rep Power

    Exclamation Ladder Program (Need Assistance)

    Hey how is everyone? I have a quick question on how to write the code for this type of Java Program.

    This program is going to start by asking the user in a dialog box is they need a ladder.

    If you type no, the program will display a message saying no ladder was chosen. And it will end.

    The program will pick a random sized ladder between 15 and 25 feet.
    Then the program will lean it against the house at a random number of degrees between 60 and 75.
    The program will convert the degrees to radians. (Using library method)
    Then it will calculate the height of the ladder (Opp of Hyp or the sine of the number of radians times the ladder size.)
    It will then calculate the distance of the ladder from the house (forms a right triangle with the ladder the hyp with hyp squared is the sum of the other 2 sides squared. solving for distance.)

    If anyone can help write this it will be an honor.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Quote Originally Posted by Grenade View Post
    If anyone can help write this it will be an honor.
    Homework dump questions are not allowed. Locking. Please repost this question, but show us what you've done and ask a specific question and we'll be glad to help.
    Last edited by Fubarable; 12-14-2010 at 11:26 PM.

Similar Threads

  1. Assistance needed ASAP: Postpix program
    By Debonairj in forum New To Java
    Replies: 18
    Last Post: 07-27-2010, 02:37 PM
  2. Assistance about this.
    By Syfer in forum Advanced Java
    Replies: 38
    Last Post: 06-21-2010, 06:59 PM
  3. Replies: 7
    Last Post: 11-23-2009, 09:42 AM
  4. Looking for assistance
    By s_dawg101 in forum New To Java
    Replies: 32
    Last Post: 11-04-2009, 03:49 AM
  5. In need of some assistance
    By Boer84 in forum New To Java
    Replies: 2
    Last Post: 07-08-2008, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts