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

  Give a polynomial-time algorithm for the following problem

Give a polynomial-time algorithm for the following problem. We are given a binary tree T = (V, E) with an even number of nodes, and a nonnegative weight on each edge.

  Which classs constructor is called last

A class called DerivedClass is a subclass of a class called BaseClass. DerivedClass also has a member field that is an object of class ComposedClass.

  How many system calls can the computer execute per second

Suppose that a computer can execute 2 billion instructions/sec and that a system call takes 1000 instructions

  Write a program with three radio buttons

Write a program with three radio buttons and circle. ( You can choose whether you draw the circle or if the circle is a label image.) When the user clicks on the first radio button

  Random string of 100,000 characters is written

A random string of 100,000 characters is written down, where each character is independently, equally likely to be any of the upper-case letters A through Z in English.

  Open directory project

Browse the subject categories in the Open Directory Project (do NOT use the search engine) to find the name of the student newspaper for Mt. Hood Community College in Oregon. a. How did you find it? Outline your steps and list each heading and sub..

  Using the scenario of the adventure travel club found

Complete the following tasks: Using the scenario of the Adventure Travel Club found in the lecture, briefly define each area of your web site plan, Target Audience, Flowchart, and Storyboard. Following best practices, you may be creative in your own ..

  Display each of these amounts and the total

Display each of these amounts and the total. Use flowchart symbols for your answer.

  Analysis on the viability of upgrading to windows

Develop a SWOT analysis on the viability of upgrading to Windows 8 for the organization as a whole. Provide a detailed upgrade plan for the organization, including the sales staff. At a minimum:

  Oracle business intelligence system is used for

Oracle Business Intelligence system is used for, and what kinds of tasks you perform using the system?

  Dscribe implications of e-publishing they effect way we read

Dscribe implications of e-publishing as they effect way we read and understand content. Describe e-books, print on demand, copyright and XrML and use of multimedia.

  Exploit wildcard feature in order to cheat system

How could Dave, dishonest teller, exploit the wildcard feature  to cheat the system? Dave would want to concentrate on vouchers that are nearly one year old since such vouchers are likely to have been lost.

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