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
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
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
Step: 1
Answer o solve this problem we need to find the dimensions of the space between the two buildings an...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started