Podcast 2
[ 02.mp3 ]
The content of this chapter underlies everything we do in this course.
If you understand this chapter it will help you do well in the laboratory
work, the project work, and the quizzes.
Reading
In my guides to the reading I mark the sections with asterisks (*) to
indicate important topics. When the book omits something that you need
to know then I will mark my notes with plus signs (+). Stuff that is
in the book that I don't want you to know I will mark with minus
signs (-). The more stars, plusses and minusses there are the stronger is the
implied hint.
- *** 1.1 Computer Structure and operation
| Name | Clerical Analogy
|
|---|
| Processor or CPU | A clerk sitting at a desk with a calculator and pencil
|
| Program | Note book telling the clerk what to do.
|
| Primary memory or RAM. | The desk top with a note pad.
|
| Input devices | In tray
|
| Output Devices | Out tray
|
| Secondary memory | Filing Cabinet
|
| Network Interfaces and Modems | Telephone
|
- **** 1.2 How to get the program into the computer
- +++ On Linux we compile a program in one step by writing
g++ -o example1 example1.cpp
- +++ On the csci.csusb.edu Linux labs we compile and run a program
like this
Q example1.cpp
(Dr. Botting wrote Q to make programming easier....)
- +++ In the labs use the KDE browser and editor to do your programming.
- +++ Remotely you will only have a command interface. The
lab manual
describes how to access the machines remotely (and securely) and
suggests some tools that you can use.
- * 1.3 Programming languages
The history here goes a long way to explaining some of the peculiarities
of C++. For more information take the
[ cs320/ ]
Programming Language class.
- **** 1.4 The Process of developing programs
- Analysis
- Design
- Implement
- Test
- Install
- Operate and maintain forever
- **** 1.5 Algorithms
- Elementary steps
- Reserve storage to hold values in variables -- (declarations)
- Get input from user
- Send output to the user
- Do a calculation and store the answer.
- Structures
- Sequence
- Selection
- Iteration
- ** 1.6 Top-down design
- * Exercises
Key words
I abbreviate definitions and descriptions use a couple of
colons. Here is an example.
- computer::="A machine that can store and process information under the control of a program".
- algorithm::="A precise description of how to solve a particular problem".
- program::="A description in machine readable form of a set of instructions that carry out an algorithm".
Questions
[ 02q.html ]
Next
Class
[ 03.html ]
with
Laboratory 2
[ lab02/ ]
and quiz 1.