Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started