When your program starts it should output the introductory message, prompt the user for the window size, prompt the user for red, green and blue start and stop values, prompt the user for the gradient direction and prompt the user for the number of steps they have walked. An example of this interaction is shown above. You can assume that the user will input an integer value greater than 0. Once the user has typed in their data, your program should open a drawing_panel with your gradient background displayed on it. This background should match the values the user input. It should then animate drawing flowers on the drawing_panel based on the number of steps the user input. Your program should draw one flower with 10 leaves for every 5000 steps a user has walked. If a user has walked a number of steps that has a remainder when divided by 5000 then the program should draw one more flower. This flower should have two leaves for every 1000 additional steps the user has walked. Therefore, if the user walked 7809 steps, the program should draw one flower with 10 leaves and one flower with 4 leaves. Flowers should all start at the bottom of the screen. They should be placed at random x locations. Flowers should never appear partially off the screen; make sure you choose random locations where the whole flower can fit on the screen. The stalk should grow 20 pixel taller every time two more leaves are added. Both the stalk and leaves are lines that have a stroke weight of 5 pixels. The leaves are positioned at intervals of 10 on the stem. Their x starts at the stem and ends 10 pixels away from it. Their y also ends 10 pixels from where it started. The flower petals are a single 50 x 50 oval centered above the stem. The eye of the flower is a 10 x 10 circle centered inside this one. You may choose any colors you like for the flowers.
Function to draw a gradient:
This function should draw the gradient background. It should not ask for any user input. Instead, it should take all data it needs for parameters. It should be able to draw a gradient between any two colors and, depending on the user input, either left to right or top to bottom.
Function to compute the change in color:
This function should take necessary information about one component of a color (reds, greens or blues) for two colors and compute the amount to add to the start color each time to reach the stop color smoothly. This computation is described in detail in the Background section of this document. Page 3
Function to draw a flower:
Your function should draw a single flower. Notice that we specify each flower in terms of its location and how many leaves it has. Different flowers have different positions, and numbers of leaves. Therefore, your function should accept several parameters so that it is possible to call it many times to draw the many different flowers potentially on the screen. You should also create other functions to capture structure and redundancy. It is up to you to figure out which other functions are necessary.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme