Program Title
Program Title
Internal verification:
I. Introduction.
II. Theory.
1.Algorithm
1.1 What is the algorithm.
-In basic terms, an algorithm is a set of well-defined steps or rules that you need to follow to obtain a
pre-determined result. For instance, when we talk about algorithms in computer programming, we
already have our input and we know the expected output. Now, an algorithm would be all the defined
steps to follow on the input to get the desired output.
1. To improve the efficiency of a computer program. In programming, there are different ways of solving
a problem. However, the efficiency of the methods available vary. Some methods are well suited to give
more accurate answers than others. Algorithms are used to find the best possible way of solving a
problem. In doing so they improve the efficiency of a program. When it comes to programming,
efficiency can be used to mean different things. One of them is the accuracy of the software. With the
best algorithm, a computer program will be able to produce very accurate results. Another way of
looking at the efficiency of the software is speed. An algorithm can be used to improve the speed at
which a program executes a problem. A single algorithm has the potential of reducing the time that a
program takes to solve a problem.
2. Proper utilization of resources. A typical computer has different resources. One of them is computer
memory During the execution phase, a computer program will require some amount of memory. Some
programs use more memory space than others. The usage of computer memory depends on the
algorithm that has been used. The right choice of an algorithm will ensure that a program consumes the
least amount of memory. Apart from memory, the algorithm can determine the amount of processing
power that is needed by a program.
3. Algorithms. Given that we have mentioned the impact of an algorithm on resources, it will be
imperative to look at the cost. This is because each resource comes with a price tag. You can decide to
use an algorithm that will use the least resources. The leaner the resources, the less the cost.
Service Oriented
Service oriented is a key features in event-driven programming that used to write
programs that are made for services and it takes does not slow down the computer as
service oriented only consume little of the computer processing power and usually
services run in the background of OS.
Time Driven
In event driven programming, time driven is a paradigm, it’s a code that runs on a time
trigger, time driven can be a specific code that runs on a specific time, which could be
once an hour, once a week or once a month, this means it’s a pre-set to do task. For
example, windows update is the example of time driven, which user can set when to
update or when to check and download the update.
Event Handlers
Event handlers is a type of function or method that run a specific action when a specific
event is triggered. For example, it could be a button that when user click it, it will display
a message, and it will close the message when user click the button again, this is an
event handler.
Trigger Functions
Trigger functions in event-driven programming are a functions that decide what code to
run when there are a specific event occurs, which are used to select which event handler
to use for the event when there is specific event occurred.
Events
Events include mouse, keyboard and user interface, which events need to be triggered in
the program in order to happen, that mean user have to interacts with an object in the
program, for example, click a button by a mouse, use keyboard to select a button and
etc.
Simplicity of Programming and Ease of Development
Event-driven programming is simple and easier to program compared to other type of
programming as it’s very visual, for example you can place a button by just select it and
place it onto a form and write a code for it. Event-driven programming also easy for user
to insert a pre-written code scripts into an existing application because it allows user to
pause the code while it’s running. Which make developing using event-driven
programming is easy.
-Object oriented programming generally support 4 types of relationships that are: inheritance ,
association, composition and aggregation. All these relationship is based on "is a" relationship, "has-
a" relationship and "part-of" relationship.
- Concept of Text editor: A text editor is a software program that allows users to input and edit text.
One main distinction in text editors is between those commonly called word processors used for
writing, and other more programming-oriented tools used for technical editing. The word processor
has replaced the typewriter as a way to generate print writing, and features items like margins, spell
check and fonts which accommodate different types of presentation for letters, documents, etc. By
contrast, a rougher text editor serving a Unix environment or other less 'literary’ editing environment
will have different text editing features, with fewer of the bells and whistles used by less technical
users to present writing in a digital document or desktop publishing format. More technical text
editing tools like notepad and other utilities are more meant for storing data than for presenting text,
and come with their own specific limitations in terms of presentation. - How IDEs help in application
development:
- Advantages and disadvantages of IDE: Defect: Software is difficult to install and consumes
memory space of the computer.
- Compare the advantages and disadvantages of developing software using IDE and developing
software without using IDE
3.2 Debug.
- Debugging is the process of finding out the error or the cause of the error (where the bug is) to have
a direction to fix the error (fix the bug). Error control of many lines of code is not easy for
inexperienced programmers.
- The purpose of Debug is not only to remove errors from the program, but more importantly, to help
the programmer better understand the execution of the program. A programmer without the ability to
debug effectively is like being blind.
- Debugging is not only to remove errors from the program, but also to help programmers better
understand the program and the software that is running. Therefore, debugging is also an ability used
to assess the level of programmers.
- Simply put, coding is the act of writing code, generating the underlying code in a programming
language. Coding ensures that the computer understands the instructions, thereby handling the coding
and performing the desired actions by the programmer. Each script executes a specific action.
- Coding Standards are a set of rules that specify how to write the code of a program that
programmers must follow when participating in a project to develop that program. Depending on the
project, there will be different standards, that set of rules includes:
• Whitespace, tab.
• Declare and use Comment source code: creator name, version, file creation date, class, method,
changer, changed content.
-Coding standards are a very important component in software development. However, it is often
ignored or applied only at the beginning, then forgotten later. A consistent coding standard will help
improve the quality of the overall software system. The key to a good coding standard is consistency.
- A coding standard ensures that all developers writing the code in a particular language write
according to the guidelines specified. This makes the code easy to understand and provides
consistency in the code. One of the most essential factors in a software system is the consistency of
the coding standard