Computer Science, asked by naomiemg12, 2 months ago

Write a QBASIC program to draw a box filled with yellow color. Consider the diagonally opposite coordinates as (10,25) and (110,100).

Answers

Answered by sarwa
0

Answer:

The LINE order can accomplish progressively that draw line sections.

It can be utilized to draw a square shape either sketched out or filled.

Essential uses the letter B to change the manner in which that LINE works.

After the shading number you can put another comma and afterward the letter B to draw a sketched out square shape or the letters BF for a filled one.

The LINE command can do more that draw line segments. It can be used to draw a rectangle either outlined or filled. BASIC uses the letter B to change the way that LINE works. After the color number you can place another comma and then the letter B to draw an outlined rectangle or the letters BF for a filled one. Think:

B → Box → Rectangle

F → Fill

If you do not want to use a COLOR number (and go with the default color), then you still need placeholder commas, placed as if the color number were present. The example program demonstrates this for the first two rectangles.

Similar questions