Binary Number System Lesson objectives 1 Identify binary
Binary Number System Lesson objectives: 1. Identify binary numbers and what they represent. 2. Recognize that computers process data based on binary numbers: 0’s and 1’s. 3. Describe how to count in binary numbers. 4. Explain how to convert decimal and binary numbers
Video: Journey Inside • Watch the 5 minute video
Why does the computer use 0’s and 1’s to store data? Round robin activity
What is Binary Code? • Computers use a special code of their own to express the digital information they process. • It's called the binary code because it consists of only two symbols— 0 s and 1 s. (The "bi" in "binary" means two. )
Ever heard of Morse Code? • Watch the short video.
What is Morse code? • Morse code is a method of transmitting text information by using a series of on – off tones, lights or clicks. • Each character is represented by a unique sequence of dots and dashes.
The J-38, straight key This was manufactured in large quantities during world war 2
The characters available
How to convert from Decimal to binary: • Divide by 2 and write the remainder.
The whole picture
Solve the worksheet using Rally Coach • Show your working!
Answers 1. 100001001 2. 1011001 3. 101101001 4. 101010 5. 10010 6. 11001 7. 10101101 8. 1111 9. 101000111 10. 101010
Write a program in Java to convert from Dec to Bin. • Using the mod operator (%) you can get the remainder. • Store it in a integer type variable. • Add it to a string type variable by using concatenation.
String type data type • This is how you declare a string variable. • String my. Bin. Number=“”; • String my. Address=“ 24 Shouk, Mirdiff” • my. Address=my. Address + ” UAE”
- Slides: 14