/final-exam

Primary LanguagePython

final-exam

  • From the starting code, polygon_art.py, you are to write an OO program that generates different pieces of art works
  • Fork, then, clone this repo
  • Read the instructions given in the course's Google Classroom and start coding
  • Once you are done, push your final code to your Github repo and modify this README to report on the work you have done

-- README --

  • converted code to OOP style
  • polish the class for ease of use
  • get user choice
  • use a series of if and elif to chose which art to draw
  • art1 creates an object with the attribute num_sides = 3 then draws 20 triangles in random spots
  • art2 creates an object with the attribute num_sides = 4 then draws 20 squares in random spots
  • art3 creates an object with the attribute num_sides = 5 then draws 20 pentagons in random spots
  • art4 draws all the three shapes in random spots
  • art5 draws 20 triangles with two smaller triangles inside them in random spots
  • art6 draws 20 squares with two smaller squares inside them in random spots
  • art7 draws 20 pentagon with two smaller pentagon inside them in random spots
  • art8 draws all the shapes with their respective shapes embedded inside in random spots