QBasic/Sample Programs

Calculator
This program can be used to make a simple, functioning calculator, very simply.

For reference goto Basic Math

Basic Game
Uses animation to make a simple game.

For reference, goto Advanced Graphics

Clock
A clock which is quite like a digital clock,with no hands.Use draw to make them if you want.

This is a little logical combination of all the chapters you have read so far.

Binary Coder
Yes, this is YES a binary decoder, but a binary Coder. This takes any decimal system number and converts it to binary. Run this program to see for yourself.

Just the trouble is: the binary code is reversed. You might have guessed it by looking at the last PRINT statement. I still haven't figured out how to reverse it, so I guess you have to do it yourself. And, the WHILE loop has a print statement with the semicolon at the end. That is used to ensure that the next number comes after it, not on the next line.

Projectile Game
Remember Gorillas? Well, take out the graphics and what you get is this:

Huh? Ok, now the maths is complicated, but the formula is basically the same. Here, the projectile has to land between 30 coordinates out of the hit object, or else you lose. See Wikipedia:Projectile motion for more information on the maths part. Tip: Add graphics. It will be a big, fat piece of code, but the final product will be AMAZING!

Check hearing
Ok, now, how high a frequency sound can you hear? Test your hearing with this program: Check this out!