Question
Plese help me with this assignment in python 04 Prove Assignment: Writing Functions Purpose Prove that you can write functions with parameters and call those
Plese help me with this assignment in python
04 Prove Assignment: Writing Functions
Purpose
Prove that you can write functions with parameters and call those functions with arguments.
Problem Statement
Modern computers are capable of performing all sorts of calculations to produce numbers. However, they are also capable of performing calculations to produce art, illustrations, animations, movies, and music.
Assignment
During the previous lesson's milestone, you wrote code to draw at least the sky, clouds, and ground of an outdoor scene. During this lesson, you will write code that draws the remaining objects in your scene. Your program can draw any outdoor scene that you like as long as it meets these requirements:
-
The scene must be outdoor and include part of the sky.
-
The sky must have clouds.
-
The scene must include repetitive objects, such as blades of grass, trees, leaves on a tree, birds, flowers, insects, fish, pickets in a fence, dashed lines on a road, buildings, bales of hay, snowmen, snowflakes, or icicles.
Your program must be divided into functions such as draw_sky, draw_cloud, draw_ground, draw_bird, draw_flower, draw_insect, draw_fish, or draw_snowman. Each repetitive object in your scene should be drawn by a function that your program calls repeatedly, once for each repeated object. For example, your program could include a function named draw_leaf that your program repeatedly calls to draw each leaf on a tree at a different location.
As you write your program, write it so that it draws objects in the order of farthest away to nearest. For example, you program should draw the sky first, then clouds, then the ground, then trees, then insects in the trees. Be creative.
Testing Procedure
Verify that your program works correctly by following each step in this testing procedure:
-
Run your program and verify that it correctly opens a window and draws within that window a complete outdoor scene that contains the sky, clouds, the ground, and other elements.
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