Skip to content

Commit 0ea25f6

Browse files
committed
11/2 activities and notes
1 parent 7146611 commit 0ea25f6

File tree

8 files changed

+474
-0
lines changed

8 files changed

+474
-0
lines changed

_practice/2022-11-02.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
1. (priority) Add to `overflow.md` how integer overflow is handled in Python, C, Javascript, and one other language of your choice.
2+
1. Add to `readingbytes.md` and exmaple of how machine code that was a 3 bit instruction followed by an 8 bit address might render.
3+
```{index} overflow.md`
4+
```
5+
```{index} readingbytes.md
6+
```

_prepare/2022-11-02.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
1. In `fractionalbinary.md` use 8 bits to represent the following points where 4 bits are >1 and the other 4 bits are 1/2, 1/4, 1/8, 1/16th:
2+
- 3.75
3+
- 7.5
4+
- 11.625
5+
- 5.1875
6+
1. Add to your file some note about the limitations of representing non integer values this way. How much would using more bits help with, what limitations are not resolved y adding more bits.
7+
```{index} fractionalbinary.md
8+
```

_review/2022-11-02.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
1. Add `bitwise.md` to your kwl and write the bitwise operations required for the following transformations:
2+
```
3+
4 -> 128
4+
12493 - > -12494
5+
127 -> 15
6+
7 -> 56
7+
4 -> -5
8+
```
9+
1. For the following figure out the bitwise operator:
10+
```
11+
45 (_) 37 = 37
12+
45 (_) 37 = 45
13+
3 (_) 5 = 7
14+
6 (_) 8 = 0
15+
10 (_) 5 = 15
16+
```
17+
1. Create `readingbytes.md` and answer the following:
18+
```
19+
1. if a file had the following binary contents, what would it display in the terminal? Describe how you can figure this out manually and check it using C or Python. '01110011011110010111001101110100011001010110110101110011'
20+
1. What is the contents of the `sample.bn` if `cat sample.bn` is: ` ¢¶"*`
21+
```
22+
1. Read about integer overflow and in `overflow.md` describe what it is, use an example assuming an 8 bit system.
23+
```{index} bitwise.md
24+
```
25+
```{index} readingbytes.md
26+
```
27+
```{index} overflow.md
28+
```

_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ parts:
3131
- file: notes/2022-10-24
3232
- file: notes/2022-10-26
3333
- file: notes/2022-10-31
34+
- file: notes/2022-11-02
3435
- caption: Activities
3536
chapters:
3637
- file: activities/kwl

activities/practice.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,11 @@ Activities:
152152

153153
Activities:
154154
```{include} ../_practice/2022-10-31.md
155+
```
156+
## 2022-11-02
157+
158+
[related notes](../notes/2022-11-02)
159+
160+
Activities:
161+
```{include} ../_practice/2022-11-02.md
155162
```

activities/prepare.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,11 @@ Activities:
180180

181181
Activities:
182182
```{include} ../_prepare/2022-10-31.md
183+
```
184+
## 2022-11-02
185+
186+
[related notes](../notes/2022-11-02)
187+
188+
Activities:
189+
```{include} ../_prepare/2022-11-02.md
183190
```

activities/review.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,11 @@ Activities:
176176

177177
Activities:
178178
```{include} ../_review/2022-10-31.md
179+
```
180+
## 2022-11-02
181+
182+
[related notes](../notes/2022-11-02)
183+
184+
Activities:
185+
```{include} ../_review/2022-11-02.md
179186
```

0 commit comments

Comments
 (0)