To draw a parallelogram in QBasic graphics, you can use the LINE
statement to connect the vertices. First, set up the graphics mode using SCREEN 12
(or another suitable mode). Then, specify the coordinates for the four corners of the parallelogram and use LINE
to connect them in order. For example:
SCREEN 12
LINE (100, 100)-(200, 100), 15 ' Top side
LINE (200, 100)-(150, 150), 15 ' Right side
LINE (150, 150)-(50, 150), 15 ' Bottom side
LINE (50, 150)-(100, 100), 15 ' Left side
This code creates a parallelogram with specified vertices.
No.
Yes, you can do that
No
a parallelogram is any shape that has 4 sides unless it says a certain type of parallelogram then you draw that shape.
No. Every rule that applies to a parallelogram applies to a rhombus, plus more.
In QBASIC, you can draw basic shapes using the LINE and CIRCLE commands. To draw a simple representation of the solar system, you would need to create circles representing the sun and planets, then use the LINE command to draw lines connecting the planets to the sun in their respective orbits. You can also add text labels for each planet to make it more informative. Remember, QBASIC is a basic programming language, so the graphics may be limited in detail.
The default screen mode for Qbasic is 0.
In QBasic, you can draw pictures using the built-in graphics commands. First, you need to initialize the graphics mode with the SCREEN command, such as SCREEN 12 for a 640x480 resolution with 256 colors. You can then use commands like LINE, CIRCLE, and PSET to draw shapes and points on the screen. Finally, use GET and PUT commands to manipulate images or sprites as needed.
You need to draw this \______/ floating on water to show a floating boat.
draw a parallelogram which is not a rectangle.verify that its area is equal to the rectangle on the same base and altitude
a rhombus
Yes, you can do that
No.
square, rectangle
nope
by making a square
No