Write a method call to printAcres Pass lotLength as the firs
Write a method call to printAcres. Pass lotLength as the first argument and 80 for the second argument. import java.util.Scanner; public class TestingUNow {public static void main (String args()) {Scanner keyboard - new Scanner(System.in); System.out.print(\"Enter the lot length: \"); int lotLength - keyboard.nextInt();//call to printAcres here} public static void printAcres (int length, int depth) {System.out.println(\"Acres is \" + (length * depth/43560));}} Answer:
Solution
TestingUNow.java
import java.util.Scanner;
public class TestingUNow {
public static void main(String[] args) {
Scanner keywboard = new Scanner(System.in);
System.out.print(\"Enter the lot length: \");
int lotLength = keywboard.nextInt();
printAcres(lotLength, 80);
}
public static void printAcres(int length, int depth){
System.out.println(\"Acres is \"+ (length * depth/43560));
}
}
Output:
Enter the lot length: 1000000
Acres is 1836
