Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
You can change this under Settings & Account at any time.
Unit 16 – Procedural Programming - P1
Transcript of Unit 16 – Procedural Programming - P1
Procedure is step by step instructions. The program does what its programmed to do by the programmer. Functions:-
Functions are similar to procedure but return using a value. Functions can also use parameters, return values and can be separated from the main body of code. Local variables:-
Local variables can only be used in the area it has been placed in.
So for instance a operation can only been done in that area and not another area of the code. Global variables:-
Global variables can be used throughout the programming code, this is perfect for programs that may use the same variables through out the code. Parameter passing:-
Parameter passing allows the variable values to be passed through the program to the procedure. Modularity:-
modularity is about how systems have different tasks and are grouped together to complete the overall task. each group had a task of its own to carry out.
Modularity are modules that have been split into diffrent groups to perform certain tasks one after the other so it is a continuos system Programming Libraries:-
Program Libraries hold a collection of pre-built source codes, Subroutines, Classes and values what can be used at any time by the program and users. Control structures:-
o Pre-check loop:-
Pre-Check loops check the condition of the program before carrying out the procedure
o Post check loop:-
Post check loops test run the program to make sure that it works and if it does it continues the loops. Conditional commands:
If statements are to check if a condition is true or false. if the condition is met the program will continue but if the condition is not met it will keep trying until the condition is met.
Boolean operators are commonly used in Seasrch engins to help the user specify what they are looking for such as if your looking for a person named susan you could put in a search engin "Susan NOT Fiona", maybe "Susan OR Jessy" Procedural programs are creared to be easy to use because they follow in order, some of the programs that can make these type of aplications are:
Pascal coding example:
begin i := 0;
i := i + 1;
Write('Enter a number: ');
until (i = 10) or (s = 0);
C coding example: #include <stdio.h>
for(count=0; count<10; count++)
printf("James Payne is awesome and my hero! In him, I do obey!n