Documente Academic
Documente Profesional
Documente Cultură
PROGRAMMING LANGUAGE
set of rules
words and symbols are used
form valid program statements
produces logically correct outputs
C - structured programming
o Invented and first implemented by Dennis Ritchie in 1970s
o It was designed, implemented, and developed by real, working programmers
o The result was a powerful, efficient, structured language that was relatively easy to learn
**C is one of the world’s great programming languages, there is a limit to its ability to handle complexity. Once
the size of a program exceeds a certain point, it becomes so complex that it is difficult to grasp as a totality
**World Wide Web and the Internet would reach critical mass. This event would precipitate another
revolution in programming
JAVA BUZZWORDS
Simple - easy for the programmers to learn and use effectively.
Secure -
Portable -
Object-oriented - object model in Java is simple and easy to extend, while primitive types, such as integers, are kept
as high-performance non objects.
Robust - virtually eliminates memory management mistakes and mishandled exceptional conditions problems by
automatic garbage collection and exception handling features.
Multithreaded - supports multithreaded programming, which allows you to write programs that do many things
simultaneously.
Architecture-neutral - “Write Once, Run Anywhere, any time, forever.”
Interpreted and High Performance - Java bytecode was carefully designed so that it would be easy to translate
directly into native machine code for very high performance by using a just-in-time compiler.
Distributed - designed for the distributed environment of the Internet because it handles TCP/IP protocols. Java also
supports Remote Method Invocation (RMI). This feature enables a program to invoke methods across a network.
Dynamic - Java programs carry with them substantial amounts of run-time type information that is used to verify
and resolve accesses to objects at run time. This makes it possible to dynamically link code in a safe and expedient
manner.
PROGRAM DEVELOPMENT
1. Write a program in a specific PL.
2. Translate into a form the computer can execute
3. Investigating and fixing any errors
PROGRAM EXECUTION
each CPU has a particular machine language
for a program to run it must be translated into a machine language
COMPILER – a software tool that translates source code into a specific machine language.
Source C file entered in the compiler
output is an Executable (.exe) file
TYPES OF ERRORS
1. COMPILE TIME ERRORS – syntax and basic errors
2. RUN-TIME ERRORS – occurs during program execution (ie. division by zero)
3. LOGICAL ERRORS – errors when the programs produces incorrect results
PROBLEM SOLVING
Understand the problem
Design a solution
Consider alternatives and refine the solution
Implement the solution
Test the solution