Question: code in cpp using object oriented programming language. visual studio compiler Project 1: Triangle Graph Drawing an object-oriented program that draws a number of isosceles

code in cpp using object oriented programming language. visual studio compiler
Project 1: Triangle Graph Drawing an object-oriented program that draws a number of isosceles triangle: a triangle with two equal sides. Console Triangle Graph Drawing Width: 7 Repeat: 1 Continue? (y): y Width: Repeat: 11 3 Continue? (y): n Bye! Specifications Design a Triangle class that provides data members and corresponding getter and setter functions to store the width and the number of repeating times of a rectangle. This class should also provide member functions that draws out string representation shape of the rectangle with "*", and repeat the repeating number of times of the triangle. The width should always be odd number. Store the Rectangle class in a header file and a corresponding implementation file. When the program starts, it should prompt the user for width. Then, it should create a Rectangle object from the width and use the member functions of that object to draw representation of the triangle. Your answer: 1. Source code: including all the source code files. Indicating each file name, and the content of the source code for that file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
