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.