i need help to do this assignment by using C# , i uploaded the pictures.
Engr 123
Assigned: March 27, 2017
Assignment 07
Due: April 10, 2017
Mondrian Art
Reminder: This is a programming project, and work on this assignment should be done
individually. Assistance from other students is limited to questions about specific issues as noted
in the syllabus.
Piet Mondrian was a Dutch painter who lived from 1872 to 1944. He is best remembered for his
paintings which consisted of simple rectangles in primary colors. A google search on images of
Mondrian will show many images similar to the sample in Figure 1.
Figure 1
Piet Mondrian composition in red, yellow, and blue.
For this assignment you will write a GUI Forms project which will create Mondrian-like “art”
where the user can enter the number of rectangles to be generated as well as the colors which are
to be used. The number of rectangles can vary from 1 to 100 and the colors can be chosen from
red, orange, yellow, green, blue, indigo, violet, white, and black. Each rectangle should have a
black border.
In addition, you should provide a file menu which allows the use to open, save, save as, and exit.
• The open option allows the user to open a previously saved file and redraw it.
• The save option allows the user to save an existing file.
• The save as option allows the user to save a file and rename it.
• The exit option terminates the application.
To save a file you will need to save the rectangle coordinates and the color for each rectangle in
a text file. Rectangles are specified by giving the x, y coordinates of diagonal corners along with
a color. For example
O, O, 20, 100, blu
Might specify a blue rectangle with one corner at 0,0 and another at 20, 100.
Your GUI interface will need a panel on which to draw the art, a button to cause the draw to
happen, a numeric up/down control to specify the number of rectangles, and 9 check boxes to
allow the user to select the colors to be used. Once the user has specified the colors, the number
of rectangles, and click on the draw button your program should draw random rectangles in
random colors selected from the set specified by the user. All of the rectangles should fit within
the screen and they may overlap.