Algorithm 
Algorithm is writing a sequence of 
instruction in word form . It is close to 
writing a program but not necessarily 
using a Programming language. 
Best example of algorithm is recipes.
Variables 
Are used to represent a value. The value may be 
a number, letter Or word. In algebra we are 
used to Variables x, y and z or a, b and c, 
Sometimes using xy, xz and so on. But in 
programming we used variables That are easy to 
understand by using The exact word or sometimes 
close to that. Thus, we use Num1 to represent 
The first number to be entered, Num2 For the 
second number and Sum for the sum or total of 
the two numbers. You may Consider using N1 
and N2 for the two Numbers and total for the sum.
The format of the variables is in alphabet or word 
form or alpha-numeric (combination of alphabet 
and numbers) with the alphabet/s. Numbers 
cannot be used as variables as this will be ready 
by the computer as a value. If two or more words 
are to be combined to create a variable there is a 
Proper way of doing this one is to use an underscore 
(_) the other is simply combining the words. For 
example, for account title we may use act_title or 
accttitle. The use of hyphen (-) is not advisable 
since this may be treated as a mathematical 
operation and the words being combined will be 
treated as a variables.

midterm

  • 2.
    Algorithm Algorithm iswriting a sequence of instruction in word form . It is close to writing a program but not necessarily using a Programming language. Best example of algorithm is recipes.
  • 3.
    Variables Are usedto represent a value. The value may be a number, letter Or word. In algebra we are used to Variables x, y and z or a, b and c, Sometimes using xy, xz and so on. But in programming we used variables That are easy to understand by using The exact word or sometimes close to that. Thus, we use Num1 to represent The first number to be entered, Num2 For the second number and Sum for the sum or total of the two numbers. You may Consider using N1 and N2 for the two Numbers and total for the sum.
  • 4.
    The format ofthe variables is in alphabet or word form or alpha-numeric (combination of alphabet and numbers) with the alphabet/s. Numbers cannot be used as variables as this will be ready by the computer as a value. If two or more words are to be combined to create a variable there is a Proper way of doing this one is to use an underscore (_) the other is simply combining the words. For example, for account title we may use act_title or accttitle. The use of hyphen (-) is not advisable since this may be treated as a mathematical operation and the words being combined will be treated as a variables.