Question: In visual studio c++, create a program that draws an eqiuilateral triangle with a side length of 150 pixels. Locate the triangle center at x
In visual studio c++, create a program that draws an eqiuilateral triangle with a side length of 150 pixels. Locate the triangle center at x = 100 and y = 400. Change the output text appropriately for this new drawing and place it at a convenient location. Next, modify the program so that it diplays an empty window when it begins execution. When the user displays an "R" on the keyboard, the program should display the rectangle and its associated text. When the user strike any other key, the window should refresh and display an empty window. With this, change the program so that striking "T" will display a triangle with it's corresponding text. The window should refresh each time one of the letters is struck. If any other key is struck, it should display an empty window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
