HW1_key - Homework#1 A Solution Reading Sections 1.1 1.2...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Homework #1: A Solution Reading: Sections 1.1, 1.2, and 7.2 If you have a calculator that does conversion between bases, I suggest that you still do the homework by hand and use the calculator to check your answers. In the exams (as well as out in the real world), the conversions you are required to do are pretty simple and are done faster by hand than by calculator. It will serve you better in the long run if you get used to doing it by hand so the simple ones become almost automatic during a test or while coding and debugging a program. HW1-1. [3 points] Review the Course Description (Syllabus, Policies, and Description) document on Carmen. a. What formats are acceptable for HW and lab submissions? For homework, any of the following formats are acceptable: MS Word, PDF, or text format. Labs must be submitted as text formatted source (*.s) files. b. What is the course policy on late submissions? No late homeworks or labs will be accepted. HW1-2. [5 points] We understand what the number 110.011 (decimal) represents. What value does 110.011 (binary) represent? (Give your answer in decimal notation.) Hint: The formula for converting a number in any base to decimal was given and it generalizes correctly for solving this problem. 110.011 (binary) = 1*2 2 + 1*2 1 + 0*2 0 + 0*2-1 + 1*2-2 + 1*2-3 = 4 + 2 + .25 + .125 = 6.375 HW1-3. [25 points; 5 each] What is 145 (decimal): a. in base 2? 10010001 b. in octal? 221 c. in hexadecimal? 91 d. in base 20? 75 (7*20 1 + 5*20 = 140 + 5 ) e. written using BCD?...
View Full Document

This note was uploaded on 02/27/2012 for the course CSE 360 taught by Professor Sam during the Winter '11 term at Ohio State.

Page1 / 6

HW1_key - Homework#1 A Solution Reading Sections 1.1 1.2...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online