An engineer was asked to estimate some measurements for a client. The client wants to know an
Question:
An engineer was asked to estimate some measurements for a client. The client wants to know an off-the-cuff estimate on how many stone slabs would be needed to fill the land area between two buildings. The dimensions of the stone slabs are 1m by 1m, however they can be cut down if required. The engineer was able to use an app on his smartphone to visually estimate some angles between the buildings, shown below.
Angle alpha, between the base of building B to the top of building A, is estimated as 53.13
Angle beta, from the base of building A to the top (on the opposite side) of building A, is estimated as 41.00
The height of both buildings is reported as 20.00m
Implement code that is able to solve the problem and find out how many stone slabs are required (rounded to the next largest whole number). You only have to consider the area of the space that needs to be filled.
Note that to get the distance between Building A & B and the length of building A, you need to apply the Law of Tangents. You will need Math.PI, Math.tan() and Math.ceil() from the Java Math library. Note also that the angles given are in degrees and you may need to convert them to radians first. In Java
Essentials Of Statistics For The Behavioral Sciences
ISBN: 9781133956570
8th Edition
Authors: Frederick J Gravetter, Larry B. Wallnau