Download presentation
Presentation is loading. Please wait.
1
PseudoCode Damian Gordon
2
Pseudocode The first thing we do when designing a program is to decide on a name for the program.
3
Pseudocode The first thing we do when designing a program is to decide on a name for the program. Let’s say we want to write a program to calculate interest, a good name for the program would be CalculateInterest.
4
Pseudocode The first thing we do when designing a program is to decide on a name for the program. Let’s say we want to write a program to calculate interest, a good name for the program would be CalculateInterest. Note the use of CamelCase.
5
Pseudocode The first thing we do when designing a program is to decide on a name for the program. Let’s say we want to write a program to calculate interest, a good name for the program would be CalculateInterest. Note the use of CamelCase.
6
Pseudocode So we start the program as: PROGRAM CalculateInterest:
7
Pseudocode So we start the program as: PROGRAM CalculateInterest:
And in general it’s: PROGRAM <ProgramName>:
8
Pseudocode Our program will finish with the following: END.
9
Pseudocode Our program will finish with the following: END.
And in general it’s the same:
10
Pseudocode So the general structure of all programs is:
PROGRAM <ProgramName>: <Do stuff> END.
11
Components Sequence Selection Iteration
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.