Programming

The basics of computer programming, including arrays, iteration loops, validation checks, data types, and more.

Data Validation

Validation is an automated check, performed to guarantee that the data input is rational and acceptable.  It does not check the correctness of the data itself. As an example, let’s assume a coffee shop is hiring baristas aged 18 to 25.  The system can be programmed to only accept numbers between 18 and 25 for …

Read moreData Validation

Programming Data Types

A data type is a means of classifying the type of data that a variable or object can hold in computer programming.  Data types are an important factor in all computer programming languages, including C#, C++, JavaScript, and Visual Basic.  When programmers develop computer software—whether that’s desktop or web-based—data types must be assigned and applied correctly in order to guarantee proper outcomes and an …

Read moreProgramming Data Types

Selection In Programming

A selection is used to make choices depending on information.  An algorithm can be made smarter by using IF, THEN, and ELSE functions to reiterate instructions, or to move the process in question to different parts of the program. Selection is also called a decision.  It is one of the three basic logic assemblies in …

Read moreSelection In Programming

Variables and Constants

Variables and constants are two commonly used mathematical concepts.  A variable is a value that has the ability to change.  A constant is a value which remains unchanged. These concepts have branched out into other fields, like physics and computer science.  Variables In the mathematical framework, a variable is a quantity which has a dynamic …

Read moreVariables and Constants

Testing and Test Data

Testing Testing is the name given to the process of discovering if something works, and if so, if it works well.  Testing is used in computer hardware and software development to determine whether objectives are being met.  It is done at significant checkpoints in the development process. Purposes of Testing To be able to assess …

Read moreTesting and Test Data

Data Verification

There are a few kinds of standard errors that are often experienced when doing data entry. Two of the most common of these are transcription errors and transposition errors. Transcription Errors Every time data is manually entered into the system, there’s a possibility that an error will be committed. Human errors do occur, and there …

Read moreData Verification

Data Structures and Algorithms

Candidates should be able to: define the terms variable and constant as used in an imperative language use variables and constants describe the data types integer, real, Boolean, character and string select and justify appropriate data types for a given program perform common operations on numeric and Boolean data use one-dimensional arrays. What are constants …

Read moreData Structures and Algorithms

Testing Your Code

Candidates should be able to: describe syntax errors and logic errors which may occur while developing a program understand and identify syntax and logic errors select and justify test data for a program, stating the expected outcome of each test. What are syntax errors? Syntax errors are errors that occur when instructions do not follow …

Read moreTesting Your Code

Arrays

An array is a data framework that is composed of a group of elements.  These elements have similar data types, for example all are integers, or all are strings.  Arrays are utilised in computer programs to arrange data where interrelated set of values can be categorised and located. An example of a practical use of …

Read moreArrays

Iterations

Iteration is the term given to the repetition of a block of instructions (code) within a computer program for a number of instances or until a status is encountered.  When the first group of instructions is carried out again, it is called an iteration.  When a cycle of instructions is carried out in a repeated …

Read moreIterations

Microsoft Small Basic Colours

Text Window colours: Example: TextWindow.ForegroundColor = “Magenta” or TextWindow.BackgroundColor = 13 0 Black 1 DarkBlue 2 DarkGreen 3 DarkCyan 4 DarkRed 5 DarkMagenta 6 DarkYellow 7 Gray 8 DarkGray 9 Blue 10 Green 11 Cyan 12 Red 13 Magenta 14 Yellow 15 White Graphics Window colours: Example: GraphicsWindow.BackgroundColor = “Magenta” Note: numbers cannot be used …

Read moreMicrosoft Small Basic Colours

Picaxe Logicator LED’s

The sensor kit includes 2 IR transmission LED’s. These can easily be replaced with your own coloured or white LED’s. When using the OUTPUT, HIGH and LOW commands, Logicator for PIC only recognises the B connectors as outputs . If you want to use an output such as an LED on the C connectors (such …

Read morePicaxe Logicator LED’s

Testing

Candidates should be able to: describe syntax errors and logic errors which may occur while developing a program understand and identify syntax and logic errors select and justify test data for a program, stating the expected outcome of each test. What are syntax errors? Syntax errors are errors that occur when instructions do not follow …

Read moreTesting

Handling Data in Algorithms

Candidates should be able to: define the terms variable and constant as used in an imperative language use variables and constants describe the data types integer, real, Boolean, character and string select and justify appropriate data types for a given program perform common operations on numeric and Boolean data use one-dimensional arrays. What are constants …

Read moreHandling Data in Algorithms