0

Question: Estimate the time it will take to cut the grass of five clients. Given the length and width (in meters) of a rectangular yard and the length and width of a rectangular house situated in the yard, compute the time required (in minutes) to cut the grass at a rate of 2.3 square meters per second.

```
import javax.swing.*;
public class Gard
{
public static void main(String[]args)
{
// Variable declarations
String gd;
Double st, st2, st3, st4, time;
for(int i=1; i<=5; i++)
{
// Get user input
gd = JOptionPane.showInputDialog("Enter the length of yard");
st = Double.parseDouble(gd);
st2 = Double.parseDouble(JOptionPane.showInputDialog("Enter the width of yard"));
st3 = Double.parseDouble(JOptionPane.showInputDialog("Enter the length of house"));
st4 = Double.parseDouble(JOptionPane.showInputDialog("Enter the width of house"));
//Calculate
time=(st * st2 - st3 * st4)/2.3;
// Display the result
System.out.println("The time required (in minutes) to cut the grass: "+time);
} // end of loop
} // end of main
} // end of class
```

I'm not sure if i have everything done...