Related questions
Write program in Python.
Use one of the following shapes.
Example code:
import turtle;
turtle.shape("turtle");
turtle.speed(10);
turtle.bgcolor("powder blue");
turtle.pensize(5);
turtle.pencolor("green");
turtle.fillcolor("red");
turtle.begin_fill();
#-------------------------------------------------------------------------------------------------------------------------------------------------------
turtle.left(-45);
turtle.forward(250);
turtle.left(90);
turtle.forward(250);
turtle.left(90);
turtle.forward(250);
turtle.left(90);
turtle.forward(250);
#-------------------------------------------------------------------------------------------------------------------------------------------------------
turtle.forward(250);
turtle.right(90);
turtle.forward(250);
turtle.right(90);
turtle.forward(250);
turtle.right(90);
turtle.forward(250);
turtle.hideturtle();
turtle.end_fill();
#-------------------------------------------------------------------------------------------------------------------------------------------------------
turtle.penup();
turtle.goto(-235, -20);
turtle.pencolor("lavender blush");
turtle.write("DIAMOND", font = ("Times New Romans", "25", "bold"))
#-------------------------------------------------------------------------------------------------------------------------------------------------------
turtle.penup();
turtle.goto(110, -20);
turtle.pencolor("white");
turtle.write("DIAMOND", font = ("Times New Romans", "25", "bold"))
turtle.done();
#-------------------------------------------------------------------------------------------------------------------------------------------------------
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
- def area(side1, side2): return side1 * side2s1 = 12s2 = 6Identify the statements that correctly call the area function. Select ALL that apply. Question options: area(s1,s2) answer = area(s1,s2) print(f'The area is {area(s1,s2)}') result = area(side1,side2)arrow_forward# Need help creating this pseudocode into a functioning PYTHON code. Sample Pseudocode:// main moduleModule main()// Declare input variablesDeclare String inputName, String inputType, Integer inputAge// class variable to hold a petDeclare Pet Animal// create a Pet objectSet Animal = new Pet()// Get values for a petDisplay "Enter a pet name:"Input inputNameAnimal.setName(inputName)Display "Enter a pet type:"Input inputTypeAnimal.setType(inputType)Display "Enter a pet age:"Input inputAgeAnimal.setAge(inputAge)// Show values for this petDisplay "The pet name is ",Animal.getName()Display "The pet type is ",Animal.getType()Display "The pet age is ",Animal.getAge()End ModuleClass Pet// FieldsPrivate String namePrivate String typePrivate Integer age// ConstructorPublic Module Pet(String n, String t, Integer a)Set name = nSet type = tSet age = aEnd Module// MutatorsPublic Module setName(String n)Set name = nEnd ModulePublic Module setType(String t)Set type = tEnd ModulePublic Module...arrow_forwardNEED HELP PYTHON ONLY PLZZarrow_forward
- Edit the code below to print the volume of the roomarrow_forwardcomputer graphics A Simple Utility for Drawing Function Curves i need write code c#(.net) and send the design please with output and make it simplehint: https://www.codeproject.com/Articles/5267642/A-Simple-Utility-for-Drawing-Function-Curvesarrow_forwarduse pycharm/pythonarrow_forward
- You can Use C++ programming, Windows Programming, Java, or Ptyhon to solve it The following table contains quarterly sales figures for five (5) departments: Quarter 1 Quarter 2 Quarter 3 Quarter 4 Total Department 1 750 660 910 800 Department 2 800 700 950 900 Department 3 700 600 750 600 Department 4 850 800 1000 950 Department 5 900 800 960 980 Total Design and write a Windows program/module named SalesAnalysis that will: Declare a two-dimensional integer array named sales – (Note: you have 6 rows and 5 columns) - that will hold the 4 quarterly sales for 5 departments Populate the first four columns for the 5 departments using the data in the preceding table. Contain a loop to compute and populate the total column. Store each department’s total in the array as it is being computed. Contain a loop to compute and populate the total row. Store each quarter’s total in the array as it is...arrow_forwardThe files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. // Application looks up home price // for different floor plans // allows upper or lowercase data entry import java.util.*; public class DebugEight3 { publicstaticvoidmain(String[] args) { Scanner input =newScanner(System.in); String entry; char[] floorPlans = {'A','B','C','a','b','c'} int[] pricesInThousands = {145,190,235}; char plan; int x, fp =99; String prompt ="Please select a floor plan\n"+ "Our floorPlanss are:\n"+"A - Augusta, a ranch\n"+ "B - Brittany, a split level\n"+ "C - Colonial, a two-story\n"+ "Enter floorPlans letter"; System.out.println(prompt); entry = input.next(); plan = entry.charAt(1); for(x =0; x < floorPlans.length; ++x) if(plan == floorPlans[x]) x = fp; if(fp =99) System.out.println("Invalid floor plan code entered")); else { if(fp...arrow_forwardUse C language to write your program. Show your code in a picture with commentsarrow_forward
- Python Programming: Write a program using unittest.TestCase methods to confirm that the addition and subtraction of date and timedelta objects produce correct results. Important notes: Use the unittest module to create a TestCase to test that the addition and subtraction of date and timedelta objects produce correct results... For example I could create a TestCase with a function that tests the addition of date and timedelta objects; a function that tests the subtraction of date and timedelta and then call unittest's main method at the end. When you run this program, it should tell us whether the text was successful or not. See attached image for what the output should look like.arrow_forwardIn certain programming languages, comments appear between delimiters such as (# and #). • A comment must begin with (# and end with #). • A comment may not contain #) inside the comment. • A comment's delimiters must be separate: (##) is a comment, (#) is not. For simplicity, assume that the alphabet is E = {a, b, (, ), #}). Give a regular expression that accepts comments.arrow_forwardIn python >>> all_three(['Harry', 'Ron'], ['Harry', 'Hermione'], ['Hermione', 'Ron']) [] >>> all_three(['Aragorn', 'Gandalf', 'Gimli', 'Pippin'], ['Aragorn', 'Frodo', 'Gandalf'], ['Gandalf', 'Pippin']) ['Gandalf'] >>> all_three([], ['Zelda'], ['Ganondorf', 'Link', 'Zelda']) [] >>> all_three(['Kirk', 'Mary', 'Sue'], ['Mary', 'Spock', 'Sue'], ['Mary', 'Sue']) ['Mary', 'Sue']arrow_forward
- Text book imageComputer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONText book imageComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceText book imageNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Text book imageConcepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningText book imagePrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationText book imageSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY