Introduction   Attendance: min 80 % Late Tolerance: 15 minutes

Slides:



Advertisements
Similar presentations
Analysis of Computer Algorithms
Advertisements

Chapter 7 System Models.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 11: Structure and Union Types Problem Solving & Program Design.
Lecture 10 Flow of Control: Loops (Part 2) COMP1681 / SE15 Introduction to Programming.
Week 2 The Object-Oriented Approach to Requirements
Computer Literacy BASICS
Configuration management
Mehdi Naghavi Spring 1386 Operating Systems Mehdi Naghavi Spring 1386.
Chapter 11: Models of Computation
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Lilian Blot TO PROGRAMMING & PYTHON Introduction Autumn 2012 TPOP 1.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
1 University of Utah – School of Computing Computer Science 1021 "Thinking Like a Computer"
CMPT 275 Software Engineering
Lecture 6: Software Design (Part I)
Lecture 7: Software Design (Part II)
CS101: Introduction to Computer programming
Control Structures Selections Repetitions/iterations
Project 6: Working with If Statements Essentials for Design JavaScript Level One Michael Brooks.
CS 240 Computer Programming 1
Systems Development and Documentation Techniques
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 15 Programming and Languages: Telling the Computer What to Do.
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
Chapter 11 Describing Process Specifications and Structured Decisions
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 13 Slide 1 Application architectures.
Languages for IT & CS Pseudo-code What HTML isn’t Early history Compiling & interpreting Classifying languages The process of programming.
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Fundamental of Programming(101) Why study Programming Language Concepts? Increased capacity to express programming concepts Improved background for choosing.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 1 Program Design
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Simple Program Design Third Edition A Step-by-Step Approach
CIS Computer Programming Logic
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
1 Overview of Programming and Problem Solving Chapter 1.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
CHAPTER 1 INTRODUCTION 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
`. Lecture Overview Structure Programming Basic Control of Structure Programming Selection Logical Operations Iteration Flowchart.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
1 Structured Programming Arab Academy for Science and Technology CC112 Dr. Sherif Mohamed Tawfik The Course.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
GC101 Introduction to computers and programs
Programming Languages
CSCI-235 Micro-Computer Applications
Chapter 1 Introduction(1.1)
ICT Gaming Lesson 2.
Basic Concepts of Algorithm
CS105 Introduction to Computer Concepts Intro to programming
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

Structural Programming IS-1113 Weeks – 01/1 Introduction to Computer Programming and Problem Solving

Introduction   Attendance: min 80 % Late Tolerance: 15 minutes Lecturer Name : Rian F. Umbara, S.Si, M.Si Class Rules: Attendance: min 80 % Late Tolerance: 15 minutes Do not cheat Do not open the internet without permission   1

Referensi A Guide to Programming Logic & Design, Farrel, Joyce, Course Technology Downey, Allen B. How to think like Computer Scientist, Open Source Textbook, Waterville, 1999 Felleisen, Mathias, Findler, Robert B. Flatt Mathew, Khrismurthi : How to Design Program : An Introduction to programming and computing, MIT Press, London Handbook Poltek Other Books 2

Description An Introduction to algorithm and data structures, program development life cycle, logic diagram, basic control structures (seq, if-else, repetitive) in the frame work of structural programming using Pascal as the programming language. This course also introduce various levels in programming language for solving problems 3

Learning Objectives Upon to successful completion of the course student have : Ability to solve problems by writing algorithms in a structured way; Good understanding about data types such as numeric, alphabetic, character and Boolean; Fundamental computer programming and the Pascal language; Good concept of arrays and use of arrays; Ability in using Functions and their benefit in modular decomposition; Good concept in String manipulation (parsing) Good understanding about User defined data type (record) Good concept in advanced data structures (linked table or stack) 4

Scoring Test : Pre test : 10 % Post test : 10 % Task : 15 % Mid : 25 % Final : 40 % Pre test : 10 % Post test : 10 % Task : 15 % 5

Chapter 1 Introduction

Objectives In this lesson, you will learn about: Defining how computer works electronically System Component : Input, Process, and Output Defining levels of programming language Define wahat ‘program’ is Brief introduction in software engineering Using flowchart as a design tool Using Pseudocode as design tool 7 7

Overview of computers A computer is a collection of several electronic components that work together to process instructions provided by a user. You can use computers to: Solve complicated mathematical problems. Process large amounts of information without errors. Automate day-to-day transactions. This reduces the number of people required to perform a particular task. Send e-mail messages to people across the world. Play games and indulge in recreational activities. 8 8

Computer Programming ? Computers do what we tell them to do, NOT what we want them to do Computer Programming involves writing instructions and giving them to the computer to complete a task. 9

Hardware Components of a Computer Hardware components are the physical components of a computer. Following are the hardware components of a computer: Input Devices Output Devices Processing Device Storage Devices 10 10

HARDWARE 11 11

SOFTWARE 12 12

Problem Solving Analysis Design Algorithm Implementation Program Problem specification Algorithm Program Executable (solution) Design Implementation Compilation Analysis 13

What is a (computer) program ? A program is a sequence of instructions that specifies how to perform a computation. The instructions (or commands, or statements) look different in different programming languages 14 Source ://OOPWeb.com : How To Think Like A Computer Scientist Learning with C++ by Allen B_ Downey 14

What Is Programming ? the act of creating software or some other set of instructions for a computer. (cyber.law.harvard.edu/readinessguide/glossary.html) The extrusion of a parison which differs in thickness in the length direction in order to equalize wall thickness of the blown container. ... (www.all-pak.com/plasticgloss.asp) is the process of writing a sequence of instructions to be excuted by a computer to solve a problem. It is also considered as the act of writing computer programs. Computer programs are set of instructions that tell a computer to perform certain operations. ... (hubpages.com/hub/Concepts-and-Principles-of-Programming ) A system in which specific requirements of the client are determined in written form and, when approved by the client, become the basis for all future planning. The effects of successful programming will be felt by the client as long as he or she lives with the facility executed. ... (www.officespacefinder.co.uk/officespacegloss2.html ) 15 15

Programming Language A programming language is an artificial language that can be used to write programs which control the behavior of a machine, particularly a computer Programming languages are defined by syntactic and semantic rules which describe their structure and meaning respectively Thousands of different programming languages have been created so far, and new languages are created every year 16 16

Who Is a Programmer ? A programmer is a person who writes the required computer programs. Programmers translate the expected tasks given in human understandable form into machine understandable form by using compilers and interpreters. 17

Input and Output the program the data needed by the program. Normally, a computer received two kinds of input: the program the data needed by the program. The output is the result(s) produced by following the instructions in the program 18

Running Program 19

Programming Languages A language is a means of communication between people. A programmer writes a set of instructions in a programming language to instruct the computer to perform a task. This set of instructions is called a program. 20 20

Levels of Programming Languages Programming languages can be classified into three broad categories : Machine Language Assembly Language High-level Language 21 21

Programming Languages Machine Language 0000100100010010 0010000100010100 0011100100010000 0001000100010110 Assembly Language LDA TIME ADA INC MUL VEL STA POS High-level Language A = B * (C + D) 22

Basic Functions There are a few basic functions that appear in just about every language: input Get data from the keyboard, or a file, or some other device. output Display data on the screen or send data to a file or other device. math Perform basic mathematical operations like addition and multiplication. testing Check for certain conditions and execute the appropriate sequence of statements. repetition Perform some action repeatedly, usually with some variation. 23 23

Compiler & Interpreter Compiler is a specific software that gets the whole Source Code (Computer program written in human understandable form) and translates it into Object Code (Computer Program that is in machine understandable form) all at a time. Interpreter is translating and executing one statement (command of Computer Program) of Source Code into Object Code at a time. (It means, interpreters translate and execute computer programs line by line). 24

Compiler To execute a program written in a high-level language A computer needs translation software called a compiler A compiler is language-specific, and each high-level language has its own compiler. 25 25

Interpreter Some high-level languages use a different type of translator program called an interpreter. An interpreter takes a high-level language instruction, converts it to a machine language instruction, executes it and does not save the object code. 26 26

Executing Program Using Interpreter: Object Code Compiler Source Code Using Compiler: Source Code Compiler Object Code Execute Program Using Interpreter: Execute a line of Program Source Code Interpreter 27

Algorithms An algorithm is a sequence of steps required to accomplish a task. The steps can be categorized into the following three phases: Input phase Process phase Output phase

Program Design Tool Flowchart : the graphical representation of algorithms Pseudocode : Pseudocode represents an algorithm in English language.

Representing Algorithm 1 (Program Design Tool) A flowchart consists of symbols, which represent the steps or stages in an algorithm. The different symbols used in a flowchart are Flow line Input/Output Process On Page Connector Decision Off Page Connector Procedure/ Subroutine preparation Start and Stop 30 30

Representing Algorithm 2 Pseudocode Pseudocode is used as an alternative to a flowchart. The statements used in pseudocode are simple and written in a sequential manner. There are a number of keywords used in pseudocode: Dictionary begin…end Accept (Read/Input) Display (write/Output) if…then-else 31 31