AP CSP: Sending Numbers

Slides:



Advertisements
Similar presentations
Data Transfer Chapter 10. File conversion When we upgrade a file after a big time of use, usually it is necessary to change the format of the file. For.
Advertisements

Representing numeric data with bits
S A B D C T = 0 S gets message from above and sends messages to A, C and D S.
Assignment 4 Sample problems. Convert the following decimal numbers to binary
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.
Decimal to Binary Conversion Press any key to continue…
Decimal Review ,00010,0001, Decimal ~ Base 10 number system 10 different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8,
Getting started.
Let’s estimate when we multiply decimal fractions! This is one way to check our products.
NUMBER SYSTEM Decimal System Binary System. We use two digits in this system (0,1) just like the existing system of computers.. And write the number in.
UNIT 2 LESSON 3 CS PRINCIPLES. OBJECTIVES Students will be able to: Construct a binary communication protocol for playing Battleship using the Internet.
Operations with Decimals
Decimal to Binary Conversion Press any key to continue…
Binary Numbers Practice.
AP CSP: Sending Binary Messages
AP CSP: Pixelation – B&W/Color Images
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: Lossy Compression and File Formats
AP CSP: Creating Functions & Top-Down Design
AP CSP: The Need for Addressing
AP CSP: Encoding and Sending Formatted Text
Day 5- Sending Numbers Code.org- Unit 1, Lesson 6.
Sending Binary Messages
Vocabulary byte - The technical term for 8 bits of data.
Sending Binary Messages
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
BIG IDEA Percent / / out of 100.
Lesson 1-10 AP Computer Science Principles
AP CSP: Number Systems Day 4: 8/30/16.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: Sending Binary Messages with the Internet Simulator
Lesson 2-3 AP Computer Science Principles
AP CSP: Binary Number System
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
Routers and Redundancy
THE NEED FOR ADDRESSING
Today’s lesson What: Scientific Notation Why:
Lesson 2-9 AP Computer Science Principles
Binary Positional Notation
Functions and Top-Down Design
SENDING BINARY MESSAGES
# of Bits is powers of 2 - not conversions
UNIT 1 – LESSON 6 SENDING NUMBERS.
Binary Lesson 1 Nybbles.
COUNTING IN BINARY Binary weightings 0 x x x x 8
Sending Bits on the Internet
AP CSP: Making a reliable Internet & DNS
Review Messages over the internet are sent using binary
Binary Lesson 1 Nybbles.
Binary Lesson 1 Nybbles.
SENDING BINARY MESSAGES WITH THE INTERNET SIMULATOR
Day 5- Sending Numbers Code.org- Unit 1, Lesson 6.
Data Representation Conversion 05/12/2018.
Binary Data representation
Sending Binary Messages
Day 4- Number Systems & Binary Numbers
Encoding and Sending Formatted Text
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Binary  Name: Class: .
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
In the grid below,
Functions and Top-Down Design
COUNTING IN BINARY Binary weightings 0 x x x x 8
Day 5- Sending Numbers Code.org- Unit 1, Lesson 6.
Dividing Decimals Guided Notes
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
Lecture 37 – Practice Exercises 9
Shift the 3 two digits to the left.
Lecture 37 – Practice Exercises 9
Presentation transcript:

AP CSP: Sending Numbers September 2, 2016

How can we send messages in Binary? We now understand how the binary system works and how to convert between decimal and binary. Now think about some other questions. How many more numbers can be represented with 4 bits as opposed to 3? What is the highest value I can count to using 4 bits? What about 5? Since we know binary we can now send information across the internet. Today you and a partner will invent a communication protocol that allows you to send a list of numbers to represent a drawing.

Develop a Number Sending Protocol Given a grid to draw a particular pattern, figure out a protocol to send the coordinates of that pattern so the receiver could draw it out on the grid. Think about: What order will the points be sent in? How does the recipient know when one number ends and the next begins? How many bits do you need to represent the numbers you need to represent the drawing, or coordinates? How do you know in which direction to draw your lines. You want to be efficient but also support different kinds (sizes) of images. You can only send a single message through the Internet Simulator to describe the whole image.

Wrap-Up/Homework Now draw the image to the right Answer these questions: Think of a protocol that allows the user to send a calendar date (mm/dd). What is the minimum number of bits necessary? Develop a protocol that allows the user to send a time (use 24hr military time hh:mm:ss). What is the minimum number of bits necessary?