0% found this document useful (0 votes)
8 views

Programming Fundamentals

Uploaded by

shimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Programming Fundamentals

Uploaded by

shimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

FUNDAMENTALS OF

PROGRAMMING
Languages
 The Source of Communication between two entities is called
Languages.
 COMPUTER Languages
 3 Types
1. High Level Language
Easily understandable by human
2. Middle Level Language
Language understandable by both human
and Machine
3. Low Level Language
Language can be easily understandable
by Machine
What is Computer?

What is Program?

What is Programming Language?


COMPUTER HARDWARE COMPONENTS

Physical parts of computer such as Monitor,


keyboard, Computer Data Storage, hard
drive disk, mouse printers, CPU(graphic
cards, sound cards, memory, motherboard
and chips)
COMPUTER SOFTWARE COMPONENTS

It is a set of Machine-readable


instructions that directs a
computers processor to perform
specific operations
Program
Some instruction computer
follow to do our task, and this
sequence of instruction is
called Program.
Progarmming
The Process of
writing Program is
called Programming
Steps to become a successful
programmer
 Define the Problem
 Analyse the problem
 Expand the Analyse into an Algorithm: Step-by-step
procedure to leads the solution
 Test the algorithm for correctness
 Covert the algorithm into the program
 Document the program clearly
 Run the Program
 Debug the Program
Programming Languages

Javascript, Actionscript
Ruby, python
Java, C#, VB. NET
Objective- C
C++
C
Assembly Language
How old are you?
What is your Educational Background?

I Don’t Care………
So, who are you?

You are Currently a Computer


user, who loves to use
Computer.
And Definitely you are the user
of a Program.
You are going to be……….
The Creator of the Program
You will be the Programmer
How Compiler Works?
How interpreter Works?
Defining and analysing the problem

Before writing the program, we have to


define exactly what
Data we need to provide (input)
Information we want the program to
produce (output)
INPUT

Tamil = 60
English = 80
Math = 100
History = 70
OUTPUT

Average : 77.5
PROCESSING

Average = (Tamil+English+Math+History)/4
VARIABLE

A variable is any
characteristic, number, or
quantity that can be
measured or counted.
DATA TYPES

A data type defines the kind of data a


variable can store, like numbers, text, or
more complex structures.
Integers, floats, characters, strings and
booleans
Simple program
#include <stdio.h>
int main( )
{
int num1, num2, sum;
printf("Enter two integers: ");
scanf("%d %d", &num1, &num2);
printf("The sum of %d and %d is %d\n", num1, num2, sum);
return 0;
}

Output:
Enter two integers: 5 7
The sum of 5 and 7 is 12

You might also like