Week-3-Lecture-by-Doc-EVE
Week-3-Lecture-by-Doc-EVE
RODRIGUEZ
PROGRAMMING LANGUAGE
A programming language is a computer language that programmers use to develop
applications, scripts or other set of instructions for a computer to execute. Below is a listing of several
different programming languages and scripting languages.
ALGOL C dBase Java Prolog XML
Assembly C# FORTRAN JavaScript SQL
BASIC C++ FoxPro Perl Visual Basic
BCPL COBOL HTML PHP Visual FoxPro
FIELDS OF PROGRAMMING
1. Applications / Program Development
It involves programs you work on a daily basis. If you are interested in writing your own
programs you should consider the following languages: C, C++, C#, Java, Visual Basic
3. Database Development
Database developers create and maintain databases. If you are interested in creating your
own database or maintaining other databases you should consider the following languages: dBase,
FoxPro, MySQL, Visual FoxPro
4. Game Development
It involves the development of computer games or other entertainment software. In writing
your own games, consider the following languages: C, C++, C#, DarkBasic, Java
1. Define – To decide what real-world problem is to be solved and how a program can do this.
2. Outline – Breaking a large problem up into smaller ones. Deciding what the steps of the program
are. A tool that is available to help the programmer during this step is a flowchart, which is a visual
diagram of the flow of the program.
3. Develop the Algorithm – An algorithm is the steps that a programmer will write that will become a
program. It is written in a form of structured language called pseudocode. Pseudocode is a language
non-specific; it could be used by programmer to help him or her write the actual program using any
programming language. Each step of algorithm will be directly translated into a line of code when it is
time to write the program using programming language. Algorithms are written in sequential order of
action and are language non-specific.
To help write the algorithm, programmers use flowchart. This is the pictorial image of the
steps of a program.
4. Test – to make sure that the algorithm of your program does what it should. An error in a program is
also known as a bug and the process of finding bugs is known as debugging. Desk checking is
looking at the lines of code one by one to see if they have been written correctly and the logic is
correct. Desk checking is also called tracing. The walkthrough is just when a group of people do a
desk check.
5. Code – It is actually using any specific programming language to write lines of program. These lines
of code are also called listing, and are also known as source code. The program that you run is
called object code.
6. Run/Execute – To run the program on a computer. When you run a C++ program, first the program
(C++) will compile the source code. This translates the human code into machine code. When you run
the program, you will do further testing. There are two main types of errors, syntax and logic errors.
Syntax errors are problems with grammar, spelling, or punctuation. Logic errors are errors that
make the program’s results incorrect. There is another type of error called a run time error, which
C++ can find. One type of run time error is called linking error. If in your program, you referred to
wanting to use some code in a library and that library was not in your computer, you would get a run
time message stating that the program could not run.
7. Document and Maintain – To document mean to put together all of the materials that have been
generated throughout the PDLC process. All the flowcharts, messages, algorithms, lines of code, and
the user manuals are part of the documentation. Internal documentation is used by other
programmers to help them know why you did something a certain way or to tell them how you wrote a
program.
To maintain is to make sure that the program keeps running as it should and to do any
needed updating or fixing. Maintenance is the longest phase of the PDLC.
The first two generations are called low level languages. The next three generations are called
high level languages.
1. MACHINE LANGUAGES: It is the language that the computer can directly understand and
execute. Each unique computer has a unique machine language. A machine language
program is made up of a series of binary patterns (e.g., 01011100) which represent simple
operations that can be accomplished by the computer (e.g., add two operands, move data to a
memory location). Machine language programs are executable, meaning that they can be ran
directly. Programming in machine language requires memorization of the binary codes and can
be difficult for the human programmer.
2. ASSEMBLY LANGUAGES: They represent an effort to make programming easier for the
human. The machine language instructions are replaced with simple pneumonic
abbreviations (e.g., ADD, MOV). Thus, assembly languages are unique to a specific
computer (machine). Prior to execution, an assembly language program requires translation to
machine language. This translation is accomplished by a computer program known as an
Assembler. Assemblers are written for each unique machine language.
3. HIGH LEVEL LANGUAGES: High-level languages, like C, C++, JAVA etc., are more English-
like and, therefore, make it easier for programmers to “think” in the programming language.
High-level languages also require translation to machine language before execution. This
translation is accomplished by either a compiler or an interpreter.
Compilers translate the entire source code program before execution. (E.g.: C++,
Java)
Interpreters translate source code programs one line at a time. (E.g.: Python)
Interpreters are more interactive than compilers.