Question
Scenario: When I lived in Milton, Vermont, I owned a house out by the Sand Bar off Rt. 2 that was situated on a triangular
Scenario: When I lived in Milton, Vermont, I owned a house out by the Sand Bar off Rt. 2 that was situated on a triangular lot. According to the deed, this lot measured 300 feet of road frontage (side A or "base"), by 500 feet that bordered the Sand Bar Wildlife Preserve (side C or "hypotenuse") by 400 feet to the north (side B or "height"). Upon doing the math, it was determined that this lot was a right triangle and sat on approximately 1.4 acres.
Write a program that will: Ask the user to input Side A (base) and Side B (height) of a triangular lot Determine the acreage Inform the user (output) The length of Side C (hypotenuse) The total acreage Use Input and Output methods Required Input Side A and Side B
Hint: An acre of land = 43,560 sqft. This value cannot be changed A right triangle's area is defined as the Base*Height The way to determine the hypotenuse of a right triangle (on the right) is defined by the Pythagorean Theorem, or A squared + B squared = C squared In Java, we can manipulate this formula and use the Math class API to determine the hypotenuse of a right triangle given the base and the height. With this in mind, consider the use of sqrt (square root) and pow (power) methods that are available within the Math class
Asq+ Bsq = C2sq
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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