01969_PPT_ch01 - Programming Logic and Design Fifth...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Programming Logic and Design Fifth Edition, Comprehensive Chapter 1 An Overview of Computers and Logic 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 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 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 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 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 Programming Logic and Design, Fifth Edition, Comprehensive 7 Understanding Computer Components and Operations (continued) Machine language : controls the computers 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 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 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....
View Full Document

Page1 / 50

01969_PPT_ch01 - Programming Logic and Design Fifth...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online