Professional Documents
Culture Documents
*
An organized list of instructions that,
when executed, causes the computer to behave in a
predetermined manner. Without programs,
computers are useless.
A computer program is a collection of instructions
that performs a specific task when executed by
a computer. A computer requires programs to
function, and typically executes
the program's instructions in a central processing
uni
*
Steve Jobs
Everybody in this country should learn how to program a computer, should
learn a computer language, because it teaches you how to think.
It's like going to law school. I don't think anybody should be a lawyer, but
going to law school can actually be useful because it teaches you how to
think in a certain way....I view computer science as a liberal art.
*
1. Define The Problem
2. Planning The Solution
3. Coding The Program
4. Testing The Program
5. Documenting The Program
Defining the
problem
Documentin
g the Planning the
progam solution
Implementation phase
implement the program in some programming language
*
*(Dictionary) A schematic representation of a sequence of
operations, as in a manufacturing process or computer
program.
Run-Time Errors
Run-time errors are those that appear only after you compile and run your code.
These involve code that may appear to be correct in that it has no syntax errors,
but that will not execute. For example, you might correctly write a line of code
to open a file. But if the file is corrupted, the application cannot carry out
the Open function, and it stops running. You can fix most run-time errors by
rewriting the faulty code, and then recompiling and rerunning it.
Logic Errors
Logic errors are those that appear once the application is in use. They are most
often unwanted or unexpected results in response to user actions. For example, a
mistyped key or other outside influence might cause your application to stop
working within expected parameters, or altogether. Logic errors are generally the
hardest type to fix, since it is not always clear where they originate.
*
*
*
Debugging, in computer programming and engineering, is a multistep process that involves identifying a problem, isolating the source
of the problem, and then either correcting the problem or determining a way to work around it. The final step of debugging is to test
the correction or workaround and make sure it works.
In software development, debugging involves locating and correcting code errors in a computer program. Debugging is part of
the software testing process and is an integral part of the entire software development lifecycle. The debugging process starts as soon
as code is written and continues in successive stages as code is combined with other units of programming to form a software product.
In a large program that has thousands and thousands of lines of code, the debugging process can be made easier by using strategies
such as unit tests, code reviews and pair programming.
*
In computer hardware and software product development, documentation is
the information that describes the product to its users. It consists of the
product technical manuals and online information (including online versions
of the technical manuals and help facility descriptions). The term is also
sometimes used to mean the source information about the product contained
in design documents, detailed code comments, white papers, and blackboard
session notes
1)User Documentation
2)Operator Documentation
3)Programmers Documentation
*PROGRAMMING
LANGUAGE
*
A programming language is a set of commands, instructions, and
other syntax use to create a software program. Languages that programmers
use to write code are called "high-level languages." This code can be
compiled into a "low-level language," which is recognized directly by the
computer hardware.
Programming Language
A programming language is a type of software. A program is a set of step by step
instruction that directs the computer to do the tasks you want it to do and
produce the result you want. A set of rules that provides a way of telling a
computer when operations to perform is called a Programming Language.
Machine Language (Low Level Language)
Every creation of this universe has its own language. Like wise, computer has a
language that is called Machine Language (machine level language) for instructing
computer to perform specific task. It is also called binary language because it is
the language of 0s and 1s, means every instruction in Machine language consists of
a series of 0s and 1s (binary code) that a computer can understand and execute
directly. Each machine language statement corresponds to one machine action. An
operation that requires one machine language instruction in one computer may
require several instructions in another computer. Each computer has its own
unique machine language.
Assembly Language
In assembly language, the statements are written in symbolic codes (termed as
mnemonics) that are easier for human to read and write as compared to machine
language. Each assembly language statement corresponds to one machine language
statement.
Advantages of Assembly Language
$ vim helloworld.f
program hello
print *,"Hello World!"
end program hello
*
1) Write a Hello World Cobol Program
2) Make sure Cobol Compiler is installed on your system
3) Installing cobc compiler
4) Compile the Cobol program
5) Execute the Cobol program
$ vim helloworld
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
* simple hello world program
PROCEDURE DIVISION.
DISPLAY 'Hello world!'.
STOP RUN.
*
Basic
Pascal
program HelloWorld;
begin
WriteLn('Hello, world!');
end.
*
#include
int main(void)
{
puts("Hello, world!");
}
*
* Object-oriented programming (OOP) is a computer programming
model that organizes software design around data, or objects,
rather than functions and logic. An object can be defined as a
data field that has unique attributes and behaveor
* Java
* JavaScript
* Python
* C++
* Visual Basic .NET
* Ruby
* Scala
* PHP
*
* Visual programming is a type of programming language that lets
humans describe processes using illustration. Whereas a typical text-
based programming language makes the programmer think like a
computer, a visual programming language lets the programmer
describe the process in terms that make sense to humans.
*OR
* A visual programming language (VPL) is a programming language that
uses graphical elements and figures to develop a program.
* A VPL employs techniques to design a software program in two or more
dimensions, and includes graphical elements, text, symbols and icons
within its programming context.
* A visual programming language is also known as an executable graphics
language.
*