Programming
P1 Explain the key features of procedural programs
1
1
, P1
Features of a Procedural Program
• PROCEDURES
• Procedures are where you break down the program into individual
procedures, this is done to make the program more logical.
Procedural code
is where you
have a procedure
but it doesn’t
output anything.
P1 Explain the key features of procedural programs 2
Features of a procedural program
<Expanded with an explanation of each feature described on main slide>
Procedures – These are used to break down the program into individual procedures
to make the code simpler and easier to understand. When using procedures there are
different types those are when they can be executed in parallel or they can be
executed in a serial order. By having these different procedure types it helps to make
the code/program more logical. When executing the different procedures they are
split into parts for individual users, the main program calls each procedure, once that
is executed it then returns the control back to the main program, then it continues to
go onto the next procedure and executes that task until it has done it all.
For example, in a program if it has a simple piece of code to just multiply one value it
executes that and the program is then finished running. However, if there is more
lines of code where it has to do 3 different multiplications it will then execute the first
one, return to the main code which tells it what to do and then moves to the next set
of numbers and so on until all the code has been run.
2