I need the whole Program, if not please just provide the functions makeLarger(do
ID: 3649121 • Letter: I
Question
I need the whole Program, if not please just provide the functions makeLarger(double d) and makeLarger(double w, double l, double h) of the Problem below.
The program should be able to create three types of boxes, with 0, 1, or 3 parameters. If the box is a cube you should only have to provide the length of one side. You should also be able to specify the length, width, and height of the box. You should also be able to create a box with zero dimensions, using default values. You should be able to perform the following calculations on your box: area and volume. Furthermore, you should be able to make your box larger and smaller in two different ways.
Explanation / Answer
makeLarger(double d) { this.length = this.length*d; this.width = this.width*d; this.height = this.height*d; } makeLarger(double l, double w, double h) { this.length = this.length + l; this.width = this.width + w; this.height = this.height + h; }
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.