Send
Close Add comments:
(status displays here)
Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Q1: Quiz#1: Base conversion
1. Q1: Manual base conversion
38: Quiz#1: Base conversion , Name: ___________________________
CS 340, Fall 2019, York College of Pennsylvania
41, 20 points, 2019-09-05 (at start of class)
2. Counting exercise/quiz
This work/quiz is to be done without any assistance from anyone or any electronic or other device.
Given a blank piece of paper, you are to do the following.
3. Exercise/quiz
On the left half of the page, write the numbers from
0 to
15, one per line. Do this in binary (left most column), hexadecimal (middle column), and decimal (rightmost column). Include the appropriate suffix for each number.
You will be given a decimal number in the range of
0 to
255. On the right part of the page, convert that number to base
2 and base
16 representation, including the appropriate suffix for each number. Clearly indicate each answer by drawing a box around just the answer for each part.
Number: (omitted)
4. Requirements
A functional requirement has to do with the functionality of what is asked.
A nonfunctional requirement does not have to do with the functionality of what is asked.
The method you use to convert the decimal number to hexadecimal and binary is a nonfunctional requirement.
5. Methods
There are many ways to do part 2 (part 1 also has many ways).
Memorize all 256 possible representations for base 2 and 16 (not recommended, but would work).
Use the repeated division algorithm.
Use explicit powers of 2 and/or 16.
Convert base 2/16 to/from base 16/2 using nibbles of the byte.
... and so on ...
You should find a method that works for you, since there are many methods that provide the same answer.
6. Testing situations
Common student question: "What do you mean by ...?".
Common teacher answer: "Read the question as stated and answer it as best you can.".
7. Scoring rubric
CS 340 - Q1 : Quiz#1: Base conversion
Your grade: _ / 20
[LATE] Late or redo penalty: _ / -20
Pre-rubric summary score: _ / 20
Note: The rubric system was created after this work was graded.
[CREDIT] Extra credit: _ / +4
Comments:
8. End of page