Preview

Computer Programming

Powerful Essays
Open Document
Open Document
2234 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer Programming
Computer Programming:

Even Driven Programming:
This is the process where the flow of the program is determined by certain events such as: * Senor output * User actions i.e. mouse clicks, key presses * Messages from other programs * Threads
As users we have come across event driven program every day when we use a computer i.e. navigating through our computer user interface, also whilst playing computer games. By clicking on the mouse the computer picks up the event that has been made by this action, same goes for when we play computer games. This is because the events driven program picks up the actions that have been carried out, reads it then gives an output.
Event driven programming allows flexibility as it gives users full control whilst designing the program as they tell the program what it should do and at what time it should carry out the event. The key features of events driven program are: * Service oriented - this means everything illustrated on the screen provides a service to the user. * Time driven – this is where the event will only occur from the users input for example when they click on a button * Event handlers – this is when a code is activated when an event occurs for example when a user clicks on a print preview button, when the button is pressed the code that is linked to the button is activated and thus allows the event to occur thus bringing up the print preview page * Trigger functions – this is the same as the event handlers * Event – this is where the program is notified that something has happened for example when a user clicks a button on a keyboard. * Event loops – this is where the program checks for all possible events non-stop * Flexibility – due to flexibility making changes to event driven program will be easy, users tend to change their minds. * Ease of development – simplicity of programs means that events driven programs are easier to develop, maintain and amend.
The

You May Also Find These Documents Helpful

  • Good Essays

    What kind of application control is present through the automatic showing of these respective descriptions? Explain.…

    • 711 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Homework Unit 3

    • 354 Words
    • 2 Pages

    1. Statements are execute in order according to the program code. Complex programs can need the help of a decision structure. Statements have to be true to be executed.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Events: A mechanism for communication between objects. Used in building loosely coupled applications and helps extending applications.…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    2. This mouse term refers to tapping the left mouse button twice in quick succession.…

    • 1234 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    This is event-driven because you are enable to save a document or file if you don’t click the save button. For example, if you create a presentation using Microsoft PowerPoint and you don’t click save, the file will be completely lost and you would have to start again, whereas if you click on the save button, which is normally at the top, the file will be saved on your computer at the destination you saved it at. This means you can open that same file and the presentation will be there with all you work on it. This is event-driven because you are clicking save and the Windows operating system will respond by saving your…

    • 342 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PRG 421 Week 1

    • 423 Words
    • 3 Pages

    What is an event? How are events and graphical user interfaces (GUIs) related? Provide an example of an event and relate it to a GUI.…

    • 423 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Unit 16 Ao1

    • 529 Words
    • 3 Pages

    Every program is made up of sets of algorithms. These are the individual chunks of code which each carry out a process. When the algorithms are combined the whole game is formed. A common algorithm in games creation is a game loop. This is code which controls the actions that are carried out when there is no input from the user. Ordinary programs like a word processor will not do anything when there is no user input; they will just wait for the next command, but a game must keep running constantly, therefore a game loop runs constantly in the background of a game and is established when there is a pause in the input. This could just be to keep the environment active, such as a waterfall that keeps flowing; some involve the character making a reminder movement to the user.…

    • 529 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Part 1: Choose eight events from the lesson. Complete the following chart by using information from the lesson and putting it into your own words.…

    • 398 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    The focus of this investigation will be “How did the Montgomery Bus Boycott lead to the rise of Martin Luther King Jr? In this process I will analyze the effects in which Martin Luther King had on his audience, as well as how other members of the nonviolence protest group, Southern Christian Leadership Conference (SCLC), assisted in his emergence as a prominent leader of the American civil rights movement. For this investigation, it will be important to mention other leaders, such as Malcolm X or Rosa Parks, that gave King this leader image that he himself could not portray alone during the non violent protests, as well as how they set the “step stool” towards King’s rise to power during the Montgomery Bus Boycott. Source 1 Source 1,…

    • 1652 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    MU 2.2

    • 1078 Words
    • 5 Pages

    A prepared sheet is drawn up in advance considering carefully the type of information that needs to be collected. A column is put down for each piece of information. When the behaviour is seen, the person who has seen it should fill in the sheet,…

    • 1078 Words
    • 5 Pages
    Good Essays
  • Good Essays

    the event or even help clear up after the event; all of which helps to make the event run…

    • 942 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    us history

    • 255 Words
    • 1 Page

    This “Causes-Course-Consequences,” or CCC, chart is another excellent way to summarize important information from history. In it, you identify the cause or causes of a particular event and what happened during the event, called the “course.” Then you identify the outcomes, or “consequences,” of the event. It will help you remember the significance of many historical events and help establish connections between them.…

    • 255 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Business Plan Practice

    • 1989 Words
    • 8 Pages

    Events is a start-up company that provides wedding, civil marriage, baby shower, birthday party, anniversary parties and consulting services for brides, grooms, parents-to-be and long standing married couples. As experienced professional consultants, our expertises to create stress free memorable events for our customers. This allows our clients to relax and enjoy their event. BUGSBY Events’ creates events suited to a clients’ budget, style, uniqueness and expression of their individuality.…

    • 1989 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Events: Event Management

    • 9404 Words
    • 38 Pages

    Event in a single word means a “happening”. There are many in our lives. Many of them personal and many relating to a business. While traveling to work you might see or meet a celebrity. It is an event for you. At work you might get a promotion. It is an event. Your company merges with a multinational corporation. It is an event. On your way back from work you meet your former sweet heart and have coffee with him/her. It is an event. When you return home your spouse informs you that the neighbors’ daughter ran off with your cook. It is an event.…

    • 9404 Words
    • 38 Pages
    Good Essays
  • Powerful Essays

    Event Marketing

    • 1890 Words
    • 8 Pages

    An event may be defined as something happening or repeated occurrence or social gathering with a purpose.…

    • 1890 Words
    • 8 Pages
    Powerful Essays

Related Topics