Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Question Can plan participants borrow from a VEBA?

Answered: 1 week ago

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago