Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Procedural programming tools and techniques

No description
by

Edward Curran

on 9 December 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Procedural programming tools and techniques

Main Procedure - a method that doesn't return a value
Function - this returns a value
Another function with a parameter - num - which is passed into the function
This defines the function - it has 1 parameter - type byte and a return value
bool
when the function finishes it returns a value to the method that called it
use of predefined library function
Global variables - declared in Class LotteryPick 2
Declared outside methods - any method in class can use these
Local variable - declared in Main
Can only be used and seen in Main
Local variable - declared in getUnusedRandomNumber
Can only be used and seen in getUnusedRandomNumber
Local variables - declared in isAlreadyUsed
Can only be used and seen in isAlreadyUsed
The programming Libraries that this program will use
This program has one procedure - Main
Two functions -
getUnusedRandomNumber
isAlreadyUsed

This defines the function - it has no parameter and a return value
byte
when the function finishes it returns a value to the method that called it
Predefined Library Functions
Full transcript