summaryrefslogtreecommitdiff
path: root/assignments
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-06-01 13:11:13 -0600
committermo khan <mo@mokhan.ca>2024-06-01 13:11:13 -0600
commit50b7493f363affa3e1ca5dfa4d207b01f6bdf630 (patch)
treeb9ea89ff7d4ab1e85476010ef385f9f425fdcf44 /assignments
parent5ccc7d02a4daef5231b89c0cc4258ce2d7e6a12a (diff)
add headings to assignment
Diffstat (limited to 'assignments')
-rw-r--r--assignments/1-solution.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/assignments/1-solution.md b/assignments/1-solution.md
index a4fa273..c9ca093 100644
--- a/assignments/1-solution.md
+++ b/assignments/1-solution.md
@@ -1,6 +1,10 @@
-# Assignment 1 – choose ONE exercise each from Chapters 2 and 3
+# COMP-200: Intro to Computer Systems
+## Assignment 1
+### mo khan - 3431709
-## Chapter 2: Exercises
+Choose ONE exercise each from Chapters 2 and 3
+
+Chapter 2:
4. Write an algorithm that gets the price for item A plus the quantity
purchased. The algorithm prints the total cost, including 6% sales tax.
@@ -18,7 +22,7 @@
end
```
-## Chapter 3: Exercises
+Chapter 3:
21. Use the binary search algorithm to decide whether 35 is in the following
list: `3, 6, 7, 9, 12, 14, 18, 21, 22, 31, 43`