Exercise 1.
import turtle as t L = 100 for i in range(1,20): t.forward(L) t.left(90) t.forward(L) t.left(90) t.forward(L) t.left(90) t.forward(L) t.left(5) for L = 100
import turtle as t L = 200 for i in range(1,20): t.forward(L) t.left(90) t.forward(L) t.left(90) t.forward(L) t.left(90) t.forward(L) t.left(5)
for L = 200
import turtle as t L = 300 for i in range(1,20): t.forward(L) t.left(90) t.forward(L) t.left(90) t.forward(L) t.left(90) t.forward(L) t.left(5)
for L = 300
Exercise 2.
import turtle as t L = 100 # L = 200 # L = 300 angle_1 = 90 # variable for first angle angle_2 = 5 # variable for second angle for i in range(1,20): t.forward(L) t.left(angle_1) t.forward(L) t.left(angle_1) t.forward(L) t.left(angle_1) t.forward(L) t.left(angle_2) Note for drawing the desired value of L please uncomment them. Here for L = 100
Exercise 3.
import turtle as t length = 200 # length width = 100 # width angle = 90 # angle is right angle between the sides or walls of bedroom # as we know a bedroom with a given length and width is rectangular in shape # following line of code will print a rectangular bedroom # draws the first side and turns right by 90 t.forward(length) t.right(angle) # draws the second side and turns right by 90 t.forward(width) t.right(angle) # draws the third side and turns right by 90 t.forward(length) t.right(angle) # draws the fourth side and turns right by 90 t.forward(width) t.right(angle)
Exercise 4.
For help and modification please comment.
Thank You
Please solve for me those exercises using Python (with turtle) this is example 4 Exercises: Exercise...
Need help with a few questions! Using the JAVA language please. 1) exercises - branching Write a method whatToWear(int temp) that takes a temperature and then outputs a string for what to wear in different weather conditions. There must be at least 3 categories. For example, whatToWear(90) might return “shorts” and whatToWear(30) might return “down coat” 2) Enum exercise • Define an enum Seasons, and rewrite the whatToWear method to use enums and switch statement 8) 2D array exercise 1....
can someone solve these quick please and thank you! sql chapter 4 Query #1: List the company name, contact name, contact title and the phone number for customers who HAVE NOT put in an order. Use an outer join. Query #2: Create a listing displaying the employee first name, last name and the full name (First name space Last Name) of the person they report to (Supervisor). This is a self-join. If an employee does not report to anyone then...
Please can you solve all that question for me? Suggestions for studying: Reviev all required readings, lectures, notes, assignments and practice actvities. Then, go through this scenario and the following questions. Go back to your readings to fill in gaps in knowledge and understanding Scenario: Mark is a 50-year-old sedentary adult who weighs 95 kg. He goes to the doctor for a check-up. Mark's physician recommends that he increase his physical activity and suggests that Mark have a graded exercise...
23.4 Project 4: Using Pandas for data analysis and practice with error handling Python Please! 23.4 PROJECT 4: Using Pandas for data analysis and practice with error handling Overview In this project, you will use the Pandas module to analyze some data about some 20th century car models, country of origin, miles per gallon, model year, etc. Provided Input Files An input file with nearly 200 rows of data about automobiles. The input file has the following format (the same...
using C++ language!! please help me out with this homework In this exercise, you will have to create from scratch and utilize a class called Student1430. Student 1430 has 4 private member attributes: lastName (string) firstName (string) exams (an integer array of fixed size of 4) average (double) Student1430 also has the following member functions: 1. A default constructor, which sets firstName and lastName to empty strings, and all exams and average to 0. 2. A constructor with 3 parameters:...
Lab 8: Exercises EXERCISE 8.1 GM is a 20 y/o male who was admitted to the ICU for severe closed head injury and multiple fractures resulting from a fighting engagement at the bar on his birthday. According to his friends, his Ht is 178 cm. His measured Wt at admission is 76 kg. His lab values were normal except for low Hgb and Hct due to bleeding (which was well controlled). He was unconscious, thus was tube fed for one...
PLEASE HELPING ON EXERCISE 4! THANK YOU! RELATED PROBLEMS: Exercise 4: Annual Precipitation Repeat the procedures of Exercises 1, 2, and 3 using the anmual precipitation totals from the Downtown Los Angeles webpage. These data can be found under the section headed "Period of Record." From there, they are located under the "Precipitation" category and Monthlhy Precipitation Listings." Use the "Monthly Totals" rather than the "Daily Extremes. (Remember, though monthly data are provided you will be working with the annual...
Lab Exercise #15 Assignment Overview This lab exercise provides practice with Pandas data analysis library. Data Files We provide three comma-separated-value file, scores.csv , college_scorecard.csv, and mpg.csv. The first file is list of a few students and their exam grades. The second file includes data from 1996 through 2016 for all undergraduate degree-granting institutions of higher education. The data about the institution will help the students to make decision about the institution for their higher education such as student completion,...