Question
1.Need a code that opens a medium gray 500x400 graphics window and draws a circle of diameter of 100 anywhere in the window. Fill the
1.Need a code that opens a medium gray 500x400 graphics window and draws a circle of diameter of 100 anywhere in the window. Fill the circle with white. ( exam points 10/100)
2. Write code to draw an equilateral triangle and inscribe a circel within the triangle. Fill the triangle with green and the inscribed circle with red. (points 15/100)
3. Need a piece of code that opens a 500x400 graphics window and
a. draws a 100x100 square centered in the window.
b. fills the square with medium gray.
c. toggles the fill of the square to bright blue when the mouse is pressed
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started