Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.

Similar presentations


Presentation on theme: "Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students."— Presentation transcript:

1 Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students to a General introduction to computers and programming languages b. The course also looks in structured programming and proper programming techniques, algorithm and Flowcharts c. The course deals with the three control structures in C++: sequence structure, selection structures and repetition structures, d. Introduction to arrays & pointers

2 2 10/4/1435 Lecture 1- Lecture 1- General introduction to computers and programming languages

3 3 Q: Define the following Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer – person who writes instructions (programs) to make computer perform a task

4 4 Q: Mention the Computer hardware component categories: 1. Central Processing Unit (CPU) 2. Main Memory 3. Secondary Memory / Storage 4. Input Devices 5. Output Devices

5 5 Q: Mention the Components of the Central Processing Unit (CPU) It is Comprised of: 1. Control Unit 2. Arithmetic & Logic Unit Mention the role of the control unit? 1. Retrieves and decodes program instructions 2. Coordinates activities of all other parts of computer

6 6 Q: Mention the role of the Arithmetic & Logic Unit? 1. It is optimized for high-speed numeric calculation 2. designed for true/false, yes/no decisions

7 7 Q: Design a chart that shows the CPU Organization Figure 1-3

8 8 Q: Define the Main memory? 1. It is volatile. 2. Also called Random Access Memory (RAM) 3. Organized as follows:  bit: smallest piece of memory. Has values 0 (off, false) or 1 (on, true)  byte: 8 consecutive bits. Bytes have addresses.

9 9 Q: What are Memory addresses? Each byte in memory is identified by a unique number known as an address. Each byte in memory is identified by a unique number known as an address.

10 10 Q: Define a Secondary Storage 1. Non-volatile 2. Comes in a variety of media:  magnetic: floppy disk, hard drive  optical: CD-ROM, DVD  Flash drives, connected to the USB port

11 11 What are Input Devices? 1. Devices that send information to the computer from outside 2. Many devices can provide input:  Keyboard, mouse, scanner, digital camera, microphone  Disk drives, CD drives, and DVD drives

12 12 What are output Devices? They are devices that pass output from the computer to the user. They are devices that pass output from the computer to the user. The most commonly used ones are: The most commonly used ones are: Monitors, audio devices, disk drives and microfilm recorder


Download ppt "Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students."

Similar presentations


Ads by Google