Monday, March 22, 2010




I am making these posts so that i can refer back to them and i have them somewhere safe so i can see what Iv'e done to help me with my assignment

Learning & Assessment Activity



This activity is preparation for assessment item 2.

Part One: Translate the following scenario into a class diagram using the classes, states, behaviors & relationships identified.
The scenario:

A hermit lives in a cave. The cave's location within the world is determined by x, y & z coordinates. The hermit's name is Freeda and she is 100 years old. Many animals also live in the cave and they can talk. All of the animals have a first name & age. There are bats which fly & screech & there are lizards that run, hide & sing.


Part Two: Translate the class diagram into VB.NET code.

Note: You are only required to fully implement behaviors that are getters, setters or constructors - other behaviors, such as 'talk', should simply appear as behavior signatures.

Part Three: Publish a screenshot of your class diagram, along with the scenario description to your blog

Sunday, March 21, 2010



Instead of having my information pop up in a message box, I have made the information appear in labels as you can see in the form above
As my form does not have labels telling you what the answers are in relation to I will let you know in order of what the labels represent:
The Name
The Health
The Password
The Account Status
The Max Altitude
The Damage Rate
The Sword Price

Friday, March 19, 2010

I Heart Mermaids

I had to share this with you,I love mermaids and one of my favourite websites is Face In Hole where i was able to make this cool creation

Monday, March 15, 2010

The Flight Object

Now I begin to code My Flight Object in Visual Basic showing the getters and the setters the functions and the subroutines etc

The Sword Object

Now I begin to code My Sword Object in Visual Basic showing the getters and the setters the functions and the subroutines etc

Calling a procedure

I have called for a name,health,active account and a password

Accessors & Mutators:What are they?

An Accessor or a Getter allows other objects to read the value of a state
It is nearly always implemented as a a function

A Mutator or a Setter allows other objects to change the value of a state
It is usually implemented as a subroutine

Interface Design:Mockai Project

I wanted to post something from a different class,I like my blog and I like making many posts that include anything and everything that I do,so here it is...

Sunday, March 14, 2010

GetName

This is how we return a name value in a message box



Dummy Data

Assigning Values

Using a Constructor when coding in VB Studio

We have now added our constructor which includes our list of parameters

We have declared a place in memory for our player class diagram by coding the information from it into visual basic

My Wand Class with a Constructor

A Constructor is a behavior,it is the first behavior listed in a class diagram
In a class diagram we see it as (New)
It is a subroutine behavior,it cannot return a value so for this reason it is always implemented as a subroutine

Wednesday, March 10, 2010

Parameters Subroutines Functions

I am going to try my best to explain how parameters are used in subroutines and in functions,Here goes...to my understanding:)

Parameters are the inputs required for a behaviour to execute/work/run

In order to accomplish a task on some occasions further input or information is needed and thats where parameters come into play

In the case of subroutines let me use this example:

Public Sub Login(Username as string,Password as string)

In the above example there are two parameters needed in order to execute the behaviour which in this case is loging in,in order to do this we need our username and password otherwise we cant log in

Keeping in mind that a subroutine executes code but does not return a value

In the case of functions let me use this example:

Public Function Calculate(NumberOne as integer,NumberTwo as integer)As integer

In the above example there are also two parameters needed in order to execute the behaviour which in this case is the calculation of number one and the calculation of number two

In these examples we see that yes sometimes more then one parameter is needed in order to execute a code

Since a function returns a value the result of the parameters will be returned as an integer because as you can see above we asked for an interger value to be returned

Monday, March 8, 2010

My First Procedure Making A Computer Do Something

http://msdn.microsoft.com/en-au/library/74dh43ez.aspx

The message box displays the date and time

Has A & Is A Relationships

I downloaded the StarUML program,and with Carlo's help I did this,as you can see I used a wand for my object to show the Has A and the Is A relationships which exist between the classes

Sunday, March 7, 2010

Subroutines and Functions

Assesment Activity

Write a short explaination of the difference between a subroutine and a function

A subroutine dose NOT return a value to the calling procedure

A function DOSE return a value to the calling procedure

They both DO execute code

I will be honest here,I have read my notes about the above and I dont understand it,I find that learning by reading a lot of the time doesnt help me whereas when being taught verbally does,so I will wait until Tuesdays class to catch up and learn this from Rachael.

I am also unable to use Visual Basic Studio at home which is annoying!