public class Problem9 {
public static void main(String[] args) {
// TODO Auto-generated method stub
double w = 4.5;
double h = 7.9;
double area = w * h;
double perimeter = 2 * (w + h);
System.out.println("The area of a rectangle with the width of " + w + " and height of " + h + " is " + area + ".");
System.out.println("The perimeter of a rectangle with the width of " + w + " and height of " + h + " is " + perimeter + ".");
System.out.println(area);
System.out.println(4.5 * 7.9);
}
}