CPSC 121
Lab 4
Lab 4
CS ID 1:
Instructions:
1. Do not change the questions and document that is given. Simply add solutions by editing
this document, using the
soln
environment we provided as follows:
\begin{soln}
My solution is here.
\end{soln}
Your solution will then appear in blue, and be easier to di
ff
erentiate from the rest of the
document.
2. If you need more space, add a page between the existing pages using the
\newpage
com-
mand.
3. Export the completed assignment as a PDF file for upload to gradescope.
Academic Conduct:
I certify that my assignment follows the academic conduct rules
for of CPSC 121 as outlined on the course website. As part of those rules, when collaborating
with anyone, all of the below statements are true:
1. I and my collaborators took no record but names away.
2. After a suitable break, I am submitting without help from anyone other than the course
sta
ff
.
1
Uaa
2b

CPSC 121
Lab 4
1
Pre-lab
Imagine you are calling a friend in Asia. While you are talking, there is one signal connecting
you and your friend. However, it would be too expensive to directly wire every telephone in
