Week 5
Reading
- Textbook: Chapter 1.5: Input and Output [p. 126 to p. 161]
Slides
Exercises
- Exercise 1.5.1
- Exercise 1.5.2
- Exercise 1.5.3
- Exercise 1.5.6
- Exercise 1.5.7*
- Exercise 1.5.10
- Exercise 1.5.11
- Exercise 1.5.19*
Hint
You can calculate the coordinates of pointi(where0 <= i < n) with the following formulas:- xi = cos(2 · π · i / n)
- yi = sin(2 · π · i / n)
- Exercise 1.5.26*