Write a program in gw basic to draw a star

This command moves as specified by the following argument: Mx, y Move absolute or relative.

Write a program in gw basic to draw a star

How do you make star in GW Basic language

Try the numbers from 8 through 15 to see what colors you get. Basically, if you add 8 to any of the above colors, you get brighter versions of the same color.

Take blue which is 1 and add 8 and you get 9 which is bright blue. Blinking Adding 16 to a color number gives you a blinking version. This doesn't work in a DOS window, though. Chapter 16 - FOR NEXT loop has its own counter built in. This one stops on its own after counting to NEXT can also do "step counting".

Try changing it to count by 10's from 10 to This program makes a Hz beep for about 1 second: Here's a bomb dropping: If you are familiar with sheet music, this will make sense. There are many more special commands in PLAY.

PLAY begins with a default tempo of "T" which means quarter notes per minute. In the above song, we switch to T which is the triplet tempo for T By multiplying our tempo by 1. When the triplets are done, we switch back to the regular tempo. You can see in the above example that we switch back and forth between the main tempo T and the triplet tempo T several times as needed.

As with everything, there's more than one way to do triplets. You just multiply the note value by 1. Each of these techniques has its advantages and disadvantages. The tempo-changing technique uses more space, but the notes retain their values.

The 12th note technique is more compact, but not as easy to understand. Which one you use is up to you. Just make sure the next person to read your code understands what you are doing.

Comments are a good idea.

QBASIC Programming for Kids

Just like coordinates in math class, these numbers give the row and the column. The second number is the column, or how far over the print will start. How about a clock? Press Break to stop. It changes the entire screen to wide text mode.

There are plenty of other characters too. This program will show you many, but not all of them: This will let you draw pictures. It gives you a lot of space and the color numbers are familiar. You can always try them and see what happens. With DRAW, you can move around the screen and draw lines along the way.

In the above example we used the following DRAW commands: It is like PLAY.Step By Step GW BASIC Learning Tutorials in English and Computer Programing Examples for Beginners and Advanced Levels.

Hexagon Construction with GW Basic Program is Very Simple | GW BASIC.

write a program in gw basic to draw a star

Microsoft also sold a BASIC compiler, BASCOM, compatible with GW-BASIC, for programs needing more speed. The language was suitable for simple games, business programs and the like.

Choose a video to embed

How do you draw pascals triangle in gwbasic? I suggest using an array with as many elements as the longest rowyou need. To keep it simple, keep two copies of the array, andcalculate each element of the "new" array as the sum of thecorresponding element, plus the previous element, of the "old"array.

Draw a star in GW-BASIC. Tags: basic. screen. graphics. Naruto March 10, at Specs: Windows XP, 1 GB. hoe can we write a program in BASIC to .

Mar 24,  · Learn how to Draw Three Symmetrical Triangles with One Commen Corner in gw basic graphics. GW Basic Program using draw statemnet and screen 2.

Simple GW BASIC Programming Tutorial. Start Learning. Practical: Write a program that can calculate the perimeter of the rectangular.

GWBASIC : GW-Basic Programs