Quickbasic Program Examples

10/21/2017by adminin Category
Quickbasic Program Examples Average ratng: 9,4/10 9524reviews

Gem6K Information. DataTables. txt 3K Shows use of DATP files. From the MP CD. PLCP3. K PLCP Examples. From the MP CD. Multitask. txt 2K Motion with Multitasking. Issuu is a digital publishing platform that makes it simple to publish magazines, catalogs, newspapers, books, and more online. Easily share your publications and get. PowerBasic-screen-shot.png' alt='Quickbasic Program Examples' title='Quickbasic Program Examples' />QBASIC Programming for Kids. QBASIC Programming for Kidsby Ted Felix. Copyright C 2. 00. Ted Felix. Permission is granted to copy, distribute andor modify this document under the terms of the GNU Free Documentation License, Version 1. Free Software Foundation with no Invariant Sections, no Front Cover Texts, and no Back Cover Texts. To see a copy of this license, go to http www. Translations. Polski Polish http deger. Ted. FelixQBfor. Kids. Damian. Introduction. Youve probably used computers to play games, and to write reports for school. Its a lot more fun to create your own games to play on the computer. This book will help you get started by using QBASIC. Microsoft BASIC version information from GW BASIC to QuickBASIC to the PDS. QBASIC is a programming language. With a programming language you can tell the computer what you want it to do. Its a lot like giving someone directions to your house. The computer follows each step and does exactly what. By programming the computer you can solve math problems, create art or music, and even make new games. Its all up to you. The best way to start with this book is to type in some of the small programs youll find in each of the chapters. You might need to work through Chapter 1 first. An adult can help you get up to speed quickly. Then change the programs to do what you want them to do. Before long, youll be writing your own programs. Parents and teachers, see the introduction Ive written for you in Appendix B. Chapter 1 Getting Started. Getting to DOSTo run QBASIC we need to get to DOS. If you are using Windows 7, you might need to use dosbox. See Appendix C for details. If you are using Windows XP, it is called the Command Prompt and you can get to it by clicking on Start, then All Programs, then Accessories, then Command Prompt. In Windows 2. 00. Command Prompt and you can find it by clicking on Start, then Programs, then Accessories, then Command Prompt. In Windows NT 4, I believe it was called the Command Prompt. Try the steps described for Windows 2. In Windows ME, click on Start, then Programs, then Accessories, then MS DOS Prompt. In Windows 9. 8, try the Windows 9. Windows ME steps below. It is the same as one of those, but I dont have a Windows 9. In Windows 9. 5, click on Start, then Programs, then MS DOS Prompt. If you are using Windows 3. Main program group and look for an icon called MS DOS Prompt. Double click on it to get the C WINDOWS prompt in a black window with white text. You will get the black window with the C WINDOWS prompt. Now youre ready for the next step. QBASIC may not be on your computer. Dont be alarmed, Appendix A shows you how to get it there. At the C WINDOWS prompt, try typing. Enter key. If you get a blue screen with something about a Survival Guide, you made it If instead you got something about a Bad command or file name,you need to check out Appendix A to get QBASIC installed on your machine. Dont worry, well wait right here for you. Survival Guide We wont be using the survival guide right now, so press the lt Esc escape key to get the big blank blue screen. Now were ready to program. Getting Out. If you need to leave QBASIC, you can click on File on QBASICs menu and then Exit to get back to DOS. At the C WINDOWS prompt, type. Enter key to get rid of the DOS window. Chapter 2 PRINTFollow Along. Im assuming you will be following along with. QBASIC in front of you. This wont be much fun. So power up the computer and get. QBASICs blue screen up in front of you. Go. ahead and press the. Esc key to clear this dialog box when. QBASICs Screen. Before we start, lets take a look at QBASICs screen. At the top is QBASICs menu. The menu has the following. File, Edit, View, Search, Run, Debug, Options, and Help. Clicking on any of these with the mouse will show more. Just under the menu is the word Untitled. This means. we havent given the current program a name. This will change. The big blue area with the. These are the most important areas to know for right now. We will learn more about the rest of QBASICs screen as we. QBASIC Editor. If youve used your computer to do school work or write a report. Backspace, lt Delete, lt Insert. In case you havent used these. Backspace Removes the character to the left of the cursor. Scarface Movie. Delete Removes the character at the cursor. Left Arrow Moves the cursor left. Right Arrow Moves the cursor right. Up Arrow Moves the cursor up. Down Arrow Moves the cursor down. Home Moves the cursor to the start of a line. End Moves the cursor to the end of a line. Your First Program. With the blinking cursor at the. PRINT Welcome to QBASIC. Your wish is my command. Make sure it looks exactly like that. The quotation. marks are very important. If you make any. mistakes, use the lt Backspace key to correct them. Running Your Program. Thats great, but what does it do You have to run. Look for the word Run on QBASICs. Click on it. Now. Start. Restart, and Continue. Click on Start to run your. You may have to look around on the screen. C WINDOWS qbasic. Welcome to QBASIC. Your wish is my command. PRINTPRINT prints things to the screen. Dont forget to. put what you want to say in double quotation marks. Press any key to continue At the bottom of the screen you will see a message. Press any key to continue. Press lt Enter to. QBASIC. This is QBASICs way of. As a cool shortcut, use PRINT. Try it. Press. Enter to start typing on a new line. Now type this. Programming is fun. Enter again. Isnt that nice The becomes the word PRINT. That. should save us a lot of typing in the long run. You can try running the program again remember Click on Run, then Start on the menu. You should see. something like this. C WINDOWS qbasic. Welcome to QBASIC. Your wish is my command. Welcome to QBASIC. Your wish is my command. Programming is fun. Learned. QBASIC screen. Chapter 3 CLSIt was probably a bit hard to find your messages. Wouldnt. it be nice to be able to clear all that stuff off. CLS, which stands for CLear Screen. You will need to put CLS. Inserting a new line at the top. To make CLS the first line of your program, follow. Press the lt Home key to get to the beginning of. Press the lt Up Arrow key once or twice to get the. Press the lt Enter key to get a new line. Press the lt Up Arrow key once to get the cursor. Now your program should look like this. PRINT Welcome to QBASIC. Your wish is my command. PRINT Programming is fun. Run it. Remember, click on Run and then Start in. QBASICs menu. You can also run the program by. Shift key and holding it down while. F5 thats what ShiftF5 means on the. Another handy shortcut. Thats much better. Only your message is on the. Learned. Chapter 4 DO. LOOPLets start a new program. To get rid of the. File on QBASICs menu and. File menu with New, Open., Save. Click on New. QBASIC will now tell. Save it now. Lets. You can always type it in again. Click on lt No with the mouse. Well learn how to save. Chapter 8. Now you should have a clean blue screen. Type in. PRINT Ted was here. Make sure you get the semi colon at the end of. PRINT line, and the space between the word. You dont need. to use my name, put yours in there instead Jack. Now run it. DO. LOOPDO and LOOP will do whatever is between the. DO and the LOOP over and over again. Give me a Break Ok, thats great.