Make a program that enables the user to draw


Problem

Make a program that enables the user to draw either a triangle or a rectangle by pressing the 't' or 'r' key respectively. The user can specify the vertices of the polygon by clicking on the screen three times for a triangle or two times for a rectangle. The program will display the vertices of the polygon as dots on the screen.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Make a program that enables the user to draw
Reference No:- TGS03332288

Expected delivery within 24 Hours