SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Introduction to
Computer
Programming
Lanie P. Plecerda
Instructor I
Computer program
- is a list of instructions that the computer
machine follows to properly accept input,
correctly process them and present the results
in the most understandable way.
Computer Programming
– is considered to be an art and at the same time a science. It is an art because
there is no standard way to interpret a problem and solve it using a standard form of
programming procedures and styles. It is fast becoming a science because standard
programming practice is starting to be adopted.
Programs fall into two major classes:
application programs and operating
systems. An application program is
one that carries out some function directly
for a user, such as word processing or
game-playing. An operating system is a
program that manages the computer and
the various resources and devices
connected to it, such as RAM (random
access memory), hard drives, monitors,
keyboards, printers, and modems, so that
they may be used by other programs.
A programmer uses another type of program
called a text editor to write the new program
in a special notation called a programming
language. With the text editor, the
programmer creates a text file, which is an
ordered list of instructions, also called the
program source file. The individual instructions
that make up the program source file are
called source code. At this point, a special
applications program translates the
source code into machine language, or
object code — a format that the operating
system will recognize as a proper program and
be able to execute.
Three types of applications programs
translate from source code to object
code: compilers, interpreters, and
assemblers. The three operate differently
and on different types of programming
languages, but they serve the same
purpose of translating from a
programming language into machine
language. A compiler translates text
files written in a high-level programming
language—such as Fortran, C, or Pascal—
from the source code to the object code
all at once
Computer is composed of:
1. CPU (Central Processing Unit) –
this is where all mathematical and logical
forms of processing are done on data.
2. Memory – before a computer can do
any productive work such as
programming, it has to remember things
such as data it needs to produce
information.
3. Input and Output Device – data
have to come into the computer by first
entering them through input devices.
Ex. Keyboard. After the computer
executes a program to process data
and produce information, this
information remains in the memory.
Part of the program has to show these
results to the outside world. Output
devices such as monitor screen and
printers are used to display the results
to the user.
4. Software – computers today come
bundled with some software already
installed in them.
Operating System – performs for the
programmer many tasks that used to
be very difficult to program
Two forms of Memory
• Internal memory (RAM-Random
Access Memory) – stores programs and
data that are executed and processed by
the computer.
• Secondary memory – supplements RAM
so those computers are able to
permanently save programs and data that
are not yet needed for execution and
processing. Ex. Floppy disk, hard disk &
etc.
The following are standard Operating
System functions.
•Validating user identification
every time the user uses the
computer
•Provides standard functions like
editor, compilers and linkers
•Manages files of the user by
providing functions like Copy,
Delete, Append
The following are standard Operating
System functions.
•Retrieves data out of data files
•Manages memory for the user by
determining where in the memory a
program is to be loaded every time it is
called to run
•Makes communication between the CPU,
Memory and input/output devices
transparent to the user or the user are
unaware of these things while they are at
work.
High level languages
– are programming languages that
are closer to human language than
to machine language. They are
characterized to use common
English words as their instructions.
Aside from that, high level
languages have the following
characteristics:
High level languages
• Requires additional step of compilation or
translation so that from high-level, another
program that has exactly the same meaning
and intended results in low-level or machine
language can be generated and loaded into
the computer and executed.
• A compiled program is usually not as
efficient as when the program was originally
written in machine language or assembly.
This is due to the fact that compilers add a
lot of extra overheads in terms of memory
and non-optimized logical translations.
Each of these programming languages
was designed to solve particular kinds
of problems.
• COBOL – Common Business Oriented Language was
designed to solve business problems like accounting.
• FORTRAN – Formula Translation is a high level
language used for scientific and engineering
applications.
• Pascal and C – are general-purpose language. They
are high-level language but they can be embedded
with assembly language code effectively making these
languages middle-level languages. C language is
responsible in the implementation f major software
including operating systems, compilers and software
development tools.
The Simplest computer
programs perform three basic
operations:
• get the input from the keyboard
• process the input data
• display the results on the screen
INPUT DATA
PROCESS DATA
DISPLAY ALL RESULTS
The most basic form of a C program
follows a very simple format:
pre-processor
directives
main function
{
declarations
statements
}
First Example
/*Converts weight in pounds to kilograms*/
#include <stdio.h>
#define kg_in_pound .454
int main()
{float pounds, kilograms; /*declare both weights as float data type*/
printf(“Enter weight in pounds :”)
scanf(“%f”,&pounds);
kilograms = kg_in_pound * pounds;
printf(“5.2f Pounds is equal %.2f kilograms,n”, pounds, kilograms);
getch();
return(0);
}
- END -

Weitere ähnliche Inhalte

Was ist angesagt?

Chapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of ProgrammingChapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of Programmingricsanmae
 
Lecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devicesLecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devicesMd. Imran Hossain Showrov
 
Unit i (part2) b.sc
Unit i (part2)   b.scUnit i (part2)   b.sc
Unit i (part2) b.scHepsijeba
 
Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Digvijaysinh Gohil
 
Programming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresProgramming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresNisarg Amin
 
Perfect papers software
Perfect papers   softwarePerfect papers   software
Perfect papers softwareguest0a1ce99
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Md. Imran Hossain Showrov
 
Programming languages and paradigms
Programming languages and paradigmsProgramming languages and paradigms
Programming languages and paradigmsJohn Paul Hallasgo
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating systemsonykhan3
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system softwareRai University
 
system software and application software, compiler, interpreter & assembler
system software  and application software, compiler, interpreter & assemblersystem software  and application software, compiler, interpreter & assembler
system software and application software, compiler, interpreter & assemblerchetan birla
 

Was ist angesagt? (20)

Chapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of ProgrammingChapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of Programming
 
Lecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devicesLecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devices
 
Unit i (part2) b.sc
Unit i (part2)   b.scUnit i (part2)   b.sc
Unit i (part2) b.sc
 
Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)Block diagram (computer programming & utilization)
Block diagram (computer programming & utilization)
 
MCA-5 unit1
MCA-5 unit1MCA-5 unit1
MCA-5 unit1
 
Programming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresProgramming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwares
 
computer Unit 6
computer Unit 6computer Unit 6
computer Unit 6
 
Perfect papers software
Perfect papers   softwarePerfect papers   software
Perfect papers software
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Language processors
Language processorsLanguage processors
Language processors
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 
Lecture 22 - Error Handling
Lecture 22 - Error HandlingLecture 22 - Error Handling
Lecture 22 - Error Handling
 
Programming languages and paradigms
Programming languages and paradigmsProgramming languages and paradigms
Programming languages and paradigms
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating system
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system software
 
Programming
ProgrammingProgramming
Programming
 
Richa garg itm
Richa garg itmRicha garg itm
Richa garg itm
 
Algorithms - Introduction to computer programming
Algorithms - Introduction to computer programmingAlgorithms - Introduction to computer programming
Algorithms - Introduction to computer programming
 
system software and application software, compiler, interpreter & assembler
system software  and application software, compiler, interpreter & assemblersystem software  and application software, compiler, interpreter & assembler
system software and application software, compiler, interpreter & assembler
 
System Programming
System ProgrammingSystem Programming
System Programming
 

Andere mochten auch

Laboratorio 11(1)
Laboratorio 11(1)Laboratorio 11(1)
Laboratorio 11(1)Andres EV
 
1 formulas y funciones 1
1 formulas y funciones 11 formulas y funciones 1
1 formulas y funciones 1Andrea Saltos
 
2 función largo concatenar_1
2 función largo concatenar_12 función largo concatenar_1
2 función largo concatenar_1pantracio
 
How to Reduce Canker Sore Swelling
How to Reduce Canker Sore SwellingHow to Reduce Canker Sore Swelling
How to Reduce Canker Sore Swellingclairewilson001
 
Hakeem C V - 2016 Delta Carbon
Hakeem C V  - 2016   Delta CarbonHakeem C V  - 2016   Delta Carbon
Hakeem C V - 2016 Delta CarbonHakeem Elgendy
 
O Gerente Minuto Geane Stéfani da Cruz de Sousa
O Gerente Minuto Geane Stéfani da Cruz de SousaO Gerente Minuto Geane Stéfani da Cruz de Sousa
O Gerente Minuto Geane Stéfani da Cruz de SousaJp Prof
 
O Poder de Delegar Kennedy rocha
O Poder de Delegar Kennedy rochaO Poder de Delegar Kennedy rocha
O Poder de Delegar Kennedy rochaJp Prof
 
ShikshaGuru For Tutors
ShikshaGuru For TutorsShikshaGuru For Tutors
ShikshaGuru For Tutorsshikshaguru
 
SHB-imagine cup finals 2016
SHB-imagine cup finals 2016SHB-imagine cup finals 2016
SHB-imagine cup finals 2016Wejdan Mousa
 
Perspectiva humanista del desarrollo tecnológico y científico
Perspectiva humanista del desarrollo tecnológico y científicoPerspectiva humanista del desarrollo tecnológico y científico
Perspectiva humanista del desarrollo tecnológico y científicoAmairani Dominguez
 

Andere mochten auch (17)

Version operativa
Version operativaVersion operativa
Version operativa
 
Alebrijes primaria
Alebrijes primariaAlebrijes primaria
Alebrijes primaria
 
Circuito electrico
Circuito electricoCircuito electrico
Circuito electrico
 
Laboratorio 11(1)
Laboratorio 11(1)Laboratorio 11(1)
Laboratorio 11(1)
 
1 formulas y funciones 1
1 formulas y funciones 11 formulas y funciones 1
1 formulas y funciones 1
 
2 función largo concatenar_1
2 función largo concatenar_12 función largo concatenar_1
2 función largo concatenar_1
 
Adobe auditiontutorial
Adobe auditiontutorialAdobe auditiontutorial
Adobe auditiontutorial
 
How to Reduce Canker Sore Swelling
How to Reduce Canker Sore SwellingHow to Reduce Canker Sore Swelling
How to Reduce Canker Sore Swelling
 
Xsport
XsportXsport
Xsport
 
Hakeem C V - 2016 Delta Carbon
Hakeem C V  - 2016   Delta CarbonHakeem C V  - 2016   Delta Carbon
Hakeem C V - 2016 Delta Carbon
 
O Gerente Minuto Geane Stéfani da Cruz de Sousa
O Gerente Minuto Geane Stéfani da Cruz de SousaO Gerente Minuto Geane Stéfani da Cruz de Sousa
O Gerente Minuto Geane Stéfani da Cruz de Sousa
 
O Poder de Delegar Kennedy rocha
O Poder de Delegar Kennedy rochaO Poder de Delegar Kennedy rocha
O Poder de Delegar Kennedy rocha
 
ShikshaGuru For Tutors
ShikshaGuru For TutorsShikshaGuru For Tutors
ShikshaGuru For Tutors
 
SHB-imagine cup finals 2016
SHB-imagine cup finals 2016SHB-imagine cup finals 2016
SHB-imagine cup finals 2016
 
SemakovPortfolio2014
SemakovPortfolio2014SemakovPortfolio2014
SemakovPortfolio2014
 
Perspectiva humanista del desarrollo tecnológico y científico
Perspectiva humanista del desarrollo tecnológico y científicoPerspectiva humanista del desarrollo tecnológico y científico
Perspectiva humanista del desarrollo tecnológico y científico
 
Dhtic´s envases verdes
Dhtic´s envases verdesDhtic´s envases verdes
Dhtic´s envases verdes
 

Ähnlich wie Introductiontocomputerprogramming 140713205433-phpapp02 (1)

introductiontocomputerprogramming.pptx
introductiontocomputerprogramming.pptxintroductiontocomputerprogramming.pptx
introductiontocomputerprogramming.pptxHazardRhenz1
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxUzma1102
 
Understanding Computer Systems
Understanding Computer SystemsUnderstanding Computer Systems
Understanding Computer SystemsAr Kyu Dee
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptxgaafergoda
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem SolvingSukhendra Singh
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
Vskills c developer sample material
Vskills c developer sample materialVskills c developer sample material
Vskills c developer sample materialVskills
 
Vskills c++ developer sample material
Vskills c++ developer sample materialVskills c++ developer sample material
Vskills c++ developer sample materialVskills
 
Problem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdfProblem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdfjlu08167
 
Computer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppComputer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppmeharikiros2
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Conceptsimtiazalijoono
 
c and data structures first unit notes (jntuh syllabus)
c and data structures first unit notes (jntuh syllabus)c and data structures first unit notes (jntuh syllabus)
c and data structures first unit notes (jntuh syllabus)Acad
 

Ähnlich wie Introductiontocomputerprogramming 140713205433-phpapp02 (1) (20)

introductiontocomputerprogramming.pptx
introductiontocomputerprogramming.pptxintroductiontocomputerprogramming.pptx
introductiontocomputerprogramming.pptx
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docx
 
Understanding Computer Systems
Understanding Computer SystemsUnderstanding Computer Systems
Understanding Computer Systems
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
 
Software Concepts Notes
Software Concepts NotesSoftware Concepts Notes
Software Concepts Notes
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Computer system
Computer systemComputer system
Computer system
 
Python_Module_1.pdf
Python_Module_1.pdfPython_Module_1.pdf
Python_Module_1.pdf
 
Vskills c developer sample material
Vskills c developer sample materialVskills c developer sample material
Vskills c developer sample material
 
Vskills c++ developer sample material
Vskills c++ developer sample materialVskills c++ developer sample material
Vskills c++ developer sample material
 
Problem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdfProblem Solving and Program Design in C_1.pdf
Problem Solving and Program Design in C_1.pdf
 
Computer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppComputer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cpp
 
A PRESENTATION ON SOFTWARE.pptx
A PRESENTATION ON SOFTWARE.pptxA PRESENTATION ON SOFTWARE.pptx
A PRESENTATION ON SOFTWARE.pptx
 
Unit i
Unit iUnit i
Unit i
 
Programming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages ConceptsProgramming Fundamentals and Programming Languages Concepts
Programming Fundamentals and Programming Languages Concepts
 
c and data structures first unit notes (jntuh syllabus)
c and data structures first unit notes (jntuh syllabus)c and data structures first unit notes (jntuh syllabus)
c and data structures first unit notes (jntuh syllabus)
 
Ayushi
AyushiAyushi
Ayushi
 
Unit2_1.pdf
Unit2_1.pdfUnit2_1.pdf
Unit2_1.pdf
 

Kürzlich hochgeladen

Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 

Kürzlich hochgeladen (20)

Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 

Introductiontocomputerprogramming 140713205433-phpapp02 (1)

  • 2. Computer program - is a list of instructions that the computer machine follows to properly accept input, correctly process them and present the results in the most understandable way. Computer Programming – is considered to be an art and at the same time a science. It is an art because there is no standard way to interpret a problem and solve it using a standard form of programming procedures and styles. It is fast becoming a science because standard programming practice is starting to be adopted.
  • 3. Programs fall into two major classes: application programs and operating systems. An application program is one that carries out some function directly for a user, such as word processing or game-playing. An operating system is a program that manages the computer and the various resources and devices connected to it, such as RAM (random access memory), hard drives, monitors, keyboards, printers, and modems, so that they may be used by other programs.
  • 4. A programmer uses another type of program called a text editor to write the new program in a special notation called a programming language. With the text editor, the programmer creates a text file, which is an ordered list of instructions, also called the program source file. The individual instructions that make up the program source file are called source code. At this point, a special applications program translates the source code into machine language, or object code — a format that the operating system will recognize as a proper program and be able to execute.
  • 5. Three types of applications programs translate from source code to object code: compilers, interpreters, and assemblers. The three operate differently and on different types of programming languages, but they serve the same purpose of translating from a programming language into machine language. A compiler translates text files written in a high-level programming language—such as Fortran, C, or Pascal— from the source code to the object code all at once
  • 6. Computer is composed of: 1. CPU (Central Processing Unit) – this is where all mathematical and logical forms of processing are done on data. 2. Memory – before a computer can do any productive work such as programming, it has to remember things such as data it needs to produce information.
  • 7. 3. Input and Output Device – data have to come into the computer by first entering them through input devices. Ex. Keyboard. After the computer executes a program to process data and produce information, this information remains in the memory. Part of the program has to show these results to the outside world. Output devices such as monitor screen and printers are used to display the results to the user.
  • 8. 4. Software – computers today come bundled with some software already installed in them. Operating System – performs for the programmer many tasks that used to be very difficult to program
  • 9. Two forms of Memory • Internal memory (RAM-Random Access Memory) – stores programs and data that are executed and processed by the computer. • Secondary memory – supplements RAM so those computers are able to permanently save programs and data that are not yet needed for execution and processing. Ex. Floppy disk, hard disk & etc.
  • 10. The following are standard Operating System functions. •Validating user identification every time the user uses the computer •Provides standard functions like editor, compilers and linkers •Manages files of the user by providing functions like Copy, Delete, Append
  • 11. The following are standard Operating System functions. •Retrieves data out of data files •Manages memory for the user by determining where in the memory a program is to be loaded every time it is called to run •Makes communication between the CPU, Memory and input/output devices transparent to the user or the user are unaware of these things while they are at work.
  • 12. High level languages – are programming languages that are closer to human language than to machine language. They are characterized to use common English words as their instructions. Aside from that, high level languages have the following characteristics:
  • 13. High level languages • Requires additional step of compilation or translation so that from high-level, another program that has exactly the same meaning and intended results in low-level or machine language can be generated and loaded into the computer and executed. • A compiled program is usually not as efficient as when the program was originally written in machine language or assembly. This is due to the fact that compilers add a lot of extra overheads in terms of memory and non-optimized logical translations.
  • 14. Each of these programming languages was designed to solve particular kinds of problems. • COBOL – Common Business Oriented Language was designed to solve business problems like accounting. • FORTRAN – Formula Translation is a high level language used for scientific and engineering applications. • Pascal and C – are general-purpose language. They are high-level language but they can be embedded with assembly language code effectively making these languages middle-level languages. C language is responsible in the implementation f major software including operating systems, compilers and software development tools.
  • 15. The Simplest computer programs perform three basic operations: • get the input from the keyboard • process the input data • display the results on the screen INPUT DATA PROCESS DATA DISPLAY ALL RESULTS
  • 16. The most basic form of a C program follows a very simple format: pre-processor directives main function { declarations statements }
  • 17. First Example /*Converts weight in pounds to kilograms*/ #include <stdio.h> #define kg_in_pound .454 int main() {float pounds, kilograms; /*declare both weights as float data type*/ printf(“Enter weight in pounds :”) scanf(“%f”,&pounds); kilograms = kg_in_pound * pounds; printf(“5.2f Pounds is equal %.2f kilograms,n”, pounds, kilograms); getch(); return(0); }