1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
shepuryov [24]
3 years ago
14

Write a statement that assigns treeHeight with the height of a tree given the distance from the tree (in feet) and angle of elev

ation (in degrees).
Use the following formula: tangent of angleElevation treeHeight/ treeDistance treeHeight
Computers and Technology
1 answer:
Nina [5.8K]3 years ago
6 0

Answer:

treeHeight = tangent of angleElevation * treeDistance

In java, we could write it as:

double treeHeight = (Math.tan(angleElevation) * treeDistance);

Math.tan(angleElevation) is an inbuilt java mathematical function used to calculate the tangent of a value and the return value is always double.

Explanation:

formula:

tangent of angleElevation = treeHeight/treeDistance

We want to assign treeHeight, so we cross-multiply and we get:

treeHeight = tangent of angleElevation * treeDistance

Off course, the treeHeight will be in feet also.

You might be interested in
Which format is used for audio files?<br><br> avi<br> jpg<br> ogg<br> xml
Ghella [55]

Answer:

avi

Explanation:

AVI stand for Audio Video Interleav,avi filename extension is a multimedia container format introduced by Microsoft in November 1992 as part of its Video for Windows software.

3 0
3 years ago
Read 2 more answers
How do you hack a iPhone, Like If you forgot your password and want to get back in your phone. What do you do?
s344n2d4d5 [400]

Answer:

fix it on itunes

Explanation:

or get a new one

6 0
3 years ago
Read 2 more answers
According to the "Solar Technology" article, what happens once solar energy is in the form of electricity? 
sladkih [1.3K]
C. it can be used to power a home , office, or supply the electriacal grid.
8 0
3 years ago
Read 2 more answers
Which of the following devices collects data directly from the environment for input into a computer system?A) Audio input B) Se
harkovskaia [24]

Answer:

Option (B) i.e., Sensor is the correct answer.

Explanation:

The following option is true because the sensor is both types of device that is input as well as output that gather information or data from the environment directly.

Option A i.e., Audio input is incorrect because the audio input that device which records the voice, music or audio in the form of data.

Option C i.e., Trackball is incorrect because trackball record the movement of the ball in which direction we move that ball, in that direction the cursor is moving.

Option D i.e., Touch Screen is incorrect because it is the device that works by the touch of the human being such as touchpad, mobile phones, etc.

3 0
3 years ago
SELECT vendor_name, COUNT(*) AS number_of_invoices, MAX(invoice_total - payment_total - credit_total) AS balance_due FROM vendor
grigory [225]

Answer:

Option a is the correct answer for the above question.

Explanation:

  • The above question asked about the order of the result which is derived from the above query. The above query holds an order by clause in desc order which is used to produce the result in descending order.
  • The descending order result is produced on the behalf of balance_due attributes and the option a also states the same. Hence option a is correct while the other is not because:-
  • Other is not states that the result is produced on the behalf of descending order.
4 0
4 years ago
Read 2 more answers
Other questions:
  • Using the _______ list, you can select the number of photos that will appear on each slide.
    14·1 answer
  • Which is a benefit of getting information from a government website?
    15·2 answers
  • Although your project has been accepted by the customer, the contract with the system vendor specifies that it will support the
    13·1 answer
  • Write a number guessing game. The game should have a default 1-100 picking system. Have the user guess the number the computer p
    12·1 answer
  • What is the purpose of a report?
    6·2 answers
  • Do not use the scanner class or any other user input request. You application should be self-contained and run without user inpu
    5·1 answer
  • Factoring is the revers of​
    14·1 answer
  • Write a program that inputs two characters first and second, and then prints all non-alphabetic characters starting from second
    8·1 answer
  • what is the reason for assigning the management of file sharing, security, and quotas to administrators . why would it be pruden
    12·1 answer
  • What are the advantages of hybrid computer
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!