Monday, 5 October 2015

Data Types

Data Types



Integer:
An integer is a whole number.

Real:
A real is a decimal number.

String:
A string is a word, sentence, paragraph or even just a mix of characters that a program will be able to process.

Boolean:
A boolean is a variable that is either true or false.

Thursday, 17 September 2015

Algorithms

Flowcharts

This shape below is a START/STOP symbol in flowchart. This shape tells you where the flowchart begins and ends. It shows the entry point of your flowchart and the exit point. To designate the beginning and end of your flowchart, write START or STOP inside the shape.
This is a DECISION shape. The answer to the question determines which arrow you follow out of the decision shape. For example, in the shape to the right, if it were to ask a question, you would follow an arrow to your chosen answer. (YES/NO.)




The shape to the right is a PROCESS shape, in which you would put an action or a calculation you would like to be carried out.












This flowchart above is an algorithm to calculate the average of two numbers inputted and to output the answer.
This flowchart above is an algirithim to calculate the circumference or the area of a circle. It asks you to input the radias, so it's able to calculate using either one of the formulas.