Unit 14 – Event Driven Programming (P1,P2, M2 and D1).
485 views 2 purchases
Module
Unit 14 – Event Driven Programming
Institution
Modern College Of Business And Science
All my work received distinctions overall in this unit. Please feel free to email me for documentation. Feel free to use my work as guide to complete your own P1,P2, M2 and D1. Listed at the lowest possible price to give you a grade that you need. Included 3,009 words course work assignments with ...
p1 explain the key features of event driven programs
p2 demonstrate the use of event driven tools and techniques
m2 give reasons for the tools an
Written for
Modern college of Business and science
Unit 14 – Event Driven Programming
All documents for this subject (5)
Seller
Follow
Badaralsalmy
Reviews received
Content preview
EXPLAIN THE KEY FEATURES OF EVENT DRIVEN
PROGRAMS(P1).
Event driven programming is a programming paradigm in which a flow of
programs is determined by events such as user actions, key presses, mouse click.
Let say for example the reaction of these input from the user such as when user
clicks on the screen or when they move the mouse and responding of these
events is called event driven programming. The ability of responding of these
events is built to most programming languages such java script. These events are
already happening, when the page or application is loading or when users click
somewhere on the screen or move the mouse or typing, every key press is
another event to get respond, that’s all, are events. The way that we can do this is
as a programmer, we need to write some functions, for example, write functions
and saying instead of running this function when page loads, only run it when
users clicks on the button. Also, there is an event handler that waits for events to
happen. In event driven application or programs, there is a main loop that listens
for events then activate call back functions when one those events is detected.
Event driven programs can be written in many programming languages. Event
driven programming is the one of the three paradigms, three programming
paradigms are event driven programming, object-oriented programming and
procedural programming. Events programming is on all computer system such as
operating system like window, Linux or even Mac, they all follow fundamental
properties which is events, for example, the mouse or keyboard triggered the
events and handlers is what happening on screen. When using event driven
programming, the important things to understand is key features of the
programming type. The following are the key features of event driven programs:
Services oriented: This is the one of the key features in event driven
programming that is used to write programs that provides services to the user.
This service oriented helps the user effectively to use the system. If something is
requested, the action is carried out, let say for example; if the user wanted to
save his works that he wrote on Microsoft word, he would click the file icon on
the top left on Microsoft word and click on “save” and then his work will be saved,
, this is what we called service oriented. Event driven programming allows
programmer to create service-oriented programs such as Microsoft excel which
helps employees to enter and save data for organization or company. Example of
services-oriented programs that are used in CCEPS is Human resource system that
provide services to the HR manager to enter employees’ details
Time driven:
This is another key feature in event driven programming that runs code or specific
code on time trigger, this meaning that code executes on specific time set, which
could be once a day or whenever program is launched, this is said to be pre-set
task. For example, Kaspersky internet security program, it checks database
updates at specific time a day, if updates available it updates automatically. This
meaning that the codes is set to be executes at interval or specific time. Also
scanning of antivirus software such Kaspersky, you can set it to scan the device
once a week or once a day, this is time driven which set program to do a certain
task at specific time. Example of time driven application which is used in CCEPS is
E learning system that have codes which executes at specific time set such as time
set for the end of submission of assignments, when students submit the
assignment after time set, there is set of codes executes that respond to the
student that submission is late and provide time of late.
Events: In order event to happen with in a program, they need to be triggered by
either mouse through right click, left click or keyboard by pressing certain keys,
typing something in order to set off events when user interact with an object such
as button which may be clicked. For example, in Human resource system at CCEPS
Events happen when code being assigned to something such as button, for
example when the button is pressed the code is executed.
Events handlers: This is a function that works when a certain event happens.
Events handlers executed in reaction to a certain event that takes place. For
example, when employee want to save records in account and finance system he
should click on control, this could be on a button, when a button is clicked the
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 Badaralsalmy. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £6.27. You're not tied to anything after your purchase.