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

Info icon This 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
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
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
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 )
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
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
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.
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern