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

  What are the similarities between risc and cisc

What are the similarities between RISC and CISC

  Explain main points to write in the communications plan

Recognize the main points you would write in the communications plan at this point in project. What suggestions would you give your project team to aid it manage user expectations?

  Calculate the net profit for all the products

Given the list of all the product prices and wholesale prices as well as a list of all the items sold for each product calculate the net profit for all the products.

  Determine the monthly charges for checking accounts

he billing department at the bank has asked for your team's help. They want to develop a program that will determine the monthly charges for checking accounts.

  Telecommunications-networking discussion

The TCP, UDP, and IP were designed to provide best-effort service without quality of service (QoS) guarantees. Today's multimedia applications are implemented using these protocols.

  What is data integrity and in what way it is implemented

What is data integrity and in what way it is implemented in DBMS MS Access

  Assistant author of a publishing company

You are working as the assistant author of a publishing company and are given an opportunity to become the author of a study guide for primary schools.

  What influence the concept of pervasive computing

What you believe the eventually influence will be of concept of "pervasive computing" or"location based services" will be on society.

  Sort the arraylist using the sort method associated

Sort the ArrayList using the sort method associated with the ArrayList and then display the sorted data in a second control. It should use visual basic langage.

  Suppose that you are in the procedure of purchasing a

assume that you are in the process of purchasing a management application for a service provider. the management

  Creating report by city and by product to record sales

Create a report by city and another by product, including details of the sales and sub-totals and totals for quantity.

  Relates part of the grammar to a requirement

question1: Given the following grammars with start symbol , specify the type (0, 1, 2 or 3) of each  one and give a reason that relates part of the grammar to a requirement for the grammar type. Note:  while technically any grammar is Type 0, the..

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