Wednesday, October 14, 2009

Multiple Classes and Inheritance - Semester 2 Week 8

Encapsulation - the concept of separating processing and hiding data within specific classes.

The three tier structure is divided into three tiers: Presentation, Business, and Persistence or Data Access.

Presentation Tier - contains the classes that display information for the user and accept user input.

Business Tier - contains logic and calculations that must occur in order to fulfill the requirements of the program. The classes use data entered by users and data from storage to perform the calculations.

Persistence Tier - contains code required to read and write data from storage. After the program is terminated the data gets stored in the database and therefore gets the name persistent data.

ADO.NET - Semester 2 Week 6

Database - a collection of related information stored in a structured format. The data is organised into tables. Each column is reffered to as a filed while the rows are called records. The unique field represents the primary key.

Data Binding - allows the display of each field as an object on the form.

Arrays and File Handling - Semester 2 Week 5

Arrays - variables that can store more than one value. Each item in the array that contains a value is called an element. Arrays use a subscript to identify each element in the array.

File Handling - The process of editing, selecting, deleting, or adding data into a text file or .txt. These text files are called sequential files. To open a text file, the programmer adds in an object into the System.IO called StreamReader. To write in a text file the programmer adds the object StreamWriter.

Sunday, August 16, 2009

Databases
  • Used in businesses for productive use of employee information and other use
  • Organises the information into tables
  • Rows are referred to as records
  • Columns are referred to as fields
Types of Databases

Monday, May 25, 2009

Cats And Dogs Assignment Part 1

In the Cats and Dogs Assignment we discovered some new code that we haven't used yet that allows the use of audio and visual animation. The code that we used to link up the audio with the items in the combo box was My.Computer.Audio.Play(My.Resources.cat/dog_1, AudioPlayMode.Background). For cat it was placed in the Meow method and for dog it was in the Bark method. When we were creating the animation for the cat to chase the mouse or for the dog to go walkies we placed in this bit of code; _imgPictures(0) = Image.FromFile("H:\dog/cat1.gif"). For the timer to work we had to set a label as a clock for the current time by using lblCurrentTime.Text = Now.ToString("HH:mm:ss").

Sunday, March 29, 2009

VB.net OpenFileDialog

When we use the OpneFileDialog class in VB it allows us to create a program that allows a selected file to be opened. There are other classes like the OpenFileDialog class and they include:
  • SaveFileDialog
  • FontDialog
  • ColorDialog
  • PrintDialog
  • PrintPreviewDialog
  • PageSetupDialog

UML Class Diagram

The Unified Modelling Language (UML) shows the features and attributes of the system including operations and inter-relationships between classes.
The Class Diagrams are Basically used for:
  • Analysing the requirements in the form of a model
  • Depict detailed designs of object-oriented/based software
  • Explore domain concepts in the form of a model
When your using a Class Diagram to describe a design you need to use a different style for each circumstance.

Monday, March 23, 2009

Visual Basic.NET classes and objects

Classes are types that allow a procedure to be created. These types include: Variables, Methods, Events, and Properties. Objects are very much like Classes and cannot work without each other. They include Properties, Events, Methods, and Variables to create a procedure.

In the Cats And Dogs exercise earlier today we used object-oriented coding to create a program thta shows a cat's age, name and breed as well as the dog's name, age, and breed. We used
Public _ instead of Dim as the declaration to create the object and Public Sub New for the methods to be placed in. It is also the constructor for the procedure and its job is to create the objects for the procedure to work.

Visual Basic.NET classes and objects

Monday, March 9, 2009

Unicode

01010100 01001000 01001001 01010011 00100000 01001001 01010011 00100000
01010101 01001110 01001001 01000011 01001111 01000100 01000101

Figure out the message.

ASCII & Unicode

ASCII, also known as the American Standard Code for Information Interchange, is a coding standard and is thereby used for interchanging information such as languages. This code can only use 256 characters and therefore only the English and Western Europe languages (so basically English).

Unicode on the other hand, is a 16 bit coding standard that contains the world's languages, both modern and historic.

Their purposes are to send, receive and convert different languages in code.

Monday, February 23, 2009

Digital Downloads

Today we noticed sum unused applications which wood be a good idea to remember them.
For the Digital Downloads Project, these appeared:

Const _cdecPriceperDownload As Decimal = 0.99D
This allows us to keep the pricing constant.

Dim strNumberofSongs As String
Dim intNumberofSongs As Integer
Dim decTotalCostofDownloads As Decimal
These are our declarations that the next step will be to give them an application

strNumberofSongs = Me.txtNumberofDownloads.Text
This allows the strNumberofSongs to equal the txtNumberofDownloads

intNumberofSongs = Convert.ToInt32(strNumberofSongs)
this allows the intNumberofSongs to be converted

decTotalCostofDownloads = intNumberofSongs * _cdecPriceperDownload
This process allows the calculation between the number of songs selected and the price per download to give us a cost for the songs.

Me.lblTotalCostofDownloads.Text = decTotalCostofDownloads.ToString("C")
This allows the cost to be shown as currency

Me.txtNumberofDownloads.Clear()
Me.lblTotalCostofDownloads.Text = ""
Me.txtNumberofDownloads.Focus()
This process allows the clear button to erase the text that is within the textbox.

Me.Close()
This allows the close button to close the program

I hope this has been handy for ppl so cya on Friday or weneva i cya
and remember to keep watching the skies........or sum Visual Studio Tutorials lol.

Links for Visual Basic/Studio

http://en.wikipedia.org/wiki/Visual_basic
http://en.wikipedia.org/wiki/Visual_Studio_.NET
http://www.microsoft.com/visualstudio/en-us/default.mspx

Sunday, February 22, 2009

Quiz Reminder

Hey again everybody just a reminder that the quiz is in 2 weeks on the 10th of march which is a tuesdy but its open book so ya dont have ta study if ya dont wanna. Me on the other hand will study a bit as i havent used VB b4 so i should get used to it.

Until next time, keep watching the skies...........or sum Visual Studio Tutorials lol!!!

Sunday, February 15, 2009

Hello Everybody

Hey everybody Nathan Stone here saying stuff to create a blog.

Uum.....wat to say?

Er..maybe i should just make sum stuff up.

How well doesnt matta for now well i congratulat everybody on getting into the Multimedia/Websites Ceft IV class and i look forward to blogging wid everybody.