Question: Can you please help me with this assignment? Using C++ programming. Can you create .h and .cpp for each shape please? Thank you In this
Can you please help me with this assignment? Using C++ programming. Can you create .h and .cpp for each shape please? Thank you



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