Question: Refer to the code below to answer the questions that follow: 20 public static void calcRectangleArea(double len, double wid) 21 { 22 double area =
Refer to the code below to answer the questions that follow:
20 public static void calcRectangleArea(double len, double wid) 21 { 22 double area = 0; 23 24 area = len * wid; 25 System.out.printf(\"%nThe area of the rectangle is: %.1f%n\", area ); 26 }
The variables len and wid are in scope from line ___ to line ___ .
The variable area is in scope from line ___ to line ___
At what line number are len and wid initialized? ___
At what line number is area initialized? ___
answer choices are null, 20, 21, 22, 23, 24, and 26
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
