Question: For this first activity, imagine that you work for a company that installs house external lighting. One of the main products that your company sells

For this first activity, imagine that you work for a company that installs house external lighting. One of the main products that your company sells is LED snowflakes light projectors. The distance that these devices must be from the house front door is computed by the following equation: The distance equation is as follows: distance = house height / tangent(aperture angle) where the aperture angle of this device is 30 degrees. Your manager has asked you to make a Java program that does such kind of calculation, and she expects that by entering (hard-coding) the house height, the program would provide the optimal distance to install the projector in the front yard. 1. Do an internet search and figure out how to use a Java API class to compute the tangent of a given angle (pay attention to units! Angles sometimes are given in units of degrees and sometimes in units of radians) 2. Create a java program with the equation above and then run it with a 20 foot-tall house. Your program should print something like this: Distance from the front door should be 34.6 feet for a 20 foot tall house

complete using java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!