COP3502: Introduction to Computer Science Yashas Shankar Program Translation.

Slides:



Advertisements
Similar presentations
COMP 110 Introduction to Programming Tabitha Peck M.S. January 9, 2008 MWF 3-3:50 pm Philips 367.
Advertisements

IT Systems What Number? EN230-1 Justin Champion C208 –
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Information Processing
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Section 1.3 Prime numbers and fractions
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
1 Please switch off your mobile phones. 2 Prolog: The Initiation ET: Hey Alice! What is this on your desk? Alice: That’s a digital computer. ET: Digital.
1 CS/COE0447 Computer Organization & Assembly Language Pre-Chapter 2.
CONVERTING NUMBERS TO STANDARD FORM
COMP Introduction to Programming Yi Hong May 13, 2015.
1 Modified from  Modified from 1998 Morgan Kaufmann Publishers Chapter Three: Arithmetic for Computers citation and following credit line is included:
IT253: Computer Organization
ACOE2511 ACOE251/AEEC335 -Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
Mrs. Sanchez College Algebra This is a course designed to prepare students for their college entrance exam and for Algebra.
ACCELERATED ALGEBRA II HONORS Mrs. Sanchez
Welcome to Physics 1D03.
Catie Welsh January 10, 2011 MWF 1-1:50 pm Sitterson 014.
CPU Internal memory I/O interface circuit System bus
COP3502: Introduction to Computer Science Yashas Shankar.
Converting From decimal to Binary & Hexadecimal to Binary
COP3502: Introduction to Computer Science Yashas Shankar.
Department of Mathematics Computer and Information Science1 CS112: Survey of Computer Science Chapter One Review: Introduction, Chapter Two: Number Systems.
COP3502: Introduction to Computer Science Yashas Shankar Creating a webpage on FSU website.
CPIT 201 Introduction to Computing
Chapter 2 Data Representation.
ACOE2511 Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Number Bases and Representation. Denary Number System (Base 10) Our number system uses 10 digits (0-9) As you move from right to left each number is worth.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
MODULE –I NUMBER SYSTEM Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
1 Computational Vision CSCI 363, Fall 2012 Lecture 1 Introduction to Vision Science Course webpage:
COP3502: Introduction to Computer Science Yashas Shankar Midterm review.
1 Digital Logic Design Lecture 2 More Number Systems/Complements.
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
Numbering Systems and Conversion Understand How Computing Devices Work 1.
Starter Using the mini whiteboards record your answers: 1) Name 2 different Character Sets 2) Convert the Hex number 9E into denary 3) Convert the binary.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH 2 Number Systems CPIT 201 Introduction.
BIT 115: Introduction To Programming. 2 Today Midterm feedback Getting User Input.
COP3502: Introduction to Computer Science Yashas Shankar Program Translation.
Dr. Clincy Slide 1 CS Chapter 2 (Part 1 of 3) Dr. Clincy Professor of CS Ch 2 Appendix pages will not be on the exam – already covered this.
1 Chapter 1: Basic Concepts Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine 9/6/2003.
Lecturer: Santokh Singh
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
CSc 2310 Principles of Programming (Java)
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Introduction to Programming
Dr. Clincy Professor of CS
ACCOUNTING II Chapter 26 Assignment Sheet
Location in course textbook
Number Systems Lab session 1 Xuan Guo.
Quick overview of your schedule Spring-2017 SPAU 3343
University of Gujrat Department of Computer Science
Chapter 1 Number Systems & Conversions
Data Storage Introduction to computer, 2nd semester, 2010/2011
Dr. Clincy Professor of CS
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Topic 3: Data Hexadecimal.
Computer Science A Level
Objective 1.02 Understand Numbering Systems
Lesson 4: Introduction to Hexadecimal
COMS 161 Introduction to Computing
Presentation transcript:

COP3502: Introduction to Computer Science Yashas Shankar Program Translation

Second part of this course  We will spend 4 classes on Program Translation (chapter 6 from your AE textbook) and 3 classes on Hardware (chapter 7 from your AE textbook)  You need to have the textbook  You won’t have to do programming on program.cs.fsu.edu (but you still have to write some assembly programs on papers)  We will spend 4 classes on Ethics  Textbook is optional, but you may need it to do extra credits  We will also spend some times reviewing programming during this period

Extra credit  There will be 4 extra credits  2 for homework  2 for quizzes  For each extra credit, write a 5-page summary of one chapter from your “ethics” textbook

Alternative extra credit for homework  Do the homework that you want to have your score increase  Put your homework on your webpage  Write a 2-page summary of one chapter in Ethics textbook and put it on your webpage  15 points will come from your homework and 10 points from the summary. Grading policy on homework part will be tougher. Your homework has to be 100% correct or you will get at least 5 points off.

Alternative extra credit for quiz  Design a 10-question quiz related to the subject, in the quiz that you want to increase your score. Put a “correct” answer for each question.  Put your quiz & solution on your webpage  Your base score will be 8 points. If your quiz is good, you will get 9 or 10. If it is bad you will get 0-7 points

Extra credit submission  You have to state what each extra credit is for, e.g. for quiz#4, asg#12, etc.  Normal 5-page summary extra credits  Print out and hand them to me  Alternative extra credits  Put on your webpage (and notify me)  You can start submitting your extra credit when we start “ethics for computer science” part  You have to submit your extra credit before the final exam

Program translation  Today lecture  Binary representation & machine language

Binary representation & machine language  Human language  “hello my name is yashas”  Machine language  “ ………………0101”  Machine language has only 0 and 1

How machine language work? Human: add one and two Machine: Code for ADD

Binary representation  Machine only understands 0 and 1  We need to convert numbers that we understand to what machines understand (and vise versa)

How to adds two numbers in binary representation? What can you notice here?

Binary representation – power of two bits

Binary representation – power of two bits = = = 192

How to convert binary number to decimal number? = 179 = =179

How to convert decimal number to binary number? 198 = ? 198 = = = =

Hexadecimal representation DecimalBinaryHex DecimalBinaryHex A B C D E F

How to convert binary to hexadecimal (and vise versa)? = 12FC = = 2F = = 23C = = 277 2F = CA3 =

Hexadecimal representation  Computer doesn’t understand it  Save people a lot of writing  Easier for people to understand  0, 1, 2, …………, 9, A, B, C, D, E, F

Coverting Hex to Decimal and vise versta  Hex to Dec: Hex  Binary  Decimal  Dec to Hex: Dec  Binary  Hex

What you need to know (well)  How to convert binary to decimal  How to convert decimal to binary  How to convert binary to hexadecimal  How to convert hexadecimal to binary  How to add numbers in binary form