10. What is the best way of drawing a rectangle?a. Using polyline commandb. Using line commandc. Using rectangle commandd. Using fillet command
Question
- What is the best way of drawing a rectangle?a. Using polyline commandb. Using line commandc. Using rectangle commandd. Using fillet command
Solution
The best way to draw a rectangle in most graphic design programs is by using the rectangle command. This is because the rectangle command allows you to create a perfect rectangle in one step, rather than having to draw four separate lines and ensuring they are perfectly straight and meet at right angles. So, the answer is c. Using rectangle command.
Similar Questions
Write a program to print the area of a rectangle by creating a class named 'Area' having two methods. First method named as 'setDim' takes length and breadth of rectangle as parameters and the second method named as 'getArea' returns the area of the rectangle. Length and breadth of rectangle are entered through keyboard.
b.void draw() { background(200, 240, 200); fill(150, 200, 150); rect(mapCoord(x), mapCoord(y), stretch(x, sideLength), stretch(y, sideLength)); fill(0); rect(x, y, sideLength, sideLength);}
How do you create a rect object from the Rectangle class?Question 3Answera.new Rectangle rect = Rectangle(System.in);b.Rectangle rect = new Rectangle(System.in):c.Rectangle rect = new Rectangle();d.System rect = new Rectangle(System.in);e.Rectangle rect = new Rectangle(System.in);
Write a VB Program that calculates the area of a rectangle give that the area = lengthmultiplied by width.
What is the method defined in the class Rectangle used to draw the rectangle?class Rectangle(object): def __init__(self,width=2,height =3,color='r'): self.height=height self.width=width self.color=color def drawRectangle(self): import matplotlib.pyplot as plt plt.gca().add_patch(plt.Rectangle((0, 0),self.width, self.height ,fc=self.color)) plt.axis('scaled') plt.show()1 pointclass Rectangleimport matplotlibdrawRectangle
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.