



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















Acknnowledgement .......................................................................... Error! Bookmark not defined. Introduction .................................................................................................................................... 1 1.1 Define what an algorithm is. Give a simple example of an algorithm using a technique that youâve learnt/know to express algorithms .................................................................................... 2 Simple example for an algorithm using flow chart ........................................................................ 3 1.2 Briefly describe the process of building a software application (i.e. the phases of the SDLC â Software Development Life Cycle) ................................................................................................. 5 1.3 Explain the roles of the Pre-processor, Compiler, Linker & Interpreter and describe the process of programme execution (steps taken from writing code to execution) of a programming language of your choice (i.e. Java) .......................................................................... 7 2.1 Explain procedural, object oriented and event driven programming paradigms. Your explanations should also include the characteristics of each ...................................................... 10 2.2 Describe the relationship between procedural, object oriented and event driven paradigms. 28 .................................................................................................................................................. 12 2.3 Explain what an Integrated development environment (IDE) is. Give three examples of your choice............................................................................................................................................ 13 2.3 Do a comparison of the features of the IDEs youâve mentioned in 2.3. Analyze the common features that a developer has access to in all these IDEs ............................................................ 14 NetBeans vs Eclipse ...................................................................................................................... 15 4.1 Explain how debugging is carried out using the IDE that you used for developing your application (the debugging process). Describe the debugging facilities available in the IDE you used. 42 4.2 Outline the coding standards you have used when developing the above application.......
A programme is a set of instructions that tell the computer to do various things; sometimes the instruction it has to perform depends on what happened when it performed a previous instruction. This section gives an overview of the two main ways in which you can give these instructions, or âcommandsâ as they are usually called. One way uses an interpreter, the other
a compiler. As human languages are too difficult for a computer to understand in an unambiguous way, commands are usually written in one or other languages specially designed for the purpose. In this assignment at the beginning we are going to explain about algorithms and the process of a programming application. Then we have to explain the characteristics of procedural, objectoriented and event-driven programming, conduct an analysis of a suitable IDE and implement basic algorithms in code using IDE. At the end of this assignment we have to determine the debugging process and explain the importance of a coding standard.
Programming is the process of taking an algorithm and encoding it into a notation, a programming language, so that it can be executed by a computer. Even though many programming languages and many different types of computers exist, the important first step is the need to have the solution. Without an algorithm there can be no program. Computer science is not the study of programming. Programming, however, is a vital part of what a computer scientist does. Programming is often the way that we create a representation for our solutions. Therefore, this language representation and the process of creating it becomes a fundamental part of the discipline. Algorithms describe the solution to a problem in terms of the data needed to represent the problem instance and the set of steps necessary to produce the intended result. Programming languages must provide a notational way to represent both the process and the data. To this end, languages offer control constructs and data types.
The process of software development services goes to through a series stages in step wise fashion that almost every developing company follows. Known as the software development life cycle, these six steps include planning, analysis, design, development and implementation, testing and deployment and maintenance. Letâs go ahead and see each of these steps to know how the perfect software is developed.
Pre-processor The pre-processor is a macro processor that is used automatically by the C compiler to transform your program before actual compilation (Preprocessor directives are executed before compilation.). It is called a macro processor because it allows you to define macros, which are brief abbreviations for longer constructs. A macro is a segment of code which is replaced by the value of macro. Macro is defined by directive. Compiler A compiler is a computer program that transforms code written in a high-level programming language into the machine code. It is a program which translates the human-readable code to a language a computer processor understands (binary 1 and 0 bits). The computer processes the machine code to perform the corresponding taasks. A compiler should comply with the syntax rule of that programming language in which it is written. However, the compiler is only a program and cannot fix errors found in that program. So, if you make a mistake, you need to make changes in the syntax of your program. Otherwise, it will not compile. Linker and Interpreter An interpreter is a computer program, which coverts each high-level program statement into the machine code. This includes source code, pre-compiled code, and scripts. Both compiler and interpreters do the same job which is converting higher level programming language to machine code. However, a compiler will convert the code into machine code (create an exe) before program run. Interpreters convert code into machine code when the program is run.
Linker In high level languages, some inbuilt header files or libraries are keep. These libraries are predefined and these contain basic functions that are essential for execution the program. These functions are connected to the libraries by a program known as Linker. If linker doesn't realize a library of a operate then it informs to compiler and so compiler generates an error. The compiler mechanically invokes the linker because the last step in compilation a program. Not built in libraries that also links the user defined functions to the user defined libraries. Sometimes an extended program is divided into smaller subprograms known as modules. And these modules should be combined to execute the program. The method of combining the modules is finished by the linker. Process of programme execution (Java) First, the source â.javaâ file is passed through the compiler, which then encodes the source code into a machine independent encoding, known as Bytecode. The content of each class contained in the source file is stored in a separate â.classâ file. While converting the source code into the bytecode, the compiler follows the following steps: Parse: Reads a set of *.java source files and maps the resulting token sequence into AST (Abstract Syntax Tree)-Nodes. Enter: Enters symbols for the definitions into the symbol table. Process annotations: If Requested, processes annotations found in the specified compilation units. Attribute: Attributes the Syntax trees. This step includes name resolution, type checking and constant folding. Flow: Performs dataflow analysis on the trees from the previous step. This includes checks for assignments and reachability. Desugar: Rewrites the AST and translates away some syntactic sugar. Generate: Generates â.Classâ files
Procedural programming In procedural programming, a program consists of data and modules/procedures that operate on the data. The two are treated as separate entities. In the object-oriented programming (OOP) paradigm, however, a program is built from objects. An object is an instance of a class, which is an encapsulation of data (called fields) and the procedures (called methods) that manipulate them. In most, but not all, cases, the fields can only be accessed or modified through the methods. An object therefore is like a miniature program or a self-contained component, which makes the OOP approach more modularized and thus easier to maintain and extend. Another type of programming paradigm that procedural programming can be contrasted with is event-driven programming. In this approach, procedures are called/executed only in response to events, which may include mouse clicks, keyboard press, attaching or removing a device, arrival of data from an external source, etc. As these events are unpredictable, the procedures that handle them cannot be executed linearly as is the case with procedural programming. Characteristics of Procedural oriented programming: It focuses on process rather than data.
Object oriented programming Object-oriented programming (OOP) refers to a type of computer programming (software design) in which programmers define the data type of a data structure, and also the types of operations (functions) that can be applied to the data structure. In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects. Some key features of the Object-Oriented programming are:
but not always. These three categories are thus not related strictly hierarchically, but in common usage they are mostly nested within one another.
An Integrated Development Environment (IDE) is an application that facilitates application development. In general, an IDE is a graphical user interface (GUI)-based workbench designed to aid a developer in building software applications with an integrated environment combined with all the required tools at hand. Most common topographies, such as debugging, version control and data structure browsing, help a developer quickly execute actions without switching to other applications. Thus, it helps maximize productivity by providing similar user interfaces (UI) for related components and reduces the time taken to learn the language. An IDE supports single or multiple languages. The concept of IDE evolved from simple command-based software which was not as useful as menu-driven software. Modern IDEs are mostly used in the context of visual programming, where applications are quickly created by moving programming building blocks or code nodes that generate flowchart and structure diagrams, which are compiled or interpreted. Selecting a good IDE is based on factors, such as language support, operating system (OS) needs and costs associated with using the IDE etc. Examples for IDEs
JavaScript. Applications based on NetBeans, including the NetBeans IDE, can be extended by third party developers.
Types of IDE software IDE software solutions differ in the types of features and tools they offer. Typically, an IDE software provides a debugger, build automation tools, and source code editor, Modern IDEs include intelligent code completion. Some IDEs like Eclipse and NetBeans offer a compiler,
The details of the application you are required to build is as follows:
Average < 40 â Fail Average >= 40 â Pass Average >= 65 â Merit Average >= 80 â Distinction The application is also required to display a summary consisting of the following information on another screen.