Week 6
Learning objectives
Upon finishing this learning module, you should be able to:
- Discuss and describe the major components of a CPU and their purpose, and the fundamental machine execution cycle (fetch-decode-execute)
- Trace the execution of and write simplified machine code programs
- Use conditionals in Python
Class Schedule
First Class Meeting
- Machine Architecture & The Little Computer
- Programming - Ch 22
Independent:
- Little Computer worksheet 1
- Work on programming
Second Class Meeting
- Algorithm of the Week - Compression
- Work on Programming
- Programming - Ch 23
Independent:
- Algorithm of the Week reading
- Do written assignment
- Work on programming
- Work on the Impacts of Computing assignment
Programming
Do Chapter 22 and 23 from the Programming chapters in Welcome To CS.
Machine Architecture & the Machine Cycle
Read about the major components of a CPU and the machine cycle: Chapter 6 of the computing section of Welcome To CS. This reading is part of the Computing Week 6 assignment.
Optional This video is a good secondary source. The first 12.5 minutes do a nice job of showing a processor at work. (From minute 12:30 until the end gets into more detail than we are going to worry about, but you may find it interesting.)
Machine Code and the Little Computer
These are part of the Computing Week 6 assignment:
Read Ch 7.1 - Machine Language in Welcome To CS.
Rather than try to work with real machine language, we are going to use something called the Little Computer to see what a program is like at this level. Read Ch 7.2 about the Little Computer in Welcome to CS. (Just this one page - there is more about the Little Computer that we will tackle next week.)
Do the practice problems from LC Worksheet 1 (Files area in elearn). You will need to make use of this Little Computer simulator
Algorithm of the Week: Data Compression
Read Ch 7 of Nine Algorithms That Changed the Future
This video provides an overview of the reading:
Read this Data Compression supplement. It demonstrates how to build a Huffman code - a version of the Shortest Symbol trick from Nine Algorithms.
Do the compression practice worksheet (Class Files in elearn)
Impacts of Computing
This week, you will participate in a discussion about the social impacts of Cryptocurrency. See the Canvas assignment in this week's module for specific instructions