Computers and Technology, 06.04.2021 01:00 unicornturd
Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then the y-values for the endpoints are the same.
The parameters to your function should be the y location and the length. All of your lines should start at x position 0.
Your function must be named horizontal_line
For example if you call:
horizontal_line (100, 200);
you should get a horizontal line of length 200 starting at position (0, 100) and going to position (200, 100).
To draw a line, you will use the line function that is similar to how we draw circles and rectangles. Use the examples in Docs tab to help out.
If you call the following line:
horizontal_line (100, 200)
horizontal_line (200, 100)
horizontal_line (300, 20)
your canvas should look like:
Answers: 2
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
Computers and Technology, 24.06.2019 13:20
In the insert table dialog box, you select the checkbox to create the first row as the header of the table.
Answers: 3
Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then t...
Mathematics, 04.03.2021 22:40
Mathematics, 04.03.2021 22:40
Social Studies, 04.03.2021 22:40
English, 04.03.2021 22:40
Mathematics, 04.03.2021 22:40
Biology, 04.03.2021 22:40
Mathematics, 04.03.2021 22:40
Mathematics, 04.03.2021 22:40
Advanced Placement (AP), 04.03.2021 22:40