Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

University of Maryland Baltimore County Turtle Graphics Project

University of Maryland Baltimore County Turtle Graphics Project

For this program you will be using Turtle Graphics to display a graphical representation of your modern art painting “throws”. Here’s a visual of what this could look like:

modernart ec turtle 10000 sp22

Turtle Graphics rendering of 10,000 throws

modernart ec turtle 50000 sp22

Turtle Graphics rendering of 50,000 throws

modernart ec turtle 500000 sp22

Turtle Graphics rendering of 500,000 throws

Input assumptions:

  • Number of throws: a value of data type ‘integer’ within the range -2147483648 to 2147483647
  • Turtle graphics mode: any string of length 0 to length ~infinity

Here are some hints on how to get started:

  • Begin by asking the user if they want to draw the result of the program. This input should be validated and should be case insensitive (i.e. “YES”, “yes” and any other case variation of the word “yes” should both turn on Turtle Graphics mode.
  • First, set up a canvas that will be big enough to represent your throws. For example, the size of the painting board is 800px by 500px – perhaps you could set up a canvas that mirrored those proportions
  • Next, put Turtle Graphics in “memory” mode – this allows you to draw to the turtle graphics canvas without seeing your drawing unfold in “real time”. To do this simply call this function at the top of your program:
    turtle.tracer(0)
  • At the end of your program (when you are ready to draw the canvas) you can call this function to cause Turtle to draw all values from memory to the graphical window:
    turtle.update()
  • When you compute a new throw you should set a distinct pen color for each category
  • To draw a point simply move the turtle to that point and draw a short line (for example, you could move the turtle 5 pixels above and to the right of the point and them move 5 pixels to the left and below the point to simulate a line)
  • Remember that the Turtle Graphics canvas is oriented using a standard Cartesian coordinate plane. The modern art canvas, however, is not oriented in this way (the origin is at the top left side of the screen). You will have to adjust your display coordinate system accordingly.
  • IMPORTANT: For performance & testing purposes you should attempt to write this program so that you are only rendering a few thousand points at any one time (a good debugging number would be 3000 throws)
  • Your program should give the user the option of whether they want to display their results in Turtle graphics. Validate this input. For example:
    Number of throws: 5000Would you like to draw your results with turtle graphics? (yes/no): pikachuInvalid, try again!Would you like to draw your results with turtle graphics? (yes/no): appleInvalid, try again!Would you like to draw your results with turtle graphics? (yes/no): YeSTotal time elapsed: 0.40 secondsRed:                493 (9.86%)Blue:               224 (4.48%)Grey:                28 (0.56%)Black:              428 (8.56%)Yellow:              62 (1.24%)Green:              530 (10.60%)Misses:           3,235 (64.70%)

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: School Assignment only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by School Assignment are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. School Assignment is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At School Assignment, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.