Computers and Technology
Computers and Technology, 30.07.2021 03:40, stmy1969

A Winter Wonderland In this lab, we'll use OOP for graphics programming and add some interactivity to the application.
Your Classes
The Drawable Class
In this week's lecture we discussed how we can used object oriented programming concepts to make graphics applications more organized and easier to create. One of the things that we'll leverage is inheritance, polymorphism, and abstract base classes.
We have included drawable. py that contains an abstract base class called (shocker) Drawable
Interactivity
Finally, we'll allow the spacebar to toggle the animation. That is, the first time it is hit, all the snowflakes stop falling. The next time, they resume falling. Etc…
Extra Credit
For extra credit, when a Snowflake is spawned also assign it a maximum y value that is somewhere (randomly) between the start of the ground plane and the bottom of it. Then when a Snowflake hits its maximum y value, it no longer animates. This should make it look like the snow is sticking to the ground!
Scoring
The score for the assignment is determined as follows:
25 pts - Implemented and Demonstrated the Rectangle derived class
25 pts - Implemented and Demonstrated the Snowflake derived class<
35 pts - Create the basic animation correctly
15 pts - Spacebar correctly toggles animation

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:30, aesthetickait
How do you take a green screen out of the video while editing?
Answers: 2
image
Computers and Technology, 22.06.2019 22:30, reinasuarez964
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
image
Computers and Technology, 23.06.2019 17:00, chrisgaz14
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, BIKRAMlawati5544
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
Do you know the correct answer?
A Winter Wonderland In this lab, we'll use OOP for graphics programming and add some interactivity...

Questions in other subjects:

Konu
Mathematics, 26.10.2020 14:30
Konu
Mathematics, 26.10.2020 14:30
Konu
Medicine, 26.10.2020 14:30