Category Archives: 2. Software Development
Standard Algorithims
All students and teachers are welcome to attend these Live Online Sessions which are interactive events hosted by subject specialists who have extensive teaching experience.
Each session lasts up to an hour in total, including time for questions and answers towards the end.
Theme: | Standard Algorithms |
---|---|
Subjects: | Higher Computing |
Audience: | Student |
When: | Wednesday, 19 November 2014 7:30 PM |
Presented by: | Ian King, SCHOLAR Online Tutor for Computing and Information Systems |
Session link: | http://heriot-watt.adobeconnect.com/scholarhomework (Enter as a Guest) |
Scholar Online Homework Session
Theme: | Arrays |
---|---|
Subjects: | Higher Computing |
Audience: | Student |
When: | Wednesday, 29 October 2014 7:30 PM |
Presented by: | Ian King, SCHOLAR Online Tutor for Computing and Information Systems |
Session link: | http://heriot-watt.adobeconnect.com/scholarhomework (Enter as a Guest) |
You can check on other sessions here.
How to Join
To join a Live Online Session simply follow the session link in the relevant table above up to 30 minutes before the published start time. Enter the session as a guest using your forename or maybe a nickname. All sessions are recorded for use on the SCHOLAR site so please do not share any personal information. Please note that the online room is limited to 100 participants so join in early to avoid disappointment!
All modern web browsers support Adobe Connect via the Adobe Flash 10.3 (or higher) plugin, while Android, BlackBerry and iOS apps are available to install on compatible devices. Audio speakers or headphones are required to listen to the presenter. Please make sure to set up your device in advance of sessions. For full technical specifications see: http://www.adobe.com/uk/products/adobeconnect/tech-specs.html
Parameters and data flow
This is always a hot topic at this time of year. It’s been a while since we did procedures, parameters, byVal, Byref & Data Flow
From Shawlands Acc
- Data flow within a program is handled by parameters
- A parameter is a value or a variable which is passed into or out from a subroutine
- The parameters used in a procedure call are ACTUAL parameters
- The parameters used in a procedure definition are called FORMAL parameters
- A parameter is passed BY REFERENCE if it is to by passed into and back out of a procedure
- A parameter is passed BY VALUE if it is to by passed into but NOT back out of a procedure
- Arrays are ALWAYS passed by reference
- The use of parameters means that variables can be kept local to subroutines
- This leads to programs being more reliable and robust
Parameter Passing
I was asked a question on parameter passing today. So we came up with mnemonic to try and help you out.
Knowledge to remember
- By Reference = Input/Output = Changing the value of the original data
- By Value = Input = Changing the copy of the data.
Mnemonic – Remember you only need to remember one way to work out the reverse.
- PRO – Passing Reference Original/Output
- PVC – Passing Value Copy
Spring break – Revision
Use the 3 documents below to create a set of your own revision notes. You might want to use books, notes, presentations or the scholar website to help you.
Don’t copy and paste from the Internet. type each one out by hand.
Module Libraries
A module library contains a set of pre written and pre tested procedures that can be used by the main program to complete its tasks. This has the advantage of speeding up the development of the software.
Some companies also provide access to module libraries they maintain to allow you to work with their products. i.e. Google
Case Statement
The case statement is used to make complex selection easier. It is used with one variable i.e
- Case Age
- >=21: Display over 21
- >=18: Display over 18
- <18: Display Under 18
Macros and Scripts
A lot of people get these two terms mixed up.
- A script is a piece of code that is written or edited and can be attached to a button or ran directly.
- A Macro on the other hand is a sequence of steps that is recorded from the users actions.
They are very easy to mix up so read any questions carefully.
Declarative Languages
A declarative language makes use of facts and rules to solve the problem. Prolog is an example of a declarative language.