CS 1713 Introduction to Programming II Spring 2012 Daily Answers


Class 6:

  1. getCircumference
  2.    public Circle(double radius) {
          this.radius = radius;
       }
    
  3. System.out.println(triangle1.getArea());
  4.    7
       2
       4
    
  5. Assuming that the width is the first parameter of the constructor:
       7
       2
       7