Question: In Python: You will create a program that draws a recognizable picture using the functions in your library and the functions in UserfulturtleFunctions.py. (You can

In Python: You will create a program that draws a recognizable picture using the functions in your library and the functions in UserfulturtleFunctions.py. (You can get this file from "Source Codes for Examples")

Add the following functions to your library:

def draw_petal(size, curvature = 60): # Draw petal of the given size and curvature turtle.circle(size, curvature) turtle.left(180 - curvature) turtle.circle(size, curvature) turtle.left(180 - curvature) def draw_flower(size, curvature, n_petals): # Draw a flower with n_petals for i in range(n_petals): draw_petal(size, curvature) turtle.left(360/n_petals) def draw_star(size, n_points): # Draw a star for i in range(n_points): turtle.forward(size) turtle.left(360/n_points) turtle.forward(size) turtle.right(720/n_points) 

Requirements:

You shall add the functions above to your library.

You shall use at least one of the functions above in your design.

You shall use at least one other function from your library.

You shall use at least two functions from the UserfulturtleFunctions.py library.

You will use at least two different line colors and two different fill colors.

Save your program as csc101_hw5_design.py. Save a screenshot showing your program working properly. Call this screenshots csc101_hw5_design.PNG

Problem 2: Check UC's Password Policy (12 points)

UC's password policy. Name the file uc_password_verifier.py. Write a program that reads a single password, and determines whether or not is valid based on the rules in UC's password site: https://password.utica.edu/index.php

Your program shall display:

"The password is valid" only if it satisfies all the requirements listed in the site.

If the password is not valid, the program shall print a message describing the first rule not met by the password.

Save your program as csc101_hw5_password.py. Include a transcript in which you show your program works correctly.

TIP: Implement each password rule as a function that returns a Boolean value. For example, for the rule "Passwords must contain at least one number (1, 2, 3, 4, 5, 6, 7, 8, 9, 0)" you could implement a function with the following header:

def containsAtLeastOneDigit(password): 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!