What are these?. Binary Clock ICE3M May 7, 2007 Ms. Nelson.

Slides:



Advertisements
Similar presentations
Data Types in Java Data is the information that a program has to work with. Data is of different types. The type of a piece of data tells Java what can.
Advertisements

©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Basic C Programming Data Types and Arithmetic Operations 01/30/15.
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
24 Hour Clock Grade 6 Math.
The Binary Number System 6 th grade math. What is binary? The number system we use is decimal, based on the number 10 The binary system is instead based.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
Bits and Bytes.
Working with Files CSC 161: The Art of Programming Prof. Henry Kautz 11/9/2009.
Data vs. Information OUTPUTOUTPUT Information Data PROCESSPROCESS INPUTINPUT There are 10 types of people in this world those who read binary and those.
Newport Math Club Copyright © 2009 by Newport Math Club.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
CS Binary Representation of Information Detecting Voltage Levels Why not 10 levels? Would be unreliable Not enough difference between states On/Off.
Chapter 2 Computer Hardware
Binary Code: The Language of Computers!
Math Review Do you remember, from math class, how exponentiation operations are typically represented? anan is known as the "base" a is known as the "base"
Binary! Why do computers use binary? Easy to detect the state of a switch – they’re either on or off! Using another base makes.
CSCI N201 Programming Concepts and Database 3 – Essence of Computing Lingma Acheson Department of Computer and Information Science, IUPUI.
Number Bases In today’s lesson we will look at: what we mean by a number base how ordinary numbers work a number system called binary why binary is useful.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
The Hands of Time The long hand is the minute hand.
Xmania!.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
Visualizing Decimal and Binary
Review From Yesterday What is the base unit for length in the Metric System? What is the base unit for mass in the Metric System? What is the base unit.
Variables 1. What is a variable? Something whose value can change over time This value can change more than once over the time period (no limit!) Example:
Grade level: 2 nd grade Content area: Telling time Description: Students will learn how to read a clock. Telling Time.
There are only 10 people in the world. Those who understand binary and those you don’t.
Lecture 6 Excess Notation. Excess 8 notation indicates that the value for zero is the bit pattern for 8, that is 1000 Excess 8 notation indicates that.
GCSE Computing#BristolMet Session Objectives#8 MUST add two 8-bit binary integers SHOULD explain overflow errors COULD provide solutions to limit overflow.
Know what a computer is used for Understand the difference between hardware and software Be able to describe the way that data is stored in a computer.
Binary Numbers Computer Science 2. Why Binary Numbers? Early computers were analog –Numbers were stored as an intensity –E.g. 2.7 volts was 27, 3.4 volts.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Numerical formats What’s the main idea? Want to represent numbers (eg: 45, -12, ) using only bits. We’ve already seen (or you can read in the book)
Telling Time to the Hour. The Hands of Time The long hand is the minute hand. The short hand is the hour hand.
Parts of the Clock Click on the minute hand. Click on the clock’s face.
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.
Telling Time can be Fun!. First Goal Learn the unique parts of a clock!
Number systems Visualizing Decimal and Binary. We count in base 10 because people started by counting on their fingers Base 10 is a number system that.
2.3 Output Formatting. Outputting Format Specify the number of spaces, “c”, used to print an integer value with specifier %cd, e.g., %3d, %4d. E.g. printf.
Binary Numbers. Decimal vs Binary = 1001 = 101 = 10 1 = on = 0 = off = On and off.
Lesson 2 Human Computer AIM:
Creating logic gates with Minecraft
Binary Number System Lesson objectives:
Introduction to Computers
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.
Tools of Web Development 1: Module A: Numbering Systems
Number Systems.
COUNTING IN BINARY Binary weightings 0 x x x x 8
Visualizing Decimal and Binary
Essence of Computation
Number and String Operations
Extension: LCM 3 Three lights, red, yellow and green, are controlled by switches.  At the start, the three lights are switched on simultaneously.  The.
Telling Time to the Hour
Expanded Form = 3, (3 x 1,000) + (5 x 100)
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.
Introduction to Binary
Binary Numbers? Foley SED 514 Section /2/2019.
Data Binary Conversion.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Binary Numbers The Binary number system is derived from Base 2. In base 2 there are only 2 numerical options 0 and 1. The computer sees these as Off.
Why computers use binary
How to Represent Numbers on a Computer
COUNTING IN BINARY Binary weightings 0 x x x x 8
Information Technology Department
How to Tell Time Hannah Fleming.
A task setting Powerpoint Pack
Presentation transcript:

What are these?

Binary Clock ICE3M May 7, 2007 Ms. Nelson

Telling Time in Binary 1 or 0 2 or 0 4 or 0 8 or 0 16 or 0 32 or = 45 seconds! Similarly, the clock is currently showing = 12 for the hour, and = 7 for the minutes Therefore the current time is 12:07 and 45 seconds.

Computers and Storage  Everything inside your computer is boiled down to tiny on/off switches  Traditionally, we use 0 for off and 1 for on  Ever noticed this on on/off switches?  Numbers are stored this way too

Counting with 0’s and 1’s  Pretend we only had 0’s and 1’s to work with, and not 2, 3, 4, 5, 6, 7, 8, 9.  How many numbers can you come up with?  0, 1, 10, 11 (but not 12, 13, 14… have to skip all the way up to 99)  100, 101, 110, 111  1000…. can you continue this pattern?

Matching Up

The Power of the Powers of 2  1 (decimal) ≈ 1 (binary) ≈ 2 0  10 (decimal) ≈ 2 (binary) ≈ 2 1  100 (decimal) ≈ 4 (binary) ≈ 2 2  1000 (decimal) ≈ 8 (binary) ≈ 2 3  Any number can be expressed as a sum of powers of 2  e.g. 13 = = ≈ 1101 (bin)  This is your shortcut!

Back to the Time  It’s now 2:26 and 34 seconds  How do we represent that?  2 becomes 10  26 becomes  34 becomes  The current time is:

Your Task…  Write a program in Turing that…  Gets the current time from the system  Look in the command reference for “Time”  Prints it out to the console in binary format  e.g., 2:26:34 prints out as:  10    Our next project will involve LED lights