DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.

Slides:



Advertisements
Similar presentations
Chapter 1 - An Introduction to Computers and Problem Solving
Advertisements

Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2 - Problem Solving
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
Algorithms and Problem Solving-1 Algorithms and Problem Solving.
Algorithms and Problem Solving. Learn about problem solving skills Explore the algorithmic approach for problem solving Learn about algorithm development.
Program Design and Development
Computers: Tools for an Information Age
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
Programming Fundamentals (750113) Ch1. Problem Solving
Chapter 1 Program Design
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
Chapter 3 Planning Your Solution
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
6 Steps of the Programming Process
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
Simple Program Design Third Edition A Step-by-Step Approach
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Program Development Life Cycle (PDLC)
Chapter 3 Developing an algorithm. Objectives To introduce methods of analysing a problem and developing a solution To develop simple algorithms using.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 5: Software Design & Testing; Revision Session.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
I Power Higher Computing Software Development The Software Development Process.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
Chapter 1 Program design Objectives To describe the steps in the program development process To introduce the current program design methodology To introduce.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Cs413_design04.ppt Design and Software Development Design : to create a functional interface that has high usability Development : an organized approach.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
Computer Programming CONTENTS Introduction to Operating Systems Introduction to programming languages Introduction to perl programming language Programming.
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Algorithms and Pseudocode
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Algorithms and Flowcharts
ICS 3UI - Introduction to Computer Science
Algorithms and Problem Solving
Algorithm and Ambiguity
Algorithm and Ambiguity
Understand the Programming Process
Chapter 2- Visual Basic Schneider
Understand the Programming Process
Algorithm and Ambiguity
Global Challenge Walking for Water Lesson 2.
Algorithms and Problem Solving
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
An Introduction to Programming with C++ Fifth Edition
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Basic Concepts of Algorithm
Global Challenge Walking for Water Lesson 2.
WJEC GCSE Computer Science
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Programming Logic and Design Eighth Edition
Presentation transcript:

DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING

CONTENTS COMPUTER PROGRAMMING CONCEPTS PROBLEM SOLVING OVERVIEW ALGORITHM OVERVIEW (PSEUDOCODE & FLOWCHART)

What is Computer Programming? Writing software, computer programs, is describing how to do something. It is a lot like writing down the steps it takes to do something - a process. So, writing a computer program can be like composing music, like building a house, like creating lots of stuff.

Just like we have many different languages in use throughout the world for us humans to communicate with, there are different languages that we use to communicate with a computer. Computer languages are used to tell the computer what to do, you instruct it. Programming Language

We need a language to communicate with a computer. Computer languages are used to tell the computer what to do, you instruct it. Once it is written, the programmer uses a compiler to turn it into a language that the computer can understand. Most software written today is using high level language such as C++, JAVA and etc. Programming Language

Top Programming Language Rank

History of Programming

What is Problem Solving ? The process of working through details of a problem to reach a solution. Problem solving may include mathematical or systematic operations and can be a gauge of an individual's critical thinking skills. 14/08/14

Steps in Program Development 1.Define the problem 2.Outline the solution 3.Develop the outline into an algorithm 4.Test the algorithm for correctness 5.Code the algorithm into a specific programming language 6.Run the program on the computer 7.Document and maintain the program

Steps 1: Define the Problem This steps involves carefully reading and rereading the problem until you understand completely what is required The problem should be divided into three (3) separate components: –The inputs –The outputs –The processing steps to produce the required output

Steps 2: Outline the Solution Once the problem defined, you may decide to break it down into smaller tasks or steps, and establish a solution outline –The major processing steps involved –The major subtasks (if any) –The user interface (if any) –The major control structures (e.g. repetition loop) –The major variables and record structure –The mainline logic

Steps 3: Outline into Algorithm The solution outline developed in Steps 2 is then expanded into an algorithm: a set of precise steps that describe exactly the tasks to be performed and the order in which they are to be carried out

Steps 4: Test the Algorithm The main purpose of desk checking the algorithm is to identify major logic errors early, so that they may be easily corrected Test data needs to be walked through each step in the algorithm to check that the instructions described in the algorithm will actually do what they are supposed to

Steps 5: Code the Algorithm Only after all design considerations in the previous four steps have been met should you actually start to code the program into your chosen programming language.

Steps 6: Run the program This step uses a programmer compiler and programmer-designed test data to machine test the code for syntax errors This steps may need to be performed several times until you are satisfied that the program is running as required.

Steps 7: Document and maintain the program Documentation includes both external documentation (such as hierarchy charts, the solution algorithm and test data result) and internal documentation that may have been coded in the program. Program maintenance refers to changes that may need to be made to a program throughout its life.

Algorithm Overview An algorithm is like a recipe; it lists the steps involved in accomplishing a task In a programming, it is a set of detailed, unambiguous and ordered instructions developed to describe the processes necessary to produce desired output Written in simple English

Important Properties of Algorithms Correct –always returns the desired output for all legal instances of the problem. Unambiguous Precise Efficient –Can be measured in terms of Time Space –Time tends to be more important

Algorithm Example For example, if you want to instruct someone to add up a list of prices on a pocket calculator, you might write: –Turn on calculator –Clear calculator –Repeat the following instructions Key in ringgit amount Key in decimal point Key in cents amount Press addition (+) key –Until all prices have been entered –Write down total price –Turn off calculator

14/08/14