LU1A_Ch01.pptx - Programming Logic and Design Chapter 1 An...

This preview shows page 1 - 8 out of 36 pages.

Programming Logic and Design Chapter 1 An Overview of Computers and Programming
Objectives In this chapter, you will learn about: Computer systems Simple program logic The steps involved in the program development cycle Pseudocode statements and flowchart symbols Using a sentinel value to end a program Programming and user environments The evolution of programming models PROGRAMMING LOGIC AND DESIGN, EIGHTH EDITION 2
Understanding Computer Systems Computer system Combination of all the components required to process and store data using a computer Hardware Equipment associated with a computer Software Computer instructions Tells the hardware what to do Programs Instructions written by programmers PROGRAMMING LOGIC AND DESIGN, EIGHTH EDITION 3
Understanding Computer Systems (continued) Application software such as word processing, spreadsheets, payroll and inventory, even games System software such as operating systems like Windows, Linux, or UNIX Computer hardware and software accomplish three major operations Input Data items such as text, numbers, images, and sound Processing Calculations and comparisons performed by the central processing unit ( CPU ) PROGRAMMING LOGIC AND DESIGN, EIGHTH EDITION 4
Understanding Computer Systems (continued) Output Resulting information that is sent to a printer, a monitor, or storage devices after processing A Cloud based device is accessed through the Internet Programming language Used to write computer instructions called program code Writing instructions is called coding the program Examples Visual Basic, C#, C++, or Java Syntax Rules governing word usage and punctuation Mistakes in a language’s usage are syntax errors PROGRAMMING LOGIC AND DESIGN, EIGHTH EDITION 5
Understanding Computer Systems (continued) Computer memory Computer’s temporary, internal storage – random access memory ( RAM ) Volatile memory – lost when the power is of Permanent storage devices Nonvolatile memory Compiler or interpreter Translates source code into machine language ( binary language ) statements called object code Checks for syntax errors Program executes or runs Input will be accepted, some processing will occur, and results will be output PROGRAMMING LOGIC AND DESIGN, EIGHTH EDITION 6
Understanding Simple Program Logic Programs with syntax errors cannot execute Logical errors Errors in program logic produce incorrect output Logic of the computer program Sequence of specific instructions in specific order Variable Named memory location whose value can vary PROGRAMMING LOGIC AND DESIGN, EIGHTH EDITION 7

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture