 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user.

Slides:



Advertisements
Similar presentations
Computer Science Basics CS 216 Fall Operating Systems interface to the hardware for the user and programs The two operating systems that you are.
Advertisements

1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How do other number systems work (binary, octal and.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Table 1. Software Hierarchy Levels.. Essential Tools An assembler is a program that converts source-code programs into a machine language (object file).
Topic 1: Introduction to Computers and Programming
Computer Systems 1 Fundamentals of Computing
Number Systems & Logic Gates Day 1
Binary Numbers.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Numbering systems.
10-2 What is the difference between machine code and C? Why use C? How do execution of C and Matlab programs differ? What are three methods of expressing.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
Why does it matter how data is stored on a computer? Example: Perform each of the following calculations in your head. a = 4/3 b = a – 1 c = 3*b e = 1.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
Introduction to Computer Systems and the Java Programming Language.
Evolution and History of Programming Languages. Machine languages Assembly languages Higher-level languages To build programs, people use languages that.
Evolution and History of Programming Languages. Software Programming Language.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
What is Programming? A program is a list of instructions that is executed by a computer to accomplish a particular task. Creating those instructions is.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Do it now activity Can you work out what the missing symbols are and work out the order they should be in if the table shows smallest to largest KB kilobyte.
Data Representation Bits, Bytes, Binary, Hexadecimal.
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Thursday 8 th October, 2015 Information Technology Fundamentals of Hardware & Software.
Computer Math CPS120: Binary Representations. Binary computers have storage units called binary digits or bits: Low Voltage = 0 High Voltage = 1 all bits.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
2.1.4 Data Representation Units.
* Numeral Systems: A writing method for expressing numbers is called a “Numeral System". In the most common numeral system, we write numbers with combinations.
Programming Languages and the Programming Process lesson 28.
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Binary Numbers. Base 10 and Base 2  We normally work with numbers in base 10.  In base 10 we use the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.  Everything.
Number systems. Binary system. Bits and bytes. Modern computers “speak” in a digital language composed of 2 digits. The machine language of modern computers.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Understanding binary Understanding Computers.
Computer basics.
Why don’t programmers have to program in machine code?
© 2003, Cisco Systems, Inc. All rights reserved.
Lesson Objectives Aims You should be able to:
INFS 211: Introduction to Information Technology
Consider this number: , Ones (7 ones) Tens (no tens)
Assembly Language (CSW 353)
3.1 Denary, Binary and Hexadecimal Number Systems
BINARY CODE.
Memory Parts of a computer
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Number System conversions
इंट्रस्टिंग बनने के लिए आपको इंट्रस्टेड होना पड़ेगा।
History of Binary A Presentation By: Yasmine Dabbah, Daniel Mashal, Gracee Kim, and Chance Ward.
How do computers work? Storage.
Computer Electronic device Accepts data - input
Computers & Programming Languages
Binary and Hexadecimal Numbers
Chapter Four Data Representation in Computers By Bezawit E.
Numeral systems (radix)
ICT Programming Lesson 1:
Binary System.
Information Technology Department
LO1 – Understand Computer Hardware
Beyond Base 10: Non-decimal Based Number Systems
Networks & I/O Devices.
Presentation transcript:

 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user command a computer to work on the algorithm which a user has written to get an output.  Two type of computer language  Low -level languages  High -level languages

 Program : set of finite instructions that perform specific task.  The program usually written in one of programming language then install in computer device then will use by user.  Computer device don’t know any language except the machine language.  Machine language its 0 and 1 ( binary code)  Applications and programs translate from which language its written to the machine language by using suitable tools such as (interpreter, compiler, assembler.. ).

 To build programs, people use languages that are similar to human language. The results are translated into machine code, which computers understand. Machine language Machine languages (first-generation languages) are the most basic type of computer languages, consisting of strings of numbers (0,1) the computer's hardware can understand. Different types of hardware use different machine code. For example, IBM computers use different machine language than Apple computers.

Assembly languages (second-generation languages) are only very easier to work with machine languages. To create programs in assembly language, developers use cryptic English-like phrases to represent strings of numbers. The code is then translated into object code ( machine language code ), using a translator called an assembler.

Assembler Assembly code Object code

 Higher-level languages are more powerful than assembly language and allow the programmer to work in a more English-like environment ( more flexible).  Higher-level programming languages are divided into three "generations," each more powerful than the last: Third-generation languages Fourth-generation languages Fifth-generation languages

 Bit ( binary digit ) : is the basic and smallest unit of information in every modern computer system.  Nibble : A four bit binary number.  Byte (short for binary term): A unit of storage for a single character, typically an eight bit (2 nibble) binary number.  1 bit = a single digit, either 1 or 0  8 bits = 1 byte, a combination of 1's and 0's  1024 Bytes = 1 KB (kilobyte)  1024 Kilobytes = 1 MB (megabyte)  1024 Megabytes = 1 GB (gigabyte)

 When we count upward through the positive integers using decimal, we start with a 0 in the one's place and increment that value until we reach the upper limit of a single digit, i.e., 9. At that point, we've run out of the "symbols" we use to count, and we need to increment the next digit, the ten's place. We then reset the one's place to zero, and start the cycle again.

Figure : Counting in Decimal  The only difference is that decimal uses ten symbols ( 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 ) while binary only uses two symbols ( 0 and 1 ).

 To convert the decimal number to binary number we will dividing the original integer by 2, this is call ( remainder method )  For example: We now apply the remainder method to convert (23) 10 to base 2. As shown, the integer is initially divided by 2, which leaves a remainder of 0 or 1

Figure : A conversion from a base 10 integer to a base 2 integer using the remainder method.

 We can check the result by converting it from base 2 back to base 10 using the polynomial method: (10111) 2 = 1 * * * * *2 0 = = (23) 10

 Convert the following decimal number to binary number

 Convert the following binary number to decimal number

Thank You Question..?