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 answer: tests the result of rightTriangleArea with arguments
field answer : tests the result of squareNumber with arguments
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
