Practical Programming COMP153-08S Week 6: Program Design/Development, Arrays.

Slides:



Advertisements
Similar presentations
1.
Advertisements

Programming Paradigms and languages
Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
Multimedia Specification Design and Production 2013 / Semester 1 / week 7 Lecturer: Dr. Nikos Gazepidis
1 Information Systems Development (ISD) Systems Development Life Cycle Overview of Analysis Phase Overview of Design Phase CP2236: Information Systems.
Chapter 11: Classes and Objects
1.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Programming with Microsoft Visual Basic 2005, Third Edition
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 2 Software Processes.
VBA Modules, Functions, Variables, and Constants
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 15 Finalizing.
Arrays.
Information Systems Development Lecture 2: the idea of the Life Cycle.
Introduction to Programming with C++ Fourth Edition
Chapter 1 Program Design
SDLC and Related Methodologies
Objectives By the end of today’s class you will be able to… –Describe the major steps in the interaction design process –Explain the importance of iterative.
CHAPTER 19 Building Software.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
BTEc unit 12 software development
Variables, Constants, Methods, and Calculations Chapter 3 - Review.
Systems Analysis – Analyzing Requirements.  Analyzing requirement stage identifies user information needs and new systems requirements  IS dev team.
Managing the development and purchase of information systems (Part 1)
A Level Computing#BristolMet Session Objectives U2#S6 MUST identify different data types used in programming aka variable types SHOULD describe each data.
Systems Life Cycle DESIGN STAGE
For Loops 2 ENGR 1181 MATLAB 9. For Loops and Looped Programming in Real Life As first introduced last lecture, looping within programs has long been.
Microsoft Visual Basic 2008 CHAPTER NINE Using Arrays and File Handling.
CS 360 Lecture 3.  The software process is a structured set of activities required to develop a software system.  Fundamental Assumption:  Good software.
Chapter Ten Structures and Sequential Access Files Programming with Microsoft Visual Basic th Edition.
Chapter 6: The Repetition Structure
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
CS285 Visual Basic 2 Department of Computing UniS 1 Statements in Visual Basic A statement is the fundamental syntactical element of a program smallest.
Visual Basic Programming
CS Data Structures I Chapter 2 Principles of Programming & Software Engineering.
Higher Grade Computing Studies 3. High Level Language Constructs Higher Computing Software Development S. McCrossan 1 Simple Data Types Integer: An integer.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
Visual C++ Programming: Concepts and Projects Chapter 11B: Pointers (Tutorial)
Visual Basic Games: Week 4 Recap Parallel structures Initialization Prepare for Memory Scoring Shuffling Homework: when ready, move on to next game/chapter.
1 CS 501 Spring 2004 CS 501: Software Engineering Lecture 2 Software Processes.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
I Power Higher Computing Software Development High Level Language Constructs.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Software Development Problem Analysis and Specification Design Implementation (Coding) Testing, Execution and Debugging Maintenance.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
#AgileEd. Using Agile in the Classroom Cindy Royal, Associate Professor Texas State University slideshare.net/cindyroyal #AgileEd.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Ten Structures and Sequential Access Files.
 Software Development Life Cycle  Software Development Tools  High Level Programming:  Structures  Algorithms  Iteration  Pseudocode  Order of.
1 Writing Software Kashef Mughal. 2 Algorithms  The term algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem.  An Algorithm.
An Introduction to Programming with C++ Sixth Edition Chapter 12 Two-Dimensional Arrays.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Tutorial 81 Field, Record, Data File Field - a single item of information about a person, place, or thing Record - a group of related fields that contain.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
Programming. Exam Validation 1-10 Technical words such as Method of validation Do not use “Something”.
XP Tutorial 3 New Perspectives on JavaScript, Comprehensive1 Working with Arrays, Loops, and Conditional Statements Creating a Monthly Calendar.
1 Modern Systems Analysis and Design Hoffer, George & Valacich Chapter 13 Finalizing Design Specifications Course: Physical System Design and Implementation.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 19 A Ray of Sunshine.
© 2006 Lawrenceville Press Slide 1 Chapter 4 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration statement. For example: Dim.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Software Design and Development Development Methodoligies Computing Science.
SDLC and Related Methodologies
Unit 6 Application Design KLB Assignment.
Software Engineering Lecture 09 & 10.
Methodologies For Systems Analysis.
Methodologies For Systems Analysis.
Software Engineering Lecture 18.
CIS16 Application Development and Programming using Visual Basic.net
SDLC and Related Methodologies
Basic Concepts of Algorithm
Presentation transcript:

Practical Programming COMP153-08S Week 6: Program Design/Development, Arrays

Four Essential Phases for Software Development Requirements –Specifications from user, analysis from programmer System Design Coding Testing

Tools to assist with System Design Task Object Event chart Flow Chart Pseudo Code Paper Prototype

Task Object Event (TOE) chart Task ObjectEvent Clear the screenEntDateLabel, DateDisplayLabel Startup 1.Get date from User: 2.Calculate day, month 3.Display in DateDisplayLabel AddDateButtonClick 1.Calculate new day, month 2.Display in DateDisplayLabel NZRadioButton USRadioButton Click End the applicationExitButtonClick

Flow Charts start Enter date Separate day & month NZ date? Select month name Switch day & month display end No Yes

Pseudo Code 1.Clear labels 2.Get DateStr from user 3.Extract Day & Month from Datestr 4.If not NZ date then swap Day & Month 5.Determine MonthName 6.Display Day and MonthName 7.End

Paper Prototype

Software Development Life Cycle Has birth, various stages, then an end A model of the phases in which software is built Many different variations Programming is only a small part

Big Bang Model Developer receives problem statement Developer works in isolation for a long period of time Developer delivers results Developer hopes client is satisfied

Requirements Specification Design Coding Testing Commission Maintenance Traditional Waterfall Model

Requirements Specification Design Coding Testing Commission Maintenance Waterfall Model with backflow

Rapid Prototyping Model Build prototypes before real system Formal Methods – Transformation Animate/Prove specification Design steps that preserve correctness Iterative/Spiral Model Build final system in several independent sections Extreme Programming Model Small iterations, Frequent testing, Pair Programming… Other Software Development Life Cycles

What is an Array?

A group of items that are stored together, that have similar characteristics, and are related in some way

What is an Array in Visual Basic? A group of variables that are stored together, have the same data type, and are named in the same way

Creating an Array Dim NZBWCD(9) as string Dim Players(14) as string Dim BatsmanScore(11) as Integer Dim Absentees() As String ={“Jim”, “James”, “John”, “Jack”} Dim Heights() As Decimal = {48, 54, 82, 59, 78, 68, 54}

Storing Data in an Array NZBWCD(5) =“NZO6” Players(6) = “Peter” BatsmanScore(0) = 100 Absentees(2) = “Mary” Heights(5) = 100

Two other Array Commands Array.Sort(Players) Array.Reverse(BatsmanScore)

Parallel One Dimensional Arrays Two (or more) one dimensional arrays whose elements are directly related by their position GolpherName(0) relates to GolpherScore(0) GolpherName(1) relates to GolpherScore(1) GolpherName(2) relates to GolpherScore(2) Note: be careful when sorting these! Note: these arrays have different data types.

Two Dimensional Arrays Dim BattingScores(11,1) As Integer BattingScores(3,0) = 57 BattingScores(3,1) = 74 BatterTotal = BattingScores (3,0) + BattingScores (3,1) BatterMessage.txt = “The total for this batsman is ” _ & BatterTotal

THE END of the lecture