Engineering
Engineering, 05.12.2021 06:40, tragicteekaay

Create a class RightTriangle which implements the API exactly as described in the following Javadoc Don't forget - you will need to use the Pythagorean theorem (Links to an external site.) to find the hypotenuse (and therefore the perimeter) of a right triangle. You can find the area of a right triangle by multiplying the base and height together, then dividing this product by 2.

Use the runner_RightTriangle file to test the methods in your class; do not add a main method to your RightTriangle class.

Hint 1 - Javadoc only shows public methods, variables and constructors. You will need to add some private member variables to your RightTriangle class to store the necessary information. Think carefully about what information actually needs to be stored and how this will need to be updated when methods change the state of a RightTriangle object.

Hint 2 - As in the previous lesson's exercise it's helpful to add your method/constructor headers and any dummy returns needed before implementing each one properly. This will allow you to test your code using the runner class as you go along.

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, DestyHilBan1183
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
image
Engineering, 04.07.2019 19:10, moneyyfletcher
The air in an automobile tire with a volume of 0.015 m3 is at 32°c and 140 kpa gage. determine the amount of air that must be added to raise the pressure to the recommended value of 206 kpa gage. assume the atmospheric pressure to be 128 kpa and the temperature and the volume to remain constant.[r-0.287 kj/kgk]
Answers: 3
image
Engineering, 04.07.2019 19:20, dndndndnxmnc
The process in which the system pressure remain constant is called a)-isobaric b)-isochoric c)-isolated d)-isothermal
Answers: 3
image
Engineering, 06.07.2019 03:20, leapfroggiez
An air-conditioning system consists of a heating section and an evaporative cooler. air enters the heating section at 10°c and 70 percent relative humidity at a rate of 30m^3/min, and it leaves the evaporative cooler at 20°c and 60 percent relatively humidity. if the air conditioning system operates at a total pressure of 98 kpa, determine (a) the temperature and relative humidity of the air when it leaves the heating section, (b) the rate of heat transfer in the heating section, and (c) the rate of water added to air in the evaporative cooler
Answers: 2
Do you know the correct answer?
Create a class RightTriangle which implements the API exactly as described in the following Javadoc...

Questions in other subjects:

Konu
Mathematics, 22.10.2020 21:01
Konu
Biology, 22.10.2020 21:01
Konu
Mathematics, 22.10.2020 21:01