Procedural programming begins from the top and goes through tll the end. When a task which
may be carried our multple tmess the control goes to a functon. Which does actons and then
returning a value. For example giving two variables a numeric vale and then adding the two
numeric values together and then returning the result to show to the user.
Object orientated programming
Object oriented language models by the use of objects. Objects have two main parts: data and
functons. The way to tell which is data and which is functon is members are known to what an
object hass while as methods is something an object does. For example an animal object could
have size and colour as data members but eat and noise as methods.
Event driven programming
Event driven programming is used to fow a program executon by events. For example a user
mouse clicking or key pressing. Event driven is used to know events when they happens and
respond to the event using an appropriate event-handling procedure.
Procedural programming pros and cons
The advantages of procedural programming are: good for common programming purposess simple to
read the program code and simple to maintain the code because the procedures can be debugged in
isolaton.
The disadvantages of procedural programming are: If the code is long it can get difcult to modify and
understands editng a small part of the code would mean changes to the entre code and could be
difcult applying a code from a program to a dieerent one.
,Object-orientated programming pros and cons
The advantages of object-orientated programming are: small changes to the code is not that
complex in datas objects are maintained individually allowing problems to fxed quicker and
more eeectvelys and the objects are also able to be used again on other programs.
The disadvantages of object-orientated programming are: it is not that useful to use on simple
programs and has to be organized appropriately.
Event driven programming pros and cons
The advantages of Event driven programming are: it allows for more interactve programss
allows hardware to interact with the sofware easily and can be input using hardware interrupts.
The disadvantages of Event driven programming are: would not be appropriate for simple
programs as it would be difcult to manages and the fow of the code is usually more difcult to
understand.
Organisation policy
When choosing a language to use organisaton policy is important. This is because specifc
organisatons may use a specifc programming language for projects in which programmers
would also have to use. For example one organisaton may decide to code their game in python
while another organizaton may decide to code it in VB.net.
suitability in terms of available features and tools
When choosing a programming language to use suitability is important. Every programming
language has dieerent features and toolss which could impact the programming language useds
for example if an organizaton is planning to create a program in a specifc operatng system it
would be useful for going a programming language which has features and tools which will help
with creatng the program for that operatng system.
Availability of trained staf
When choosing a programming language to use availability of trained stae is important. Trained
stae may be experienced to using a specifc programming language and may fnd it difcult to
get use to a programming language which they are new to.
Reliability
, When choosing a programming language to use reliability is important. There are programming
languages which are more reliable than other programming languages. For examples some
programming languages can be a target for viruses and bugs.
development and maintenance costs
When choosing a programming language to use development and maintenance costs is
important. All organisatons have costs for development and maintenance. Althoughs not every
organisaton has a lot of fundings to use any programming language they wants as using some
programming languages could cost thousands of pounds. Maintaining the sofware would also
have costss for example removing bugs or glitches on the programme.
Expandability
When choosing a programming language to use Expandability is important. An organizaton
should assess if a programming language they want to use is able to expand with the
organisaton task. Which means the program will be able to be used in future. For examples a
specifc webpage on an online shopping website displaying images of items the organizaton is
selling and adding the product the cart of the user should use a language which supports
multple users at onces for example PHP.
Sequence in programming
Sequence is a set of instructons within a specifc order. Afer one instructon is completeds the next
follows. When one instructon is executeds there is a couple of seconds delay for it to complete being
executed. When a program needs to calculate and or output data from top to botom.
Selection
Select is when a queston is asked and determining on the answers there can be one or more possible
outcome. This in programming is usually known as an “if statement”. Selecton statements allows a
choice to be made to which statement should be carried out next.
Iteration
Iteraton is a loop within a computer which fows through a batch of instructons which is
executed over and over. The two main types of loops are conditonal and fxed loops.
Demonstrate the use of event driven tools and
technique
If and else-if design
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller xeon. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £10.49. You're not tied to anything after your purchase.