Difference between revisions of "CSC103 Homework 1 Solution 2013"
(Created page with "--~~~~ ---- <tanbox> This homework assignment was ''' due''' on '''Tuesda Sept. 17th, at 9:00 a.m'''. </tanbox> <br /> <br /> =Question #1= Count in binary and write...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<tanbox> | <tanbox> | ||
− | This homework assignment was ''' due''' on '''Tuesda Sept. 17th, at 9:00 a.m'''. | + | This solution page is for [[CSC103 Homework 1 2013 | the homework assignment]] that was ''' due''' on '''Tuesda Sept. 17th, at 9:00 a.m'''. |
</tanbox> | </tanbox> | ||
Line 129: | Line 129: | ||
0 0 1 1 | 0 0 1 1 | ||
0 1 0 0 | 0 1 0 0 | ||
− | 0 1 1 | + | 0 1 1 0 |
1 0 0 1 | 1 0 0 1 | ||
1 0 1 1 | 1 0 1 1 | ||
Line 139: | Line 139: | ||
F F T T | F F T T | ||
F T F F | F T F F | ||
− | F T T | + | F T T F |
T F F T | T F F T | ||
T F T T | T F T T | ||
Line 147: | Line 147: | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
<br /> | <br /> | ||
<br /> | <br /> | ||
+ | <onlydft> | ||
+ | 1 point for each exercise. Question 1 counts 2. Total # points is 5. | ||
+ | Divide student total by 5 multiply by 4 and round to nearest Smith grade. | ||
+ | 5.0 --> 4.00 A | ||
+ | 4.9 --> 3.92 | ||
+ | 4.8 --> 3.84 | ||
+ | 4.7 --> 3.76 | ||
+ | 4.6 --> 3.68 | ||
+ | 4.5 --> 3.60 | ||
+ | 4.4 --> 3.52 | ||
+ | 4.3 --> 3.44 | ||
+ | 4.2 --> 3.36 | ||
+ | 4.1 --> 3.28 | ||
+ | 4.0 --> 3.20 | ||
+ | 3.9 --> 3.12 | ||
+ | 3.8 --> 3.04 B | ||
+ | 3.7 --> 2.96 | ||
+ | 3.6 --> 2.88 | ||
+ | 3.5 --> 2.80 | ||
+ | 3.4 --> 2.72 | ||
+ | 3.3 --> 2.64 | ||
+ | 3.2 --> 2.56 | ||
+ | 3.1 --> 2.48 | ||
+ | 3.0 --> 2.40 | ||
+ | 2.9 --> 2.32 | ||
+ | 2.8 --> 2.24 | ||
+ | 2.7 --> 2.16 | ||
+ | 2.6 --> 2.08 | ||
+ | 2.5 --> 2.00 C | ||
+ | </onlydft> | ||
[[Category:CSC103]][[Category:Homework]] | [[Category:CSC103]][[Category:Homework]] |
Latest revision as of 09:34, 21 September 2013
--D. Thiebaut (talk) 09:19, 21 September 2013 (EDT)
This solution page is for the homework assignment that was due on Tuesda Sept. 17th, at 9:00 a.m.
Question #1
Count in binary and write down the first 35 numbers of the series. In other words, complete the second column in the list below.
0 0 1 1 2 10 3 11 4 100 5 101 6 110 7 111 8 1000 9 1001 10 1010 11 1011 12 1100 13 1101 14 1110 15 1111 16 10000 17 10001 18 10010 19 10011 20 10100 21 10101 22 10110 23 10111 24 11000 25 11001 26 11010 27 11011 28 11100 29 11101 30 11110 31 11111 32 100000 33 100001 34 100010
Perform the following additions in binary:
10110 + 10011 = 101001
11110 + 10110 = 110100
Question #2
- Write the first 30 numbers of a system with 6 digits. To help you out, I will start with the first 9 numbers of the series:
0 0 1 1 2 2 3 3 4 4 5 5 6 10 7 11 8 12 9 13 10 14 11 15 12 20 13 21 14 22 15 23 16 24 17 25 18 30 19 31 20 32 21 33 22 34 23 35 24 40 25 41 26 42 27 43 28 44 29 45 30 50
Continue on until you have 20 consecutive numbers of a system in base 6.
Question #3
In base 4.
1003 + 2301 = 3310
2232 + 3101 = 11333
Question #4
f = ( a and b ) or ( a and not c ) or ( not b )
a b c f 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1
a b c f F F F T F F T T F T F F F T T F T F F T T F T T T T F T T T T T