Question: Can some one please help with this assignment as soon as possible? Using C++ programming. Can you also create .h and .cpp for each shape?
Can some one please help with this assignment as soon as possible? Using C++ programming. Can you also create .h and .cpp for each shape?
Thank you


In this program assignment, you are requested to implement following shapes using structures and classes: Shape type Attributes Methods Relationship Integer type: comments Both (x, y) coordinate attributes are publicly accessible Point None x-coordinate, y-coordinate Shape Point: reference point Double: area, circumference Char: line type (+_+,-....) Getters and setters of attributes compute Area computeCircumference moveBy (anlnt) draw (length) draw (wd, ht) setLine Type(aChar) Base class Abstract class Rectangle Integers: width, height char: line Type Implements the methods from Shape Add setHeight(anlnt). Inherits from Shape setBase(anlnt) Square None Inherits methods from Rectangle Add setSide(anlnt) Inherits from Rectangle Triangle Integers: base, height Implements the methods from Shape Add setHeight(anlnt). Inherits from Shape setBase(anlnt) The shape of the triangle will be determined by the sizes of base and height Circle Integer: radius Implements the methods from Shape Inherits from Shape Add setRadius(anlnt) if radius> 2: draw(length) draws a circle with "("radius spaces")" if radius 2: draw(length) draws a circle with "("radius spaces")" if radius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
