Chapter 2- Visual Basic Schneider

Slides:



Advertisements
Similar presentations
PROBLEM SOLVING TECHNIQUES
Advertisements

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
 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
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.
Problem Solving Chapter 2. What is an algorithm? n A solution to a problem that is: –Precise –Effective –Terminating.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 3 Planning Your Solution
The Program Design Phases
Review Algorithm Analysis Problem Solving Space Complexity
PRE-PROGRAMMING PHASE
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 3P. 1Winter Quarter Structured Engineering.
Chapter 1 Pseudocode & Flowcharts
IE 212: Computational Methods for Industrial Engineering
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
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
Chapter 2 - VB.NET by Schneider1 Chapter 2 - Problem Solving Program Development Cycle Programming Tools.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with.
Chapter 2: General Problem Solving Concepts
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 3P. 1Winter Quarter Structured Engineering Problem Solving and Logic.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
Computer Programming CONTENTS Introduction to Operating Systems Introduction to programming languages Introduction to perl programming language Programming.
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.
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.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
 Problem Analysis  Coding  Debugging  Testing.
Chapter One Problem Solving
Chapter One Problem Solving
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.
Introduction to Computer Programming
Unit# 9: Computer Program Development
Problem Solving Techniques
Chapter 2- Visual Basic Schneider
Chapter 1 Pseudocode & Flowcharts
Introduction to Algorithms and Programming
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
Flowcharts and Pseudocode
CSC 110 PROGRAMMING LOGIC CHAPTER 2
CSC 110 PROGRAMMING LOGIC CHAPTER 2
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Programming Logic and Design Eighth Edition
Introduction to Programming
Presentation transcript:

Chapter 2- Visual Basic Schneider Problem Solving Chapter 2- Visual Basic Schneider

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

Program Development Cycle: 1. Analyze: Define the problem 2. Design: Plan the solution to the problem 3. Develop the Interface: Select the objects Structured Programming Using top_down design Using modules Using the three basic control structure Defining and Documenting the Problem Desired output Needed input Processing requirements Designing and Documenting a Solution Think of an algorithm , or a method of solution, for the computer to use. This method must be a complete procedure for solving the problem in a finite number of steps. Chapter 2- Visual Basic Schneider

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. Debugging and Testing: Syntax error Run-time error Logic error Chapter 2- Visual Basic Schneider

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

Chapter 2- Visual Basic Schneider What is a flowchart? Diagram that visually represents the steps that the program performs to arrive at a solution. A popular logic tool used for showing an algorithm in graphical form. Name: Flowlinee: Used to connect symbols and indicate the flow of logic Terminal: Used to represent the beginning or the end of task Input/output: Used for input and output operations, such as reading and printing. Processing: Used for arithmetic and data manipulation operations Decision: Used for any logic or comparison operations. Unlike the two other symbols , which have one entry and one exit flowline, the decision symbol has one entry and two exit paths. Chapter 2- Visual Basic Schneider

Chapter 2- Visual Basic Schneider Continue flowchart Programmer draws flowchart before coding. Most common flowchart symbols are: Flowline Terminal Input/Output Processing Decision Chapter 2- Visual Basic Schneider

Chapter 2- Visual Basic Schneider Start Example of Flowchart: Initialize counter and sum to 0 Are there more data? No Yes Get next grade This is a program to insert grades and calculate the average Increment counter Add grade to sum Determine the average grade of a class Average=sum/counter Print the average Chapter 2- Visual Basic Schneider Finish

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 Schneider

Chapter 2- Visual Basic Schneider 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 Schneider

Chapter 2- Visual Basic Schneider What is Pseudocode? An algorithm design technique that uses a combination of English words and Visual Basic statements Used to create a rough sketch of the steps required to complete a task The programmer can describe the algorithm without being restricted by any programming rules. The Psedocode can easily be translated into the VB language It is compact and the plan looks like the code to be written.. Chapter 2- Visual Basic Schneider

Example of Pseudocode: Determine the average grade of a class: Initialize Counter and Sum to 0 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 Schneider

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

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