CST1103_Ch1.pdf - Programming Logic and Design Sixth...

This preview shows page 1 - 9 out of 29 pages.

Programming Logic and Design Sixth Edition 1103 Basic Data Processing Overview of Computer 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 Programming and user environments The evolution of programming models 2 Faculty of Computer Science
Understanding Computer Systems Computer system Combination of all the components required to process and store data using a computer Hardware Equipment or physical devices associated with a computer Software Computer instructions that tell the hardware what to do Software is programs: instructions written by programmers 3 Faculty of Computer Science
Understanding Computer Systems (cont’d) Computer hardware and software accomplish three major operations Input Data items enter the computer system and are put into memory . Processing By central processing unit (CPU ) Output Display the results Programming language Writing computer instructions in a computer Examples Visual Basic, C#, C++, or Java 4 Input Processing Output Faculty of Computer Science
Understanding Computer Systems (cont’d) Syntax Rules governing its word usage and punctuation Computer memory Volatile : its contents are lost when the computer is turn off or loses power. Nonvolatile : their contents are persistent and are retained even when power is lost. Machine language - It is also called binary language and is represented as a series of 0s and 1s. 5 Faculty of Computer Science
Understanding Computer Systems (cont’d) Compiler or an interpreter Translates program code into machine language (binary language) Checks for syntax errors Program executes or runs Input will be accepted, some processing will occur, and results will be output 6 Faculty of Computer Science
Understanding Simple Program Logic Program with syntax errors cannot execute 1. Logical errors Errors in program logic Produce incorrect output as a result 2. Logic of the computer program Sequence of specific instructions in specific order 3. Variable Named memory location whose value can vary 7 Faculty of Computer Science
Understanding the Program Development Cycle Program development cycle 1. Understand the problem 2. Plan the logic 3. Code the program 4.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture