{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Chapter1_Intro - Computer Programming-1 CSC 111 Chapter 1...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Programming-1 CSC 111 Chapter 1 : Introduction
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 2 Chapter Outline What a computer is What a computer program is The Programmer’s Algorithm How a program that you write in Java is changed into a form that your computer can understand Characteristics of Java
Background image of page 2
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 3 What Is a Computer? Computer Executes statements (computations/logical decisions) Hardware : Physical devices of computer system Software: Programs that run on computers Control Unit Arithmetic/Logic Unit Memory Unit Input device Output Device Central Processing Unit My Progam My data
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 4 Computer Organization Six logical units of computer system Input unit ( Mouse, keyboard ) Output unit ( Printer, monitor, audio speakers ) Memory unit ( Retains input and processed information ) Central processing unit (CPU) which consists of: Control unit ( Supervises operation of other devices ) Arithmetic and logic unit (ALU) ( Performs calculations ) Secondary storage unit ( Hard drives, floppy drives )
Background image of page 4
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 5 What a computer program is? For a computer to be able to perform specific tasks (i.e. print what grade a student got on an exam), it must be given instructions to do the task. The set of instructions that tells the computer to perform specific tasks is known as a computer program
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 6 Levels of Abstraction Human thought Pseudo-Natural Language (English, Arabic) High Level Programming Language (C, C++, Java, …) Machine Code
Background image of page 6
Introduction to OOP Dr. S. GANNOUNI & Dr. A. TOUIR Page 7 The Programmer’s Algorithm An algorithm is a finite sequence of instructions that produces a solution to a problem. The programmer’s algorithm: Define the problem. Plan the problem solution.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}