Mind map
Software structures- the structure of a program depends on the type of programming langauge
Map content
Software structures- the structure of a program depends on the type of programming langauge
Functions
- Two types of functions
- built-in
- already provided
- IsNumeric
- validates values
- If IsNumeric (txtAge.Text) Then age = txt Age.Text Else Msg Box('Age must be numeric') End If
- user-defined functions
- written by programmer
- built-in
- Two types of functions
Procedures
- Starts with one line of code
- created by VB
- Ends with 'End Sub'
- Starts with one line of code
Classes and objects
- based on realistic things
- linking data and functions
- closely related to the concept of the object is the class
- class is template
- aka. attributes
- Example: book attribute is a titile
- aka methods
- Example: a customer class might have a 'change of address' method.
- aka. attributes
- class is template
Pre-defined code
- saves time
- already tested
- use code from previous projects
- saves time
Readability
- Comments
- ignored by computer
- easy to understand
- important to large projects
- single quotation mark
- auto coloured green
- Loop or selcetion
- easy to see where code starts and finsihes
- Using appropriate names
- Variables
- use names that describe variables
- studentName
- Unit1Grade
- Comments
Quality of code
- Reliable and robust
- able to handle errors
- tested thoroughly
- Usability- easy to use
- clearly labelled controls
- buttons
- text boxes
- logically arranged controls
- ordered
- controls grouped by function
- figures out how program is used
- clearly labelled controls
- Portability
- run on different hardware
- Maintainability
- maintained with updates
- make software easier to maintain
- detailed and technical documentation
- well-written programs
- using meaningful variable names
- indenting loop and selection instucrtions
- Reliable and robust
Information
- Description
- Mind Map on Software structures- the structure of a program depends on the type of programming langauge, created by cherrellewilson9 on 25/11/2014.
- Created by
- cherrellewilson9 · Nov 2014
- Updated
- Feb 19, 2016
- Views
- 8
- Rating