# assign1 - COP 3502 Summer 2002 Assignment#1 Part 1 The...

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

Part 1 The questions in this part of the assignment are based upon the binary number system. This part of the assignment must be submitted on paper. Make sure that you include your name, student id number, lab section number, and date in the following format at the top of your paper: 1. Convert each of the following binary numbers into their decimal equivalent: a. 11101101 b. 100001 c. 1111101 d. 1111000011 2. Convert each of the following decimal numbers into their binary equivalent: a. 110 b. 25 c. 257 d. 138 3. Answer the following questions about logarithms: a. Compute log 2 256 b. Compute log 3 243 c. Solve for x in this equation: log x 512 = 3 d. Solve for x in this equation: log 5 x = 4 e. Given a decimal number x , describe an algorithm that makes use of the log function to determine the number of digits in x ’s binary representation. Assignment #1 - 1 COP 3502 – Summer 2002 – Assignment #1 Lab Number: Assignment Number: Name: Student ID: Date:

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

View Full Document
Part 2 In this part of the assignment, you will write an algorithm to solve the following problem and you will implement the algorithm in the C programming language.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern