CSCI 6307 Foundation of Systems – Exercise (1)

Slides:



Advertisements
Similar presentations
CSCI 3328 Object Oriented Programming in C# Chapter 9: Classes and Objects: A Deeper Look 1 Xiang Lian The University of Texas – Pan American Edinburg,
Advertisements

2’s Complement Arithmetic (remember it’s a fixed length system)
Digital Circuits. Analog and Digital Signals Noise margins in Logic Circuits VMVM.
CSCI/CMPE 4341 Topic: Programming in Python Chapter 3: Control Structures (Part 1) – Exercises 1 Xiang Lian The University of Texas – Pan American Edinburg,
Number System and Codes
ASCII & Gray Codes.
1.6 Signed Binary Numbers.
Convert Decimal to Floating point number [IEEE 754]
Computer Systems 1 Fundamentals of Computing Negative Binary.
The University of Texas – Pan American
Binary Arithmetic & Data representation
COMPSCI 210 Semester Tutorial 1
CSCI 4333 Database Design and Implementation – Exercise (3) Xiang Lian The University of Texas – Pan American Edinburg, TX
Calculating Two’s Complement. The two's complement of a binary number is defined as the value obtained by subtracting the number from a large power of.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
CSCI 6307 Foundation of Systems – Exercise (2) Xiang Lian The University of Texas – Pan American Edinburg, TX
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
Positional Number Systems
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Converting From decimal to Binary & Hexadecimal to Binary
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Addition and Substraction
CSCI 4333 Database Design and Implementation – Exercise (5) Xiang Lian The University of Texas – Pan American Edinburg, TX
CSCI 6307 Foundation of Systems Review: Midterm Exam Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
Computer Programming 12 Mr. Jean February 11 th, 2014.
CSCI 3328 Object Oriented Programming in C# Chapter 8: LINQ and Generic Collections – Exercises 1 Xiang Lian The University of Texas – Pan American Edinburg,
CSCI 4333 Database Design and Implementation – Exercise (2) Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
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.
CSCI 4333 Database Design and Implementation – Exercise (1) Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
CSCI 6307 Foundation of Systems – Exercise (4) Xiang Lian The University of Texas – Pan American Edinburg, TX
CSCI/CMPE 4341 Topic: Programming in Python Chapter 7: Introduction to Object- Oriented Programming in Python – Exercises Xiang Lian The University of.
Binary Numbers Practice.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Binary Arithmetic James A. Rome Tennessee Governor's Academy August 2010.
CSCI 4333 Database Design and Implementation – Exercise (5)
COMPUTER ORGANIZATION
CSE 102 Introduction to Computer Engineering
CSCI 6315 Applied Database Systems – Exercise (1)
The University of Texas – Pan American
The University of Texas – Pan American
BCD = Binary Coded Decimal
The University of Texas – Pan American
CSCI 6315 Applied Database Systems – Exercise (3)
CSCI 4333 Database Design and Implementation – Exercise (3)
CSCI 3328 Object Oriented Programming in C# Review: Exam I
The University of Texas – Pan American
The University of Texas – Pan American
The University of Texas – Pan American
CSCI 3328 Object Oriented Programming in C# Review: Exam I
The University of Texas Rio Grande Valley
CSCI 6307 Foundation of Systems – Exercise (3)
CSCI 4333 Database Design and Implementation – Exercise (5)
The University of Texas – Pan American
Topic 1: Data Representation
The University of Texas – Pan American
CSCI 3328 Object Oriented Programming in C# Review: Final Exam
CSCI 4333 Database Design and Implementation – Exercise (4)
The University of Texas – Pan American
CSCI 6315 Applied Database Systems – Exercise (6)
CSCI 3328 Object Oriented Programming in C# Review: Final Exam
The University of Texas – Pan American
Understanding the Number Decimal to Binary Conversion
CSCI 6315 Applied Database Systems – Exercise (5)
CSCI 3328 Object Oriented Programming in C# Review: Exam II
CSCI 6307 Foundation of Systems – Exercise (5)
CSCI 4333 Database Design and Implementation – Exercise (1)
Presentation transcript:

CSCI 6307 Foundation of Systems – Exercise (1) Xiang Lian The University of Texas – Pan American Edinburg, TX 78539 lianx@utpa.edu

Conversion Between Decimal and Binary Numbers Please convert the following decimal numbers to binary numbers 23(10) 89(10) 100(10)

Conversion Between Decimal and Binary Numbers (cont'd) Please convert the following binary numbers (2's complement) to decimal numbers 1001(2) 11101(2) 01011(2) 11111(2)

Arithmetic Operations Please perform arithmetic operations in binary representations as follows. 23(10) + 89(10) 01011(2) + 01111(2) 1001(2) + 01011(2)

Negation Please compute the negation (represented by binary numbers) of the following decimal/binary numbers -10(10) 1101(2) 0110(2)

Negation Please obtain the binary number of the following decimal number using 8 bits 100 -67 -23