CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -

Slides:



Advertisements
Similar presentations
CS 1150 – Lab #4 – Logic Circuits TA – Sanjaya Wijeratne – Web Page -
Advertisements

CS 1150 – Lab #15 – Networking TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #13 – Artificial Intelligence TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #16A & 16B – HTML TA – Sanjaya Wijeratne – Web Page -
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
CS 1150 – Lab #16A & 16B – HTML TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #2 – Exploring Number Systems TA – Sanjaya Wijeratne – Web Page -
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
Registered Students: 1. Sign in, pick up a syllabus On the wait list to add? 1. Sign in 2. Add your name and address to the wait list 3. Please.
Introduction to Computer Programming I CSE 113
Computers and Society Lecture 1: administrative details and an introduction to the class Professor: Evan Korth New York University.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
Arithmetic & Logic Unit Does the calculations Everything else in the computer is there to service this unit Handles integers May handle floating point.
CS 232 Geometric Algorithms: Lecture 1 Shang-Hua Teng Department of Computer Science, Boston University.
CS 232 Geometric Algorithms: Lecture 1 Shang-Hua Teng Department of Computer Science, Boston University.
CS211 Data Structures Sami Rollins Fall 2004.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
CSCI 3 CH 1.6. REMINDER Remember to put your Student ID # on your homework Remember to put your Student ID # on your homework If you are not going to.
CS 1150 – Lab #2 – Exploring Number Systems TA – Sanjaya Wijeratne – Web Page -
CS 1150 – JavaScript Programming Lab TA – Sanjaya Wijeratne – Web Page -
3. Representing Integer Data
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
CS 1150 – JavaScript Programming Lab TA – Sanjaya Wijeratne – Web Page -
Welcome to CS 115! Introduction to Programming Fall 2015.
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
Representing Integer Data Book : Chapter ( Subject has no point !! ) A99ACF.
CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
Welcome to Physics 1403!!. Class Web Page! There, you can find: 1. Posted (MS Word format): Syllabus,
The Teacher CP4 Binary and all that… CP4 Revision.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
The Teacher CP4 Binary and all that… CP4 Revision.
Introduction to ECE 2401 Data Structure Fall 2005 Chapter 0 Chen, Chang-Sheng
Welcome to the MTLC MATH 115 Spring MTLC Information  Hours of Operation  Sunday:4:00pm – 10:00pm  Monday – Thursday: 8:00am – 10:00pm  Friday:8:00am.
CS 1150 – Lab #8 – Using Algorithms for Painting TA – Sanjaya Wijeratne – Web Page -
Computer Security coursework 1 Dr Alexei Vernitski.
Digital Logic Lecture 3 Binary Arithmetic By Zyad Dwekat The Hashemite University Computer Engineering Department.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
DAY 4: EXCEL CHAPTER 1 Sravanthi Lakkimsetty Aug 26,2015.
Data Structures and Algorithms in Java AlaaEddin 2012.
CS 1150 – Lab #12B – Databases TA – Sanjaya Wijeratne – Web Page -
1 CS 4396 Computer Networks Lab General Info. 2 Goal: This course aims at helping students get more insight into how the Internet works and gain hands.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
In decimal we are quite familiar with placing a “-” sign in front of a number to denote that it is negative The same is true for binary numbers a computer.
Computer Networks CNT5106C
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
1  For recitations  Amr Mahmoud  Office Hours: Monday Benedum Hall.
ICS 151 Digital Logic Design Spring 2004 Administrative Issues.
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
CS 360 Lab 1 Professor: Krzysztof Nowak TA: Mark Boady.
Advanced Binary b. describe and use two’s complement and sign and magnitude to represent negative integers; c. perform integer binary arithmetic, that.
Welcome to CS 115! Introduction to Programming Spring 2016.
CS 1150 – Lab #4 – Logic Circuits TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #8 – Using Algorithms for Painting
CSCI 198: Lecture 4: Data Representation
CSCI 161: Lecture 4: Data Representation
Single Sign On via GWeb Info System for Students
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1301! Principles of Programming I.
Accelerated Introduction to Computer Science
Early Childhood Special Education (ECSE) Student Training Guide
CS 232 Geometric Algorithms: Lecture 1
Presentation transcript:

CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -

TA Labs, Office Hours Laboratory Polices Lab Hours 2:30 PM - 4:20 PM, Monday at Room Oelman Hall TA Office Hours 4:45 PM - 5:45 PM, Monday at Room Russ Engineer Center By appointment – Please to Refer to CS 1150 Course Syllabus for Class and Laboratory Policies Zero tolerance policy for Academic Misconduct – All parties will get 0% marks CS Lab 3 – Representing Numbers2

Lab #3 Overview Learn How Negative Numbers are Represented in Computers Sign-Magnitude and Two’s Complement Representations Learn How Colors and Text are Represented in Computers Complete Section 3A – Ex 1, Section 3B – Ex 1 and Ex 3 Lab #3 Due Date - Feb 10, :55 AM 3CS Lab 3 – Representing Numbers

How to Submit Lab #3 Hard copy (Preferred) When you complete, hand it over to me Pilot Go to Pilot Course Page and Use Dropbox Submission Link to upload your files My Mailbox at CS Department Go to CS Department Front Desk and ask them to put your assignment in my mailbox. – Please write my name on your assignment (TA – CS 1150 – Sanjaya Wijeratne) 4CS Lab 3 – Representing Numbers

Sign-Magnitude Representation 5 Sign – Ordering of the number (Positive or Negative) Value – Magnitude Source – Chapter 3 by Chris Fickert CS Lab 3 – Representing Numbers

Two’s Complement 6 MSB Represents the Sign Negative – MSB is 1 Convert numbers to Two’s Complement Invert the bits and add 1 CS Lab 3 – Representing Numbers Source – Chapter 3 by Chris Fickert

Lab #3 – Section 3A 7 Run Negative Binary Numbers Applet CS Lab 3 – Representing Numbers

Lab #3 – Section 3A Ex 1 Question 9 8CS Lab 3 – Representing Numbers

Representing Text 9 ASCII Character Set 7 bits to represent a character + 1 check bit First 32 ASCII characters are special purposes – Eg Tab, Return Unicode Character Set 16 bits to represent a character Can represent every character in every language in the world 8 Bits = 1 Byte CS Lab 3 – Representing Numbers

Lab #3 – Section 3B Ex 1 Question 6 10 Think about the relationship you found between upper case letters and lower case letters in question 5 Assume you have to write an applet What would be the input to your applet program? What would be the output you show to the user? Now try to answer question #6 CS Lab 3 – Representing Numbers

Additional Help 11 Chapter 3 Slides by Mr. Chris Fickert discussed in Class Chapter 3 of Course Text Book – Data Representation CS Lab 3 – Representing Numbers

Questions ? If you have questions, please raise your hand, Colin or I will come to help you 12CS Lab 3 – Representing Numbers