1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
agasfer [191]
3 years ago
9

Can someone please type a code that makes a house in python and turtle graphics i need help

Computers and Technology
1 answer:
GuDViN [60]3 years ago
7 0

Answer:

import turtle  

turtle.speed(2)

#shape

turtle.forward(100)

turtle.left(90)

turtle.forward(100)

turtle.left(45)

turtle.forward(100)

turtle.left(90)

turtle.forward(100)

turtle.left(45)

turtle.forward(100)

turtle.left(90)

turtle.forward(100)

#door

turtle.left(90)

turtle.forward(50)

turtle.left(90)

turtle.forward(25)

turtle.left(90)

turtle.forward(50)

#windows

turtle.penup()

turtle.right(90)

turtle.forward(20)

turtle.right(90)

turtle.forward(20)

turtle.pendown()

turtle.forward(25)

turtle.left(90)

turtle.forward(40)

turtle.left(90)

turtle.forward(25)

turtle.left(90)

turtle.forward(40)

Explanation:

:)

You might be interested in
What are the texture of metamorphic​
Flauer [41]

Answer:

This seems to be a Geography question, However, I am answering. The Metamorphic rock textures lies in two larger groups. They are the Non-Foliated and the Foliated.

Explanation:

The answer above explains everything. However, we need to understand the Foliation, and exactly what it is. It is actually developed in the rock through parallel alignment of various minerals(platy), like muscovile, chlorite and biotite, as well as minerals which are needle type such as homblende or feldspars, which are the various tabular minerals.

5 0
3 years ago
Assuming that a user enters 5 as the age, what is the output of the following code snippet? int age = 0; Scanner in = new Scanne
trapecia [35]
Kid
YoungAgedOld

It will print out this way because the code uses if statements, rather than else if statements. As written, every single if statement will be triggered because each expression will evaluate to true. If there were else statements involved, then only the first one that is triggered will print out, and the rest will be ignored.

The reason for the weird formatting/spacing is because only the first print statement is println which adds a new line after printing. The other statements are just print, which does not add a new line or a space.
7 0
3 years ago
5) Match the following.
statuscvo [17]
1 .hub
2.server
3.Network Interface
4.Workstation


I’m sorry if I’m wrong :(

I hope it helps
8 0
3 years ago
Write a program that a C++ program that can be used to determine grades at the end of the semester. For each student, who is ide
horrorfan [7]

<u>C++ program that can be used to determine grades at the end of the semester</u>

#include <bits/stdc++.h>

using namespace std;

void func() //Defining function

{

   int m;

  double stu[60][10];

  cout<<"Enter number of students\n"; //taking input

  cin>>m;

  for(int i=0;i<m;i++)

  {

      cout<<"Enter Student Number: ";

      cin>>stu[i][0];

      cout<<"Enter the four grades of student "<<stu[i][0]<<endl;

      cin>>stu[i][1];

      cin>>stu[i][2];

      cin>>stu[i][3];

      cin>>stu[i][4];

  }

 

  //Calculating first grade average and second grade average

  for(int i=0;i<m;i++)

  {

      stu[i][5] = (stu[i][1] + stu[i][2] + stu[i][3] + stu[i][4])/4;

      stu[i][6] = (0.3*stu[i][1] + 0.2*stu[i][2] + 0.2*stu[i][3] + 0.3*stu[i][4]);

  }

  double sumFAvg=0,sumSAvg=0;

  double classFAvg,classSAvg;

  //Calculating average of first and second grades

  for(int i=0;i<m;i++)

  {

      sumFAvg = sumFAvg + stu[i][5];

      sumSAvg = sumSAvg + stu[i][6];          

  }

  classFAvg = sumFAvg/m;

  classSAvg = sumSAvg/m;

   cout<<"-----------Class Info ------------------\n";

  cout<<"StudentID   Grade1 Grade2 Grad3 Grad4 FirstGrade SecondGrade\n";

  for(int i=0;i<m;i++)

  {

      cout<<stu[i][0]<<"\t\t"<<stu[i][1]<<"\t"<<stu[i][2]<<"\t"<<stu[i][3]<<"\t"<<stu[i][4]

      <<"\t"<<stu[i][5]<<"\t"<<stu[i][6]<<endl;

  }

   cout<<"Class First Grade Average: "<<classFAvg<<endl;   //printing output

  cout<<"Class Second Grade Average: "<<classSAvg<<endl;  

 

}

int main() //driver function

{  double sumFAvg=0,sumSAvg=0;

  double classFAvg,classSAvg;

   int m;

  double stu[60][10];

   func(); //calling function

  return 0;

}

<u>Output</u>

Enter number of students 3

Enter Student Number:1 Enter the four grades of student 1-  50 60 70 80

Enter Student Number:2 Enter the four grades of student 2 -30 4 50 6

Enter Student Number:3 Enter the four grades of student 3 - 10 2 30 40

-----------Class Info ------------------

StudentID   Grade1 Grade2 Grad3 Grad4 FirstGrade SecondGrade

1  50 60 70 80 65 65

2  30 4 50 6 22.5 21.6

3  10 2 30 40 20.5 21.4

Class First Grade Average: 36

Class Second Grade Average: 36

4 0
3 years ago
Read 2 more answers
A small bank with several regional branches is searching for a solution to consolidate its business services into a single site
Licemer1 [7]

Answer:

private cloud

Explanation:

Based on the scenario being described it can be said that the best method to meet the banks needs would be implementing a private cloud. This is an pool of shared computing resources in a public cloud, but one which is completely isolated from other organizations using the same provider or cloud resources. Which is exactly what the small bank needs in this situation.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Determine the value of base x of (211)x=(152)8
    8·2 answers
  • 4. When determining the tone of their tweets, marketers should consider
    8·1 answer
  • 6. Which of the following options is used to view a computer's memory properties?
    8·1 answer
  • 1. Rice paste changes from white to blue black colour when a few drops of iodine solution are added to it. It shows the presence
    8·1 answer
  • A merge is _____.
    5·2 answers
  • Brian is selecting an authentication protocol for a PPP connection. He would like to select an option that encrypts both usernam
    7·1 answer
  • When do you use FTP?
    10·2 answers
  • You are not sure if a certain word has an"e"at the end<br>​
    11·1 answer
  • Which data type is used to teach a Machine Learning (ML) algorithm during structured learning?
    12·1 answer
  • assume there are K sorted lists, each of n/k elements. We want to merge them into a single sorted list of n elements. Give an op
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!