BASIC Programming

Introduction Edit

Normative BASIC Edit

Derivative BASIC Edit

BASIC was developed in 1963 at Dartmouth College in Hanover, New Hampshire as a teaching language. The acronym BASIC stands for Beginner's All-Purpose Symbolic Instruction Code. In 1964, John G. Kemeny and Thomas E. Kurtz designed the original BASIC language at Dartmouth College in New Hampshire.

Programming Preliminaries Edit

Anybody can write a program. A background in mathematics or science is not required. Patience, practice, and an interest in the subject matter should suffice, along with the required software and hardware.

Understanding programs can appear daunting at first, but their reliance on logical operations allow for easy learning of commands which you will commonly see in many programs. A program itself is merely a series of commands in the order in which they are to be executed. That is to say, that the first line is the beginning of the program!

All programs a user uses from day to day, including browsers (Internet Explorer, Firefox, etc.) and operating systems (Windows, Linux and Mac OS, etc) are separate sets of lines of code, which aim to fulfill tasks. The amount of code is dependent on how simple the task generally, and different types of code may be used for the advantages they give. BASIC is considered an excellent starting point for moving onto other languages, and can be useful for simple programs.

Programming Languages Edit

Programming languages allow people to give instructions to a computer with commands that both the computer and the programmer can understand. Different programming languages use different commands and different rules for entering those commands; similar to the way people speak different words to each other with the same meaning. One person may say "hello", while another says "hola", which appear different but express the same thought.

Computer programming languages can be similar to each other in the same way that human languages, such as French and Spanish, can be. Programming languages that are similar are usually referred to as related languages. Once a person learns a programming language, it is easier to then learn other programming languages, especially those related to the first one, as many similarities in structure are shared between languages, especially those with a common ancestor.

The language taught here, BASIC, is easier to learn than others as its commands are similar to English and it has a simple set of rules for entering them.

Program Edit

A program is defined as an instruction set that describes the logical steps the computer will follow to solve a particular problem. With programming the user is able to understand and communicate with the computer.

Basics of BASIC Edit

Section for chapters detailing data types, control structures, etc.

  1. Your First Program
  2. PRINT, CLS, and END
  3. Variables and Data Types
  4. User Input
  5. Documentation

Control Structures Edit

  3. FOR...NEXT
  4. DO...LOOP
  5. GOTO

Intermediate BASIC Edit

  1. Random Number Generation
  2. Subroutines and Functions

Advanced BASIC Edit

  1. External Libraries

Related Wikibooks Edit

  • Chipmunk Basica traditional (vintage) terminal/command-line programming environment with baked-in support for a simple, old-fashioned, and easy-to-learn dialect of BASIC and compiled binary interpreters for MacOS
  • Gambasa Java-inspired (object-oriented) dialect of BASIC with its own robust IDE, complete with GUI form editor
  • Introduction to BASICgives an extended history of BASIC and its variants
  • Visual Basic Classic
  • QBasic Note: The FreeBASIC used in this "Basic Programming" book is intended to be syntax compatible with Microsoft QuickBasic

External links Edit

  • FreeBASIC Wiki Manual
  • QB64 official websitea modern, extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility while compiling and freely distributing native interpreter binaries for Windows, Linux, and macOS