Basic of Programming Language Skill Area 304.1. Computer System Computer Program Programming Language Programmer Translators.

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
INTRODUCTION OF COMPUTER
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Course: Introduction to Computers
Assembler Compiler Interpreter ASSEMBLER To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language.
Systems Software Operating Systems.
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
ENGR. SHOAIB ASLAM Computer Programming I Lecture 02.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Topics Introduction Hardware and Software How Computers Store Data
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
CISC105 General Computer Science Class 1 – 6/5/2006.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
CHAPTER 1: Introduction to Computers and Programming CSEB113 PRINCIPLES of PROGRAMMING CSEB134 PROGRAMMING I by Badariah Solemon 1BS (May 2012)
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 1 An Overview of Computers and Programming Languages.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Introduction to Computer Programming using Fortran 77.
What is a Computer An electronic, digital device that stores and processes information. A machine that accepts input, processes it according to specified.
Programming Languages
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
Chapter 1 Introduction 2nd Semester H
Java Programming: From the Ground Up
Why don’t programmers have to program in machine code?
Chapter 1: An Overview of Computers and Programming Languages
Operating System Interface between a user and the computer hardware
CSCI-235 Micro-Computer Applications
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
TRANSLATORS AND IDEs Key Revision Points.
Assembler, Compiler, Interpreter
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Overview of Computer Architecture and Organization
Assembler, Compiler, Interpreter
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
ICT Programming Lesson 1:
Understand the interaction between computer hardware and software
ICS103 Programming in C 1: Overview of Computers And Programming
Programming Logic and Design Eighth Edition
Presentation transcript:

Basic of Programming Language Skill Area 304.1

Computer System Computer Program Programming Language Programmer Translators

Computer System

Input Devices Processing (CPU/Memory) Output Devices Storage Devices

Also called CPU, processor or microprocessor “Brains” of the computer Performs all computer operations

Where all the input data and results stored o Random Access Memory (RAM) o Read Only Memory (ROM)

RAM is volatile = data are lost when computer is turned off Read current info and also write new info Very important in determining capabilities of the computer system Stores work when they are in use. o Word Document o Spreadsheet o Power Point

ROM is non-volatile = permanent and are not affected where computer is turned lost Can read info Stored in ROM Can not write new info into ROM Used for “internal workings” of computer –Boot Software

Computer Program

A program or computer program is a set of instructions that tells a computer how to perform a particular task. Programs are developed using programming language. Computer programming is the art of developing computer programs. Programming is rather like a recipe; describe the ingredients (the data) and the sequence of steps (the process)

A program is developed to help the activity of humans easier Examples: –Banks –Communication –Business –Medical Science –Education –Travel and Ticketing –Daily Life –etc

A programming language is a vocabulary and set of grammatical rules for instructing a computer to perform specific tasks Programming language provides a set of rules to develop a program.

A Programmer is a person who writes a computer program. The job of programmer is to convert a solution to a problem into set of instructions understood by a computer. The programmer should test the program to see whether it is working. Corrective actions should be taken if not working properly.

When we want to write a program to solve a problem, the hardest is to know how to start, we also need to work out the steps to take for reaching the solution, we also need to be sure that the program works without errors, according to the specifications.

Three good reasons for learning programming: –Programming helps you understand computers. –Writing a few simple programs increases your confidence level. –Learning programming lets you find out quickly whether you like programming and whether you have the analytical turn of mind programmers need.

Three types of Programming Language –Machine Language –Assembly Language –High-Level Language

The lowest and most elementary level of Programming Language. 1 st type of PL to be developed. Represented inside the computer by a String of binary digits (bits) 0 and 1. The symbol 0 stands for the absence of Electric Pulse and 1 for the presence of an electric pulse

Their order tells the computer what to do. All other kinds of software need to be translated into machine code before they can be used.

Symbolic instruction what humans can understand Form of alphanumeric symbols known as mnemonic codes. Can have maximum up to 5 letter combination E.g. –ADD for addition –SUB for subtraction

Maps directly into machine language Designed for a family of microprocessors MOV AX, BX ADD AX, 5A INC BX JMP Compile

High-Level language is basically symbolic languages that use English words and/or mathematical symbols rather than mnemonic codes. Each instruction in the high-level language is translated into many machine language instructions.

To enable people (programmer) to write program easily and in their own native language environment (English). Examples: –C, C++, Java, VB, HTML

Languages have been developed for general purpose and specific purpose Types of High-Level Languages: –Algebraic Formula-Type Processing –Business Data Processing –String and List Processing –Object Oriented Programming Language (OOP) –Visual Programming Language

Translators

Types of Programming Language Translators: –Assembler –Interpreter –Compiler

To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language equivalents.

A computer program that executes instructions written in a programming language and do not produces the executable file. Interpreter: o Checks the keywords of a program o Taking one instruction at a time and convert it into machine language before taking upon the next instruction. Examples of interpreter based language: o PHP, JavaScript, BASIC

A program that changes source code (high- level language) to object code which that can be executed by a machine. Compiler: o Checks syntax of program o Checks at a time all the program Primary reason for compiling source code is to create an executable program Examples of compiler based language: C, C++, JAVA

Executables: Files that actually do something by carrying out a set of instructions. E.g.,.exe files in Windows Once the executable is there, it can be called by the user to process the given inputs to a program and produce the desired outputs.

Computer System (CPU, Main Memory, Keyboard, Mouse, etc) Computer Program a set of instructions that tells a computer how to perform a particular task. Programming Language a vocabulary and set of grammatical rules for instructing a computer to perform specific tasks Programmer - a person who writes a computer program Types of PL Machine Language Assembly Language High-Level Language Translators Interpreter Assembler Compiler