SlideShare une entreprise Scribd logo
1  sur  7
Program Design


  For Event Driven
   Programming



                     1
Your Design
 Should include the following:
1. Labelled GUI Sketches
2. A Control Dictionary
3. A Data Dictionary
4. A description of program flow: One of an
   Action List, Jackson Structure
   Diagram, flow-chart or pseudo-code:
5. A Test Plan

                                              2
GUI Sketches
All controls must be labelled!


                            pctBounce




                                        3
Control Identifiers
All Controls should be named using a 3 letter
prefix with a descriptive name (so not txt1)

  Button        btn       e.g. btnQuit
  Label         lbl       e.g. lblResult
  TextBox       txt       e.g. txtName
  Picturebox    pct       e.g. pctEnemy
  Timer         tmr       e.g. tmrMove
  MenuItem      mnu       e.g. mnuSave
  Radiobutton   rdo       e.g. rdo80Gb
  Combobox      cbo       e.g.cboThree
                                                4
Control Dictionary
    Details of: Name, Type, Purpose and Properties.
        Include any Properties of a control that you change
        (e.g. timer interval)

Name             Type    Purpose                          Properties

Form1            Form    Contains the main game playing   Size = 600 x 500
                         area
tmrCountdown     Timer   Counts down from 60 to 0 to      Enabled = True
                         time-out the game.               Interval = 1000


…                …       …                                …




                                                                             5
A Data Dictionary

Table with details of: Name, Type and Purpose

  Name    Type      Purpose
  vmove   Integer   The number of pixels pctBounce will be
                    moved on the Y axis.
  …       …         …



All important variables should be included



                                                             6
Action List
    All event need to be described:
Form    Trigger     Event Handler         Description
Login   OK button   btnOK_Click()         The username and password the user has
        clicked                           entered into the text boxes txtUserName
                                          and txtPass are checked against the
                                          correct response (“User1” and “access”).
                                          If correct, the Login form is closed and the
                                          main form opened.
                                          If incorrect the number of incorrect
                                          counts (intWrongGuess) has 1 added.
                                          If there are 3 incorrect attempts the Form
                                          is closed.
Form1   Timer       tmrCountDown_tick()   Countdown (intTimeLeft) is decreased by
        counts down                       one and the result shown (lblTime).
        1 second                          If intTimeLeft = 0, the final score is shown
                                          (lblScore) and the timer is stopped.
…       …           …                     …
                                                                                         7

Contenu connexe

En vedette

Software development lifecycle
Software development lifecycleSoftware development lifecycle
Software development lifecyclenicky_walters
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programmingChaffey College
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof languagenicky_walters
 
Design documentation
Design documentationDesign documentation
Design documentationnicky_walters
 
Event driven programming amazeballs
Event driven programming amazeballsEvent driven programming amazeballs
Event driven programming amazeballsMsWillcox
 
Event oriented programming
Event oriented programmingEvent oriented programming
Event oriented programmingAshwini Awatare
 
(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming(WRK302) Event-Driven Programming
(WRK302) Event-Driven ProgrammingAmazon Web Services
 
Event+driven+programming key+features
Event+driven+programming key+featuresEvent+driven+programming key+features
Event+driven+programming key+featuresFaisal Aziz
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowchartsnicky_walters
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1luhkahreth
 

En vedette (16)

Decisions
DecisionsDecisions
Decisions
 
Simple debugging
Simple debuggingSimple debugging
Simple debugging
 
Software development lifecycle
Software development lifecycleSoftware development lifecycle
Software development lifecycle
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programming
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
 
Data structures vb
Data structures vbData structures vb
Data structures vb
 
Design documentation
Design documentationDesign documentation
Design documentation
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Event driven programming amazeballs
Event driven programming amazeballsEvent driven programming amazeballs
Event driven programming amazeballs
 
Event oriented programming
Event oriented programmingEvent oriented programming
Event oriented programming
 
(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming
 
Event+driven+programming key+features
Event+driven+programming key+featuresEvent+driven+programming key+features
Event+driven+programming key+features
 
Event driventheory
Event driventheoryEvent driventheory
Event driventheory
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 

Similaire à Design for edp

ITS-16163-Module 8-Graphic User Interface (GUI)
ITS-16163-Module 8-Graphic User Interface (GUI)ITS-16163-Module 8-Graphic User Interface (GUI)
ITS-16163-Module 8-Graphic User Interface (GUI)oudesign
 
Basic Concepts in Python
Basic Concepts in PythonBasic Concepts in Python
Basic Concepts in PythonSumit Satam
 
Burger doll order form
Burger doll order formBurger doll order form
Burger doll order formKhairi Aiman
 
Introduction to Basics of Python
Introduction to Basics of PythonIntroduction to Basics of Python
Introduction to Basics of PythonElewayte
 
Electrical Engineering Exam Help
Electrical Engineering Exam HelpElectrical Engineering Exam Help
Electrical Engineering Exam HelpLive Exam Helper
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answersRandalHoffman
 
02. Data Types and variables
02. Data Types and variables02. Data Types and variables
02. Data Types and variablesIntro C# Book
 
Development of a static code analyzer for detecting errors of porting program...
Development of a static code analyzer for detecting errors of porting program...Development of a static code analyzer for detecting errors of porting program...
Development of a static code analyzer for detecting errors of porting program...PVS-Studio
 
TOPIC-2-Expression Variable Assignment Statement.pdf
TOPIC-2-Expression Variable Assignment Statement.pdfTOPIC-2-Expression Variable Assignment Statement.pdf
TOPIC-2-Expression Variable Assignment Statement.pdfEjazAlam23
 
Introduction To Programming with Python-1
Introduction To Programming with Python-1Introduction To Programming with Python-1
Introduction To Programming with Python-1Syed Farjad Zia Zaidi
 
ControlLogix Timers FA16
ControlLogix Timers FA16ControlLogix Timers FA16
ControlLogix Timers FA16John Todora
 
Inventory management
Inventory managementInventory management
Inventory managementRajeev Sharan
 
Java Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type ConversionJava Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type ConversionSvetlin Nakov
 

Similaire à Design for edp (20)

ITS-16163-Module 8-Graphic User Interface (GUI)
ITS-16163-Module 8-Graphic User Interface (GUI)ITS-16163-Module 8-Graphic User Interface (GUI)
ITS-16163-Module 8-Graphic User Interface (GUI)
 
Stop watch and array
Stop watch and arrayStop watch and array
Stop watch and array
 
Basic Concepts in Python
Basic Concepts in PythonBasic Concepts in Python
Basic Concepts in Python
 
Burger doll order form
Burger doll order formBurger doll order form
Burger doll order form
 
Python 3.pptx
Python 3.pptxPython 3.pptx
Python 3.pptx
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
 
Session2
Session2Session2
Session2
 
python
pythonpython
python
 
Es272 ch2
Es272 ch2Es272 ch2
Es272 ch2
 
Introduction to Basics of Python
Introduction to Basics of PythonIntroduction to Basics of Python
Introduction to Basics of Python
 
Electrical Engineering Exam Help
Electrical Engineering Exam HelpElectrical Engineering Exam Help
Electrical Engineering Exam Help
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answers
 
E7
E7E7
E7
 
02. Data Types and variables
02. Data Types and variables02. Data Types and variables
02. Data Types and variables
 
Development of a static code analyzer for detecting errors of porting program...
Development of a static code analyzer for detecting errors of porting program...Development of a static code analyzer for detecting errors of porting program...
Development of a static code analyzer for detecting errors of porting program...
 
TOPIC-2-Expression Variable Assignment Statement.pdf
TOPIC-2-Expression Variable Assignment Statement.pdfTOPIC-2-Expression Variable Assignment Statement.pdf
TOPIC-2-Expression Variable Assignment Statement.pdf
 
Introduction To Programming with Python-1
Introduction To Programming with Python-1Introduction To Programming with Python-1
Introduction To Programming with Python-1
 
ControlLogix Timers FA16
ControlLogix Timers FA16ControlLogix Timers FA16
ControlLogix Timers FA16
 
Inventory management
Inventory managementInventory management
Inventory management
 
Java Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type ConversionJava Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type Conversion
 

Plus de nicky_walters

Plus de nicky_walters (6)

Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
 
Debugging
DebuggingDebugging
Debugging
 
Decisions
DecisionsDecisions
Decisions
 
Intro to visual studio 2008
Intro to visual studio 2008Intro to visual studio 2008
Intro to visual studio 2008
 
Input output
Input outputInput output
Input output
 

Design for edp

  • 1. Program Design For Event Driven Programming 1
  • 2. Your Design Should include the following: 1. Labelled GUI Sketches 2. A Control Dictionary 3. A Data Dictionary 4. A description of program flow: One of an Action List, Jackson Structure Diagram, flow-chart or pseudo-code: 5. A Test Plan 2
  • 3. GUI Sketches All controls must be labelled! pctBounce 3
  • 4. Control Identifiers All Controls should be named using a 3 letter prefix with a descriptive name (so not txt1) Button btn e.g. btnQuit Label lbl e.g. lblResult TextBox txt e.g. txtName Picturebox pct e.g. pctEnemy Timer tmr e.g. tmrMove MenuItem mnu e.g. mnuSave Radiobutton rdo e.g. rdo80Gb Combobox cbo e.g.cboThree 4
  • 5. Control Dictionary Details of: Name, Type, Purpose and Properties. Include any Properties of a control that you change (e.g. timer interval) Name Type Purpose Properties Form1 Form Contains the main game playing Size = 600 x 500 area tmrCountdown Timer Counts down from 60 to 0 to Enabled = True time-out the game. Interval = 1000 … … … … 5
  • 6. A Data Dictionary Table with details of: Name, Type and Purpose Name Type Purpose vmove Integer The number of pixels pctBounce will be moved on the Y axis. … … … All important variables should be included 6
  • 7. Action List All event need to be described: Form Trigger Event Handler Description Login OK button btnOK_Click() The username and password the user has clicked entered into the text boxes txtUserName and txtPass are checked against the correct response (“User1” and “access”). If correct, the Login form is closed and the main form opened. If incorrect the number of incorrect counts (intWrongGuess) has 1 added. If there are 3 incorrect attempts the Form is closed. Form1 Timer tmrCountDown_tick() Countdown (intTimeLeft) is decreased by counts down one and the result shown (lblTime). 1 second If intTimeLeft = 0, the final score is shown (lblScore) and the timer is stopped. … … … … 7