Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.

Slides:



Advertisements
Similar presentations
PROBLEM SOLVING TECHNIQUES
Advertisements

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
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2 - Problem Solving
 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
Programming Tools Flowcharts Pseudocode Algorithm Chapter 2.
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: Input, Processing, and Output
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)
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
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 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 3 Planning Your Solution
PRE-PROGRAMMING PHASE
Chapter 1 Pseudocode & Flowcharts
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
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.
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.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
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.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
Chapter 2: General Problem Solving Concepts
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
Cs413_design04.ppt Design and Software Development Design : to create a functional interface that has high usability Development : an organized approach.
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 Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Computer Programming 12 Lesson 6 – Loop structure By: Dan Lunney.
 Problem Analysis  Coding  Debugging  Testing.
ALMAJMA'AH UNIVERSITY College of Science and Humanitarians Studies in Alghat Management Information System Section (211 NMA course) Introduction to Programming.
Chapter One Problem Solving
Program design Program Design Process has 2 phases:
Chapter 2: Input, Processing, and Output
Chapter 2- Visual Basic Schneider
System Design.
Introduction to Computing
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
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 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 Schneider4 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 Schneider5 Programming Tools: Flowchart Pseudocode Hierarchy Chart (Structure chart)

Chapter 2- Visual Basic Schneider6 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 Schneider7 Continue flowchart Programmer prepares flowchart before coding. Most common flowchart symbols are:

Chapter 2- Visual Basic Schneider8 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 Schneider9 Example of Flowchart: Start Initialize Counter =1 and sum to 0 Are there more data Get next grade Increment counter Add grade to sum Yes No

Chapter 2- Visual Basic Schneider10 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 Schneider11 What is a Pseudocode? A program design technique that uses English words. Has no formal syntactical rules.

Chapter 2- Visual Basic Schneider12 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 Schneider13 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 Schneider14 Example of Hierarchy Chart: Class average Program Get Grade Calculate Average Compute Sum Display Average