Question: metiod rightTriangleArea ( ) takes a doub le called base and a doub le called height as its parameters returns the area of a right

metiod rightTriangleArea()
takes a doub le called base and a doub le called height as its parameters
returns the area of a right triangle as doub le type calculated using the base and height given
method squareNumber ()
takes an int called myNumber
returns the square of myNumber as int type
field answer1: tests the result of rightTriangleArea () with arguments 3,5
field answer 2 : tests the result of squareNumber () with arguments 5
 metiod rightTriangleArea() takes a doub le called base and a doub

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!