Chapter 01 - An Overview of Computers and Programming.pdf -...

This preview shows page 1 - 5 out of 19 pages.

1 Programming Logic and Design Ninth Edition Chapter 1 An Overview of Computers and Programming 1 Programming Logic and Design, Ninth Edition 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 2 Programming Logic and Design, Ninth 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 that tells the hardware what to do Programs Instructions written by programmers Programming Writing software instructions 3 Programming Logic and Design Ninth Edition Understanding Computer Systems (continued -1) Application software such as word processing, spreadsheets, payroll and inventory, even games, app System software such as operating systems like Windows, Linux, or UNIX, Google Android and Apple IOS 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 ) 4 Programming Logic and Design, Ninth Edition
3 Understanding Computer Systems (continued -2) 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 5 Programming Logic and Design, Ninth Edition Understanding Computer Systems (continued -3) Computer memory Computer’s temporary, internal storage – random access memory ( RAM ) Volatile memory – lost when the power is off 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 6 Programming Logic and Design, Ninth Edition
4 Understanding Simple Program Logic Programs with syntax errors cannot execute Logical errors Errors in program logic produce incorrect output Logic of the computer program

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture