Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.

Slides:



Advertisements
Similar presentations
Ch13QQ T F 1. The first step in the program development life cycle (PDLC) is problem analysis. T F 2. The use of structured programming typically.
Advertisements

PROBLEM SOLVING TECHNIQUES
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
1.4 Programming Tools Flowcharts Pseudocode Hierarchy Chart
Chapter 1 - An Introduction to Computers and Problem Solving
Introduction to Programming
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2 - Problem Solving
زبانهای برنامه سازی برنامه سازی پیشرفته ارائه دهنده دکتر سيد امين حسيني E.mail: Home page:
 Introduction to Programming History of programming.
King Saud University College of applied studies and community services CSC 206 Programming with Basic Lecture 1.
Chapter 2- Visual Basic Schneider
The Program Development Cycle and Program Design Tools
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
Chapter 1 Program Design
Developing logic (Examples on algorithm and flowchart)
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 3P. 1Winter Quarter Structured Engineering.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
Chapter 3 Planning Your Solution
PRE-PROGRAMMING PHASE
Chapter 1 Pseudocode & Flowcharts
Your Interactive Guide to the Digital World Discovering Computers 2012.
1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and Files 1.3 Program Development.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
Structured COBOL Programming, Stern & Stern, 9th edition
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
Chapter 2 - VB.NET by Schneider1 Chapter 2 - Problem Solving Program Development Cycle Programming Tools.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
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.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
1 Program Planning and Design Important stages before actual program is written.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
The Hashemite University Computer Engineering Department
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2- Visual Basic Schneider1 Programming Languages: Machine Language Assembly Language High level Language.
 Problem Analysis  Coding  Debugging  Testing.
Programming Languages
CSCI-235 Micro-Computer Applications
Computer Programming.
Chapter 2- Visual Basic Schneider
Introduction to Computing
An Introduction to Visual Basic .NET and Program Design
Problem Solving Techniques
Chapter 2- Visual Basic Schneider
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
Flowcharts and Pseudocode
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Introduction to Programming
Presentation transcript:

Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving

Chapter 2- Visual Basic Schneider2 Outline and Objective Program Development Cycle Programming Tools

Chapter 2- Visual Basic Schneider3 Programming Languages: Machine Language Assembly Language High level Language

Chapter 2- Visual Basic Schneider4 Machine Language The fundamental language of the computer’s processor, also called Low Level Language. All programs are converted into machine language before they can be executed. Consists of combination of 0’s and 1’s that represent high and low electrical voltage.

Chapter 2- Visual Basic Schneider5 Assembly Language A low level language that is similar to machine language. Uses symbolic operation code to represent the machine operation code.

Chapter 2- Visual Basic Schneider6 High Level Language Computer (programming) languages that are easier to learn. Uses English like statements. Examples are C ++, Visual Basic, Pascal, Fortran and …....

Chapter 2- Visual Basic Schneider7 Program Development Cycle: 1. Analyze: Define the problem 2. Design: Plan the solution to the problem 3. Choose the Interface: Select the objects

Chapter 2- Visual Basic Schneider8 Program Development Cycle: 4. Code: Translate the algorithm into a programming language. 5. Debug and Test: Locate and remove any errors in the program. 6. Complete the Documentation: Organize all the materials that describe the program.

Chapter 2- Visual Basic Schneider9 Programming Tools: Flowchart Pseudocode Hierarchy Chart (Structure chart)

Chapter 2- Visual Basic Schneider10 What is a flowchart? Logic diagram to describe each step that the program must perform to arrive at the solution. A popular logic tool used for showing an algorithm in graphics form.

Chapter 2- Visual Basic Schneider11 Continue flowchart Programmer prepares flowchart before coding. Most common flowchart symbols are:

Chapter 2- Visual Basic Schneider12 Purpose of Flowcharting: An aid in developing the logic of a program. Verification that all possible conditions have been considered in a program. Provides means of communication with others about the program. A guide in coding the program. Documentation for the program.

Chapter 2- Visual Basic Schneider13 Example of Flowchart: Start Initialize Counter =0 and sum to 0 Are there more data Get next grade Increment counter Add grade to sum Yes No

Chapter 2- Visual Basic Schneider14 Desk Checking The process of testing the flowchart with different data as input, and checking the output. The test data should include nonstandard data as well as typical data.

Chapter 2- Visual Basic Schneider15 What is a Pseudocode? A program design technique that uses English words. Has no formal syntactical rules.

Chapter 2- Visual Basic Schneider16 Example of Pseudocode: Determine the average grade of a class: Do while there are more data Get the next Grade Add the Grade to the Sum Increment the Counter Loop Compute average = Sum / Counter Display average

Chapter 2- Visual Basic Schneider17 What is a Hierarchy Chart? Shows the overall program’s structure. Describes what each part, or module, of the program does. Also how each module relates to other modules in the program.

Chapter 2- Visual Basic Schneider18 Example of Hierarchy Chart: Class average Program Get Grade Calculate Average Compute Sum Display Average