Introduction To Computer Basic and Programming
Introduction To Computer Basic and Programming
Presenter By----
Mr. Manab Kumar Das
Fundamental concept :
COMPUTER: Common Operating Machine Purposely used for Technological and Educational Research
What is COMPUTER?
What is program?
Programs are the set of instructions given by a programmer to the computer in
high level language and get a desired output. Any programming language uses
a compiler to translate the high level program into machine code before
executing any instructions.
Compute (A+B)*C
Ins-1: sum=A+B
Ins-2: multiplication=sum*C
What is a Compiler?
Compiler is a computer program that reads a program written in one language,
which is called the source language, and translates it in to another language,
which is called the target language. Most often, the source language is a high
level language and the target language is a low level language or machine.
How a Computer Solves a Problem through any programming Language?
Security Due to data hiding property OOPs is On other hand POP is less secure as
more secure than POP. compare to OOPs.
Complexity Here new data objects can be created Here data adding process is not simple I
easily from existing objects so program POP.
modification is very easy.
Example-1 : How execute a program in procedural language (C) and Object Oriented Programming
#include <h>
void main() stdio.
{
int length, width, area;
printf("Enter length of two side\n: ");
scanf("%d%d", &length,&width);
area = a * b;
printf("\nArea of square is %d\n", area);
}
--------------------------------------------------------------------------------------------------
//import.java.lang
class AreaOfRectangle2
{
public static void main (String[] args)
{
int length = 5;
int width = 10;
int area = length*width;
System.out.println("Area of Rectangle is:"+area);
}
}
Program editor,
where we write
down the
source code
Output Screen
What is Operating System?
An operating system acts as an intermediary between the user of a
computer and computer hardware. The purpose of an operating
system is to provide an environment in which a user can execute
programs in a convenient and efficient manner. An operating system
is software that manages computer hardware.
Function of Operating System
1. System Performance
2. Memory Management
3. Resource Allocation
4. Processor Management
5. File Management
6. Resource and Information Searing
What is Software?
Software is a set of programs, which is designed to perform a well-defined
function. Where as A program is a sequence of instructions written to solve a
particular problem.