1
CS 240 CS 240 – – Computer Science I Computer Science I
1
Wright State University, College of Engineering
- Dr. T. Doom, Computer Science & Engineering
CS 240 Computer Science I
Acknowledgements: These slides were created by Dr. Travis Doom with information, graphics, materials, or aid kindly provided by Dr. Matt Rizki, Gaddis’s “Starting Out with Java” (Addison Wesley), Patt’s “Introduction to computers” and McConnell’s “Code Complete”..
An engineer’s introduction An engineer’s introduction to abstraction and the digital computer to abstraction and the digital computer
The modern general purpose digital computer Abstraction/Encapsulation Design decomposition
What What is is a computer? a computer?
- What is computation?
- There are many sorts of computing devices, they fall into two categories:
– Analog: machines that produce an answer that measures some continuous physical property such as distance, light intensity, or voltage. Examples? – Digital: machines that perform computations by manipulating a fixed finite set of
- elements. Examples?
The difficulty with analog devices is that it is very hard to increase their accuracy
3
Wright State University, College of Engineering
- Dr. T. Doom, Computer Science & Engineering
CS 240 Computer Science I
– The difficulty with analog devices is that it is very hard to increase their accuracy.
- Before modern digital computers, the most common digital machines were
adding machines.
– Adding machines perform exactly one sort of operation.
- General purpose digital computers also perform one operation…
– Modern computers accept a set of instructions that tell it how to do any sort of computation.
- We now make a clear distinction between “calculators” and “computers”