answersLogoWhite

0

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.

User Avatar

AnswerBot

1d ago

What else can I help you with?

Related Questions

How draw solar system in qbasic?

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.


What is the default screen mode of Qbasic?

The default screen mode for Qbasic is 0.


How do you draw pictures in q-basic?

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.


How do you draw a boat floating in river at qbasic?

You need to draw this \______/ floating on water to show a floating boat.


Draw a rectangle that is not a parallelogram?

draw a parallelogram which is not a rectangle.verify that its area is equal to the rectangle on the same base and altitude


Draw a parallelogram that is not a rectangle?

a rhombus


Draw a parallelogram that is not a square?

Yes, you can do that


Is it possible to draw a square that is not a parallelogram?

No.


Can you draw a parallelogram that is not a rhombus?

square, rectangle


Why is it impossible to draw a square that is not a parallelogram?

nope


How do you draw a quadrilateral that is not a parallelogram?

by making a square


Is it not possible for you to draw a quadrilateral that is not a trapezoid and a parallelogram?

No