Professional Documents
Culture Documents
Work For Steve
Work For Steve
Work For Steve
Timmy Trieu
2A.P1) Explain the purpose of two simple
programs and their characteristics,
including tools and techniques used.
Purpose – Maze game
• Explain one purpose of the maze game program
- Module and sub-routines (What are they?) A sub routine is procedures that you
can define in visual basic and a module is a set of of standard parts of an unit that
can be used to make more in total. Visual basic uses sub routines to break down
the parts into modules.
- Variables and Data Types (What variables were used? What data types were they?
Why were they used?) The variables used in the maze game program is
“picturearray” and “X” and for the data types its “ PictureBox”. They are used to
identify the value of the variable and so it can operate and be performed.
- Mathematical Operators (What are they? What operators were used
and why?) They’re used to perform many of familiar arithmetic
operators that involve the calculation of number value.
The code was commented so that its purpose is of making the source
code easier for us to understand, and are generally ignored by
compilers and interrupters
Code and commenting – Maze game program
Purpose - Languages program
• Explain one purpose of the language program
One purpose for the language program was to inform the audience on
different languages whilst saying “hello world”.
Screenshots - Languages program
- Module and sub-routines (What are they?) A sub routine is procedures that
you can define in visual basic and a module is a set of of standard parts of
an unit that can be used to make more in total. Visual basic uses sub
routines to break down the parts into modules.
- Variables and Data Types (What variables were used? What data types were
they? Why were they used?) The only variable and data types were used
were “E”. This was used so it can identify the variable so it can be performed.
- Mathematical Operators (What are they? What operators were used and
why?) They’re used to perform many of familiar arithmetic operators that
involve the calculation of number value.
• One quality of the maze program was that the coding was quite easily
readable.
Improvements – maze program
• Suggest at least three improvements
Character moves in
User pressed directions
start direction in which uses
keys to navigate to the end.
presses.
If user
Game ends. collides with
wall
• Another strength is that is that its quite readability within the code.