The object''s shadow length and shadow

Assignment Help Basic Computer Science
Reference no: EM13827442

Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angleElevation) = treeHeight / shadowLength. Given the shadow length and angle of elevation, compute the tree height.

 

import java.util.Scanner;
import java.lang.Math;

public class TreeHeight {
public static void main(String [] args) {
double treeHeight = 0.0;
double shadowLength = 0.0;
double angleElevation = 0.0;

angleElevation = 0.11693706; // 0.11693706 radians = 6.7 degrees
shadowLength = 17.5;

/* Your solution goes here */

System.out.print("Tree height: ");
System.out.println(treeHeight);

return;
}
}

Reference no: EM13827442

Questions Cloud

Designing databases with visio professional : Use "Appendix A: Designing Databases with Visio Professional: A Tutorial," to help you complete Section 1: Visio Database Design. (Note: This tutorial focuses on the use of Microsoft Visio. Open source applications are not covered in Appendix A; howe..
The visio diagram reflects the database design : 1.  Write a one to two (1-2) page paper in which you: a.  Discuss the degree to which you believe the Visio diagram reflects the database design.   b.  Describe any assumptions that you had to make about the business rules to in order to create the V..
Social marketing campaign for a cause : Social Marketing Campaign for a Cause
Use of active monitoring software and ease of use : Discuss and define the use of active monitoring software and ease of use
The object''s shadow length and shadow : Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angleElevation) = treeHeight / shadowLength. Given the shadow length and angle of elevation, compute the tree height.
Positive npv project for the shareholders of ddi : Does the market believe that the acquisition would be a positive NPV project for the shareholders of DDI? Explain your reasoning.
Discusses network design element : Write a 1-page summary that discusses network design elements such as Cloud and Virtualization that can be security risks and how they can be applied to your future IT career.
Why do sociologists mean by terms self core-self me and i : The question in Sociology and the question explains about sociologists' definition of the terms self, core-self, me and I. The distinctions have been explained in the answer.
Dragging the venerable retailer into digital age : Dragging the venerable retailer into digital age

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How do we read a numeric value using joptionpane method

How do we read a numeric value using JOptionPane method

  Use a recursive function, instead of nested for loops

Write a C program that will prompt the user to enter an integer and then it will print on the screen all the binary numbers of length n, where n is the integer variable inserted by the user.

  Write a problem that prompts the user for a radius

Write a problem that prompts the user for a radius and then prints: •The area and the circumference of a circle with that radius •The volume and surface area of a sphere with that radius

  What events need to be added to the event table

What events need to be added to the event table? Complete the event table entries for these additional events. What activities or use cases for existing events might be changed because of a charge account and payment plan? Explain.

  Show both the source image/video and the resultant image

Write a short HTML report describing the details of each of the operations you wrote, perhaps with screen shots if needed. You should also include the 2 completed images after processing. Clicking on a link in the report should start your program.

  A lot of examples of failed information system devlopment

2.Why would a company spend so much time and resources on a systems and then cancel it or not use it?

  Using the expand, guess, and verify method find closed

Using the expand, guess, and verify method find closed form solutions for the following recurrence relations.

  What is the minimum number of bits required to represent

What is the minimum number of bits required to represent

  Video memory is needed to store picture as true color image

how much memory is required to store the picture? How much video memory is required to store the picture as a ''true color'' image, at 3 bytes per pixel?

  What size of packet will result in the last bit

Given a transmission speed of T bits/second, a packet size of B bytes, a propagation speed of P m/s and a cable length of L meters, what size of packet will result in the last bit being transmitted just as the first bit of the packet arrives at th..

  Consider an online reservation system for a restaurants

consider an online reservation system for a restaurants patrons. analyze the type of vulnerabilities and threats that

  Business problems arise in a multitude

Business problems arise in a multitude of ways inside an organization; sometimes, they stem from the need or desire to do something completely new, sometimes they stem from the need or desire to improve an existing operation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd