Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
0 views

L1 Basic Programming

The document provides an overview of computer programming, defining key concepts such as programming, programs, and programmers, and explaining the process of creating programs using various programming languages. It also highlights the history of programming, notable figures, and the evolution of programming languages like Java, C, Python, and PHP, along with their applications. Additionally, it covers the fundamental principles of syntax and semantics in programming languages.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

L1 Basic Programming

The document provides an overview of computer programming, defining key concepts such as programming, programs, and programmers, and explaining the process of creating programs using various programming languages. It also highlights the history of programming, notable figures, and the evolution of programming languages like Java, C, Python, and PHP, along with their applications. Additionally, it covers the fundamental principles of syntax and semantics in programming languages.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

INTRODUCTION

TO COMPUTER
PROGRAMMING
What is programming?
❖Programming is the process of creating a set of
instructions that a computer can follow to perform
specific tasks. It involves writing code in a language
that computers can understand, enabling them to
execute various operations and solve problems.
What is a program?
❖ A program is a set of instructions for a computer,
telling it what to do or how to behave.
What is a programmer?
❖A programmer is a person who
create, develop and write a program.
Who can be a programmer?
✓ Anyone who have knowledge
in programming.
How to create a program
❖A program is created using different
programming languages.

❖A program is created with different


stages. Sometimes called as programming
cycle.
Why do programmer make a
program?
❖ To simplify task

❖Provide accurate results

❖Aids to facilitating daily activities.


How Do Computers Work?
❖A computer is a machine that
processes information, and this
information can be any data that is
provided by the user through devices
such as keyboards, mice, scanners,
digital cameras, joysticks, and
microphones.
How Do Computers Work?
Processing: Operations done on this information (input data) is
called Processing. The Processing of input is done in the Central
Processing Unit which is popularly known as CPU.

Output Devices: These are the computer hardware devices that


help in converting information into human-readable form. Some
of the output devices include Visual Display Units (VDU) such as
a Monitor, Printer, Graphics Output devices, Plotters, Speakers,
etc.
HISTORY OF PROGRAMMING
➢ Charles Babbage

➢ English Mathematician and


inventor

➢ Originated the concept of a


digital programmable
computer.

➢ The Father of Computer


HISTORY OF PROGRAMMING
➢ 1843 – Computer program

➢ Ada Lovelace

➢ First computer programmer


for writing algorithm

➢ Bernoulli numbers
HISTORY OF PROGRAMMING
1889
➢Herman Hollerith

➢Developed the first


electromagnetic
tabulator machine
HISTORY OF PROGRAMMING
To count punched cards
and display results on
counters, print the
counted results and send
the results to other
devices for further
calculations.
HISTORY OF PROGRAMMING
1956
➢ John Backus
➢ Father of FORTRAN
➢ Used for projects as design of
bridges and aero plane
structure it is used for factory
automation control, for storm
drainage design, analysis of
scientific data and so on.
HISTORY OF PROGRAMMING
1958
➢ John McCarthy– LISP
➢ Computer programming language
➢ LISP program is a function applied to data,
rather than being a sequence of procedural
steps as in FORTRAN and ALGOL.
➢ Lisp is used in a wide variety of
applications, including web development,
database management, system
administration, and artificial intelligence.
Programming Language
A programming language is a formal
system of notation used to write
computer programs. It allows
programmers to communicate
instructions to a computer in a
structured and understandable way.
Programming Language
Programming languages are defined by
their syntax (form) and semantics
(meaning), and they typically provide
features such as a type system,
variables, and error handling
mechanisms
Key Principles
Syntax refers to the rules that define the structure
of valid statements in a programming language. It
includes the arrangement of symbols, keywords, and
operators.

Semantics refers to the meaning of the syntactically


correct statements. It defines how the instructions
are executed by the computer
TOP PROGRAMMING LANGUAGE

❑ JAVA
A versatile language used
for building mobile
applications, enterprise
software, and large
systems.
Example of Java program
TOP PROGRAMMING LANGUAGE
❑C
C is a general-purpose, procedural,
and middle-level programming
language used for developing
computer software, system
programming, applications, games, and
more.
Example of C program
TOP PROGRAMMING LANGUAGE
❑ PHYTON
Python is a high-level, interpreted
programming language known for its
simplicity and readability.
Python supports multiple programming
paradigms, including procedural, object-
oriented, and functional programming.
APPLICATIONS OF PYTHON

❑ Web Development
❑ Data Science and Machine
Learning
❑ Game Development
❑ Artificial Intelligence
Example of PYTHON program
TOP PROGRAMMING LANGUAGE

❑C++
C++ is certainly a rather
powerful extension of standard
C, which adds to it the power
of object-oriented features.
Applications of C++

❑ Operating Systems
C++ is extensively used in
developing operating systems.
For example, parts of Mac OS X
and Microsoft Windows are
written in C++
Applications of C++
❑ Game Development
C++ is the preferred language for
game development due to its
performance and ability to handle
complex graphics and real-time
processing. Popular game engines
like Unreal Engine use C++
Applications of C++

❑ Web Browsers
Many web browsers, including
Mozilla Firefox and parts of Google
Chrome, are developed using C++
Applications of C++

❑ Embedded Systems
C++ is used in embedded systems
that require direct hardware
manipulation, such as
smartwatches, medical devices,
and mobile phones
Example of C++ program
TOP PROGRAMMING LANGUAGE
❑ Visual Basic. NET
Visual Basic (VB.NET) is a
multi-paradigm, object-
oriented programming
language developed by
Microsoft.
TOP PROGRAMMING LANGUAGE

❑ Java Script
Essential for web
development, JavaScript is
used for creating interactive
web pages and server-side
applications
TOP PROGRAMMING LANGUAGE
❑ Java Script
Functions in JS are objects.
They may have properties and
methods just like other objects.
They can be passed as
arguments in other functions.
TOP PROGRAMMING LANGUAGE

❑ PHP (Hypertext Preprocessor)


PHP is a server scripting language,
and a powerful tool for making
dynamic and interactive Web pages.
PHP is a widely-used, free, and
efficient alternative to competitors
such as Microsoft's ASP (Active
Server Pages).
What can PHP do?
o PHP can generate dynamic page content
o PHP can create, open, read, write, delete, and close
files on the server
o PHP can collect form data
o PHP can send and receive cookies
What is the purpose of cookies?
To detect a user, a cookie is used frequently . A cookie
is a tiny file placed on the user's machine by the server.
The cookie will be sent each time the same machine
requests a page via a browser.
What can PHP do?
Cookie values can be created and retrieved
using cookies in PHP. Cookies are text files
that are saved on the client computer for the
purpose of monitoring. PHP accepts HTTP
cookies invisibly.
o PHP can add, delete, modify data in your
database
o PHP can be used to control user-access
o PHP can encrypt data
Example of PHP program
TOP PROGRAMMING LANGUAGE

❑ C#
C# (C-Sharp) is a programming
language developed by Microsoft that
runs on the .NET Framework.
C# is used to develop web apps,
desktop apps, mobile apps, games and
much more.
Example of C# program

You might also like