01969_PPT_ch01 - Programming Logic and Design Fifth Edition...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Programming Logic and Design Fifth Edition, Comprehensive Chapter 1 An Overview of Computers and Logic
Image of page 1

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

View Full Document Right Arrow Icon
Programming Logic and Design, Fifth Edition, Comprehensive 2 Objectives Understand computer components and operations Learn about the steps involved in the programming process Learn about the data hierarchy and file input Use flowchart symbols and pseudocode statements Use and name variables
Image of page 2
Programming Logic and Design, Fifth Edition, Comprehensive 3 Objectives (continued) Use a sentinel, or dummy value, to end a program Manage large flowcharts Assign values to variables Recognize the proper format of assignment statements Describe data types Understand the evolution of programming techniques
Image of page 3

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

View Full Document Right Arrow Icon
Programming Logic and Design, Fifth Edition, Comprehensive 4 Understanding Computer Components and Operations Hardware and software: the two major components of any computer system Hardware : equipment, or devices Software : programs that contain instructions for the computer Four major operations in a computer: Input Processing Output Storage
Image of page 4
Programming Logic and Design, Fifth Edition, Comprehensive 5 Understanding Computer Components and Operations (continued) Input devices : allow data to enter the computer Mouse, keyboard, scanner Processing : working on the data Organizing data Checking data for accuracy Mathematical or other manipulations on data Central Processing Unit (CPU) : hardware that performs the tasks
Image of page 5

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

View Full Document Right Arrow Icon
Programming Logic and Design, Fifth Edition, Comprehensive 6 Understanding Computer Components and Operations (continued) Output devices : provide data to the user Printer, monitor, speakers Programming language : special language containing instructions for the computer Visual Basic, Java, C#, C++, COBOL Syntax : rules governing word usage and punctuation in the language
Image of page 6
Programming Logic and Design, Fifth Edition, Comprehensive 7 Understanding Computer Components and Operations (continued) Machine language : controls the computer’s on/off circuitry Compiler or interpreter : software that translates programming languages to machine language Program must be free of syntax errors to be run, or executed , on a computer To function properly, the logic must be correct
Image of page 7

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

View Full Document Right Arrow Icon
Programming Logic and Design, Fifth Edition, Comprehensive 8 Understanding Computer Components and Operations (continued) What is wrong with this logic for making a cake? Stir Add two eggs Bake at 350 degrees for 45 minutes Add three cups of flour
Image of page 8
Programming Logic and Design, Fifth Edition, Comprehensive 9 Understanding Computer Components and Operations (continued) Logic errors , or semantic errors , are more difficult to locate than syntax errors Logic for multiplying a number by 2 (includes input, processing, and output statements) Get input number.
Image of page 9

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

View Full Document Right Arrow Icon
Image of page 10
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