Chapter 1: Introduction to Computers, Programs, and C++
Chapter 1: Introduction to Computers, Programs, and C++
Sections 1.1-1.3, 1.6-1.9
Textbooks: Y. Daniel Liang, Introduction to Programming with C++, 3rd Edition ? Copyright 2016 by Pearson Education, Inc. All Rights Reserved.
These slides were adapted by Prof. Gheith Abandah from the Computer Engineering Department of the University of Jordan for the Course: Computer Skills for Engineers (0907101) Updated by Dr. Ashraf Suyyagh (Summer 2021)
1
Outline
? Introduction and Computers (??1.1?1.2) ? Programming languages (??1.3) ? A simple C++ program for console output (?1.6) ? C++ program-development cycle (?1.7) ? Programming style and documentation (?1.8) ? Programming errors (?1.9)
2
What is a Computer?
A computer consists of a CPU, memory, hard disk, monitor, and communication devices.
Bus
Storage Devices
e.g., Disk, CD, and Tape
Memory
CPU
Communication Devices
e.g., Modem, and NIC
Input Devices
e.g., Keyboard, Mouse
Output Devices
e.g., Monitor, Printer
3
CPU
The central processing unit (CPU) is the brain of a computer. It retrieves instructions from memory and executes them. The CPU speed is measured in megahertz (MHz), with 1 megahertz equaling 1 million pulses per second. The speed of the CPU has been improved continuously. If you buy a PC now, you can get an Intel Core i7 Processor at 3 gigahertz (1 gigahertz is 1000 megahertz).
Bus
Storage Devices
Memory
CPU
e.g., Disk, CD, and Tape
Communication Devices
e.g., Modem, and NIC
Input Devices
e.g., Keyboard, Mouse
Output Devices
e.g., Monitor, Printer 4
Memory
Memory is to store data and program instructions for CPU to execute. A memory unit is an ordered sequence of bytes, each holds eight bits. A program and its data must be brought to memory before they can be executed. A memory byte is never empty, but its initial content may be meaningless to your program. The current content of a memory byte is lost whenever new information is placed in it.
Bus
Storage Devices
e.g., Disk, CD, and Tape
Memory
CPU
Communication Devices
e.g., Modem, and NIC
Input Devices
e.g., Keyboard, Mouse
Output Devices
e.g., Monitor, Printer 5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- microsoft project 2007 tutorial boston university © boston
- microsoft excel for beginners
- office professional plus for students utsa
- licensing guide microsoft open programs insight
- herzing student download instructions for microsoft office
- beginning c programming programmer books
- chapter 7 software ftms
- zing a model checker for concurrent software
- 4 systems and software application software
- microsoft word 2013 fundamentals manual
Related searches
- introduction to computers lecture notes
- introduction to computers notes pdf
- introduction to computers pdf download
- introduction to computers pdf books
- introduction to computers textbook pdf
- introduction to computers pdf
- introduction to computers tutorial pdf
- introduction to computers book download
- basic introduction to computers pdf
- chapter 1 introduction to life span
- introduction to computers textbook
- introduction to computers book pdf