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