Computer Science 4 On and OFF. Homework What have we created.

Slides:



Advertisements
Similar presentations
Base Conversion COP Practice Problem  Print a String in reverse order:  For example, if we want to print “HELLO” backwards,  we first print:
Advertisements

Candidates should be able to:
Information Processing Session 5B Binary Arithmetic Slide
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Mathematics with Binary. Question  Below is a binary string  Which is the least significant bit (LSB)?  Which is the most significant bit (MSB)? 0.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Number Systems and Arithmetic
© Copyright 2000 Indiana University Board of Trustees Proficiency Quiz Study Guide Note: The following slides are provided courtesy of Dr. Bob Orr (Computer.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Q.
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Positional Notation 642 in base 10 positional notation is:
Working with 8-bit bytes and hexadecimal
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Number Bases and Representation. Denary Number System (Base 10) Our number system uses 10 digits (0-9) As you move from right to left each number is worth.
Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Binary A double zero educational presentation. Binary Basics Binary is the language computers use Only 1’s and 0’s can be found in Binary Very large numbers.
1 1 7-Dec-15 Binary Converting to and from decimal.
GCSE Computing: A451 Computer Systems & Programming Numbers Representation of Data in Computer Systems.
Candidates should be able to:
HEXADECIMAL NUMBERS.
Representing Characters in a Computer System Representation of Data in Computer Systems.
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
The Hexadecimal Number System Representation of Data in Computer Systems.
OBJECTIVES 1. Be able to recognise binary code 2. Be able to convert denary numbers into binary numbers 3. Be able to convert binary into denary numbers.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
Understanding Computers
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Lesson 2 – Denary to Binary
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Programmable Logic Controller
Understanding binary Understanding Computers.
Digital Design Chapter One Digital Systems and Binary Numbers
Number Systems and Codes
Different Numeral Systems
CHAPTER 1 : INTRODUCTION
Using the Windows Calculator for quick decimal to binary conversions
Representation of data in computer systems
The Binary Number System
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
Number System conversions
Learn what binary and denary mean.
Number Systems and Binary Arithmetic
Number Systems and Codes
Teaching KS3 Computing Session 2 Introduction Theory: Binary numbers
Everything that goes on under the hood of a computer is done in binary -- the language of 0s and 1s. If we have only two numbers, it's very easy to represent.
(return of the…) Data blast
Data Binary Conversion.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Objective 1.02 Understand Numbering Systems
Binary  Name: Class: .
The basics of any electronic device means either electricity is flowing or it is not i.e. a switch is either on or off Computers are electronic devices.
Learning Intention I will learn how computers store text.
Lesson 4: Introduction to Hexadecimal
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
LO1 – Understand Computer Hardware
GCSE COMPUTER SCIENCE Topic 3 - Data 3.1 Binary.
Chapter 3 - Binary Numbering System
Course Code 114 Introduction to Computer Science
Presentation transcript:

Computer Science 4 On and OFF

Homework What have we created.

Homework – post mortem Look at this: Stomach full?Feed Sleep Yes No

Homework – post mortem Look at this: Its not complete? Sleep Stomach below 20% full Sleep Yes No WakeFeed Yes Stomach comfortable? No VomitBetter? Yes

Homework – post mortem Take a flowchart... Does the algorithm flow? Are there any possibilities that it could crash or remain in a loop?

Quick question Which is the one you are most likely to program with? High level language Machine code

Learning Objectives All will be able to explain the significance of ON and OFF and explain what binary is Most will be able to convert denary to binary numbers and vice versa Some will be able to convert and understand hexadecimal numbers.

Simple concept Got it?

In the old days – computers were built slightly different Current signal Current signal Current signal Current signal Current signal Switches control circuits that control the signals around the machine. Switching on and off, on and off over and over again millions of times.

59c

Binary

Binary

Binary

Binary

Key words Denary (decimal numerical system) Binary (representing values using 1 and 0s) – used by all computers and digital devices.

Binary to denary Convert these:

Denary to Binary Convert these:

It can also represent text eractive.com/PlayGro und/Binary_Conversio n/Binary_to_Text.asp eractive.com/PlayGro und/Binary_Conversio n/Binary_to_Text.asp

Other - Hexadecimal Base 2 Base 10 Now = Base 16 (because we can represent a byte with 2 letters) Dec Hex ABCDEF

From Base 16 to Base 10 Dec Hex ABCDEF Convert 3C from base 16 to base C 3x16=4812x1= = 60 in base 10

From Base 16 to Base 10 Dec Hex ABCDEF Convert 5F from base 16 to base

From base 10 to Base 16 Dec Hex ABCDEF Convert 45 from base 10 to base /16= Remainder=

From base 10 to Base 16 Dec Hex ABCDEF Convert 235 from base 10 to base /16= Remainder=

Extension Dec Hex ABCDEF Convert 3B to binary 161

Extension even further