CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.

Slides:



Advertisements
Similar presentations
CE 311 K Introduction to Computer Methods VB Controls and Events Daene C. McKinney.
Advertisements

PROBLEM SOLVING TECHNIQUES
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
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
Creating an OOED Application
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider
Programming Tools Flowcharts Pseudocode Algorithm Chapter 2.
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 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Introduction to Computers and Programming
COS120 Software Development Using C++ AUBG Fall semester 2010
6 Steps of the Programming Process
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.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
COS120 Software Development Using C++ AUBG Fall semester 2010 Ref book: Problem Solving, Abstraction and Design Using C++ Authors: Frank Friedman, Elliot.
Visual Basic 2005 SCOPE Visual Basic Hands-on Training.
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.
PROBLEM SOLVING The first step in writing instructions to carry out a task is to determine what the output should be (What should the task produce?)
Programming Lifecycle
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: An Introduction to Programming Using Visual Basic 2012, All Rights ReservedAn Introduction.
The Software Development Life Cycle. Software Development SDLC The Software Development Life-Cycle Sometimes called the program development lifecycle.
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.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
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.
1 Programming with MATLAB ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Cs413_design04.ppt Design and Software Development Design : to create a functional interface that has high usability Development : an organized approach.
Chapter 11 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.
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.
SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.
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.
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
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.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
MIT App Inventor Lesson 3 Algorithms Variables Procedures.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
ALMAJMA'AH UNIVERSITY College of Science and Humanitarians Studies in Alghat Information Technology Section (211Tal course)
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
ALMAJMA'AH UNIVERSITY College of Science and Humanitarians Studies in Alghat Management Information System Section (211 NMA course) Introduction to Programming.
Visual Basic Programming Introduction to Computers Programming.
Chapter 2- Visual Basic Schneider
Chapter 1 - An Introduction to Computers and Problem Solving
An Introduction to Visual Basic .NET and Program Design
Problem Solving Techniques
flow charts and system diagrams
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
Intro to digital technology
ICT Gaming Lesson 2.
Basic Concepts of Algorithm
4d – Program Design Lingma Acheson CSCI N331 VB .NET Programming
Presentation transcript:

CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu

Software Development Cycle Analyze Design Choose the Interface Build Interface and Write Code Test and Debug Complete Documentation

Analyze Analyze... the problem; determine the events that the controls on the window should respond to what inputs are needed and supplied what output is required Design Choose the Interface Build Interface and Write Code Test and Debug Complete Documentation

Design Analyze Design... an algorithm a sequence of steps to solve the problem Choose the Interface Build Interface and Write Code Test and Debug Complete Documentation

Design techniques Three design techniques Flowchart Show graphically the steps needed to complete a task and how they relate to each other Pseudocode Outline the task using English-like and Visual Basic-like phrases Hierarchy Chart Shows how the different parts of a program relate to each other

Pseudocode Ask the user for a number. If it's 0 (zero) print “no zero, pls”. If it's not zero, display the result of 70/number PRINT "Enter number: " READ number IF number IS 0 PRINT "Enter number: ” ELSE PRINT 70/number

Choose the Interface Analyze Design Choose the Interface how to obtain input from the user text box, combo box, list, menu, button, etc. how to display any results to the user text box, table, graphics, etc. Build Interface and Write Code Test and Debug Complete Documentation

Building Interface and Write Code Analyze Design Choose the Interface Build Interface and Write Code Create interface using VB controls Adjust settings of controls; write the handlers for the events defined in step 2 (design phase) Translate algorithm into VB Comment Code Test and Debug Complete Documentation

Test and Debug Analyze Design Choose the Interface Build Interface and Write Code Test and Debug Testing: Finding errors in your program Run program on expected input Run program on unexpected input Debugging: Fixing errors in your program Complete Documentation

Analyze Design Choose the Interface Build Interface and Write Code Test and Debug Complete Documentation Finalize comments in code Create document describing: What program does What its input and output are

Rock/Paper/Scissors Game ***************** Write a program that will simulate the rock/paper/scissors game. You will play against the computer. The program will display who won.