bash script
import java.util.Scanner; public class pa1 { public static void main(String[] args) { int minTime = 0; int totalMinTime = 0; int hrTime = 0; int secTime = 0; int totalTimeI = 0; Scanner scnr = new Scanner(System.in); System.out.print("Enter the length and width of the lot, in feet: "); int length = scnr.nextInt(); int width = scnr.nextInt(); System.out.print("Enter the length and width of the house, in feet:"); int houseLength = scnr.nextInt(); int houseWidth = scnr.nextInt(); Double x = (double) (length * width - houseLength * houseWidth); System.out.println("The lawn area is " + x + " square feet."); System.out.print("Enter the mowing rate, in square feet per second:"); Double mwRate = scnr.nextDouble(); scnr.close(); Double totalTimeD = x / mwRate; totalTimeI = (int) Math.round(totalTimeD); secTime = totalTimeI % 60; totalMinTime = totalTimeI / 60; minTime = totalMinTime % 60; hrTime = totalMinTime / 60; System.out.println("The mowing time is " + hrTime + " hour " + minTime + " minutes " + secTime + " seconds."); } }