subject

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:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
Answers: 1
question
Computers and Technology, 24.06.2019 22:10
Function name: poly parameters: int returns: int description: a polynomial of degree n with coefficients a0,a1,a2,a3, . . ,an is the function p(x) = a0+a1x+a2x2+a3 ∗ x3+ . . +an ∗ xn this function can be evaluated at different values of x. for example, if: p(x) = 1+2x+ x2, then p(2) = 1+2 ∗ 2+22 = 9. if p(x) = 1+x2+x4, then p(2) = 21 and p(3) = 91. write a function poly() that takes as input a list of coefficients a0, a1, a2, a3, . . , an of a polynomial p(x) and a value x. the function will return poly(x), which is the value of the polynomial when evaluated at x.
Answers: 3
You know the right answer?
Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then t...
Questions
question
Arts, 03.12.2020 18:00
question
Mathematics, 03.12.2020 18:00
question
Mathematics, 03.12.2020 18:00
question
Mathematics, 03.12.2020 18:00
question
Mathematics, 03.12.2020 18:00
question
Mathematics, 03.12.2020 18:00
Questions on the website: 13722363