A useful thing to do to before starting your serious
coding is to declare all your variables in separate coding module. If
you have completed Assignment2parta
you will already have a convenient list of some of the variables you will
need. If not, make a list for yourself.
~~ Input Variables ~~
RectLawnLength
RectLawnWidth
etc.
~~ Stored Data Variables ~~
LawnSeedCoverage
LawnSeedInBag
etc.
~~ Output Variables ~~
AmountLawnSeed
NumBagsLawnSeed
etc.
It is likely you will need intermediate variables - used
temporarily to hold results, e.g.
~~ Misc Variables ~~
AmountRectLawnSeed
AmountCirctLawnSeed
etc.
Before declaring your variables, you will need to add a
VB module to your Project.
Your Task
Here are step by step instructions on how to declare your
variables. You are going to declare all your variables inside a separate
coding sheet called a module.
Module Coding Windows
If you have not added a module to your project already,
then on the VB menu, click Project, then Add
Module. A new white coding window should appear. You need to save
the separate module just like you save a form. Here is a picture
of my VB explorer window showing two forms (input and output) and
my module.
If you double-click the module you should get a white
coding window. In the coding window, declare your variables
like so...
etc.
~~Activity~~
Activity A
Declare all your input, output and stored data variables in a VB module.
When you have declared your variables, click the save
button
to save your work.