"); } else { $content_type = "text/html"; header("Content-type: text/html; charset=utf-8"); } ?> CS-343 Assignment 1

CS-343 Assignment 1

Reading Assignment

Read Measurement And Units Of Measure (PDF) before answering the questions below.

Questions

  1. A car dives the first mile of a two-mile course at 30 MPH. How fast must it go during the second mile to average 60 MPH for the entire course? Hint: It takes two minutes to go two miles at 60 MPH.
  2. A disk spins at 12,000 RPM. How many revolutions per second is that?
  3. How many seconds per revolution is your answer to the previous question? Write this answer as a proper decimal number with no prefix and no exponent. For example, 3.456 seconds.
  4. How many milliseconds is your answer to the previous question?
  5. And how many microseconds is that?
  6. Use the definition of a logarithm to explain why log2(n) is always an integer when n is an integral power of 2.
  7. When computing a student’s GPA, you multiply a number representing each letter grade (12 for A or A+; 11 for A-; 10 for B+; etc.) times the number of credits for which the student received that letter grade.

    Calculating a GPA is an example of computing a weighted average. What are the weights, the numbers representing the letter grades, or the number of credits?

  8. What is the average CPI of a program that uses 2 clock cycles for 30% of the instructions, 3 clock cycles for 20% of the instructions, and 4 clock cycles for all the others?
  9. I’m thinking of a letter of the alphabet. How many yes/no questions do you have to ask me to find out what letter it is?
  10. What is the period of a 2 GHz clock signal?

Submit

Type your name and your answers into the body of an email message (no attachments!), and send it to me: Christopher.Vickeryatqc.cuny.edu by midnight of the due date.

The Subject line of all email you send me this semester must start, “CS-343.’ Your email message for this assignment must be: “CS-343 Assignment 1.”