|
Home | About | VB Tutorials | Programming Basics | VCE & Teacher�s Resources |
||
|
|
||
|
|
|
Programming Basics
Introduction
Essentially, programming comes down to the following components:
LogicA program is a logical entity. It has a flow and uses strict rules to govern its behaviour.
Problem-solvingA program is created to solve a problem, it requires input and makes decisions based on rules a programmer supplies it with and then generates an output. Simple programs (like a calculator) process data quite clearly, but large, complex programs fulfil many tasks in a variety of ways.
PlanningA program needs to be designed from either a top-down or a bottom-up approach. A top-down approach is where the programmer examines the overall flow of things and then works on each component as it is needed. A bottom-up approach is where all the detail is created and then the mechanism to join it together is made.
Managing dataData is essential to a program. Data can come from a file, from a user input, from a peripheral, or be created by the program. A program will use the data and make decisions and create an output. Data comes in many forms, but various programming languages treat data types differently, so they should be identified before programming is started to figure out which ones are the most appropriate for each programming language.
|
|
|
||