Question: Using R z. test (dat, sigma = 0.5, mu = 2, alternative = greater, conf.level = 0.99) ## $data.name ## [1] dat ## ## $parameter

Using R
z. test (dat, sigma = 0.5, mu = 2, alternative = "greater", conf.level = 0.99) ## $data.name ## [1] "dat" ## ## $parameter ## sigma ## 0.5 Problem 3 Design S3 classes representing: A circle A rectangle A square Be sure to write functions that construct these objects for the user. Then write two generic functions, area () and perimeter(), thal find the area and perimeters of the respective objects. Write print () methods for your objects. Demonstrate that your code works. These objects should be defined in meaningful ways, allowing risers to create objects of different size and shape BONUS: Since squares are also rectangles, you could save time and write better code by having the square class inherit from the rectangle class. You should have separate print methods for squares and rectangles, but the area() and perimeter() methods could be shared. # Your code here z. test (dat, sigma = 0.5, mu = 2, alternative = "greater", conf.level = 0.99) ## $data.name ## [1] "dat" ## ## $parameter ## sigma ## 0.5 Problem 3 Design S3 classes representing: A circle A rectangle A square Be sure to write functions that construct these objects for the user. Then write two generic functions, area () and perimeter(), thal find the area and perimeters of the respective objects. Write print () methods for your objects. Demonstrate that your code works. These objects should be defined in meaningful ways, allowing risers to create objects of different size and shape BONUS: Since squares are also rectangles, you could save time and write better code by having the square class inherit from the rectangle class. You should have separate print methods for squares and rectangles, but the area() and perimeter() methods could be shared. # Your code here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
