Software Development

  Assignment 3 Guide

Implementation Phase - Declare Your Variables

These notes guide you through how to declare your variables.

Introduction

Declare your Variables


Introduction

Objectives

This guide  will help you to: -  

  declare all your data variables in VB module

If you need to you should print out the following two assignment documents.

Assignment Scenario

Assignment 3: Implementation


Declare your Variables

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 Assignment 2 part a 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

  1. 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.

     

  2. 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. 


fini

 

 

   

  Unit Information

Assessment

Syllabus

Scheme of Work

Notes &Tutorials

Assignments

Quizzes

Books & Things

Links