Tuesday, August 17, 2010

Control Structures-Repitition

During class we all had a choice to pick a topic to research, so we could talk about it to everyone next lesson I chose Control Structures Repitition. The following is what I found:
This type of control structures specify a block of one or more statements that are repeatedly executed until a condition is satisfied. These are also called iteration control structures.
There are three different ways that a set of instructions can be repeated, and each way is determined by where the decision to repeat is placed:
-at the beginning of the loop (leading decision loop)a
-at the end of the loop (trailing decision loop)
-a counted numberof times (counted loop)
1. Leading Decision Loop:
In such loops the testing of the condition is at the beginning of the loop. Examples are DO-WHILE loops. The only way to terminate the loop is to render the DO-WHILE loop false.
2. Trailing Decision Loop:
In such structures the testing of condition is done at the end of loop except that the logic to keep on repeating is same as in case of other repitition structures. REPEAT...UNTIL is an example of trailing decision loop. In trailing loops the statems ase executed at least once before the condition is tested. These loops are sued in almost all kinds of computer program e.g. to print student records, to continue taking imput until a certain limit etc.

3. Counted Loop:
These are also known as DO or FOIR loops. In such kind of repitition structures the programmer knowns in advance the exact number of loop iterations. The loop execution is controlled by an important variable called the loop index. We can now conclude that selection control structures and repitition control structures find their use in almost any application. Ising them wisely and judiciously depends on the person who is going to use these loops. Proper implementation of loop structures can reduce program complexity and cost a lot.

Some problems require a sequence of tasks to be processed repeatedly, e.g.:
-apply same processing to a set of different data items
-processing until and target point is reached
A block of statements that are to be repeated
-A condition that will determine if the loop processing should stop
-The condition is evaluated once in each iteration
-A variable that will change each time the loop is processed
A variable that will change each time the loop is processed
-tested in the condition
The following image is a visual, an example for you to see what is meant by "the loop" or repitition in a simple flow chart like this.



Tuesday, August 10, 2010

Heads & Tails

Last Wednesday on August 4, we had a task called heads & tails where we had to run the program Microsoft Visual Basic, and create a new project with a form. Then we had to drag the label, button and text box from the toolbox to the form and change the name/property from BUTTON1 to CHECK and then edit the code for the label by inserting
If TextBox1.Text = "heads" Then Label1.Text= "win"
If TextBox1.Text = "tails" Then Label1.Text = "lose"
So then when you type heads into the text box the label at the top of the form will say win, and then if you type tails into the text box the label will say lose.









Thursday, June 3, 2010

Internet and Website Development

The following is the MAIN parts of our task and what is mostly expected of it...

Design and Layout:
- The website must consist of multiple pages and be contained in an appropriate file structure.
- The website will have an interactive menu system that allows users to navigate your site.
- The home page will have an industry standard name.
- The web pages will be optimized for a specified resolutionand this advice will be conveyed to
the viewer.

We must storyboard our website,(in a word document) and hand in our completed task to Mr. Lennon on CD on its due date which is June 23rd, week 10, Term2.

Term 2: IST Assignmmment Plan

Create an appropriate folder
*create folders
folder*website*
inside;
-defaulthtml
-menu
-etc
folder*images*

Have an interactive menu
-1024x768 webpage resolution

Downloading a music file just link it to an mp3 file

This task is DUE on the first IST lesson of week 10, which will be June 23rd 2010, Wedesday.

Tuesday, June 1, 2010

=)

Header: forms the top, edge, head, or font something, mostly for a certain section of a page or a the title of a paragraph etc.

Title: names or identifies films, novels, poems, plays or other literary work.

Body: the main section of a writing.

Define HTML!!

HTML(hypertext mark-up Language) is a set or mark-up symbols sodes inserted in a file intended dor display on a world-wide web browser page.

Basic HTML :)

We have been shown how to make a basic web page using notepad, we did drafts so the pages didn't have to have proper information on it, this was just to help give us the idea on how simple it is to make a basic web page. To customize or add extra features to your web page you need to add tags from this "html site".
My webpage is simple with a few headings, where I changed the size and colour of the fonts, you can also add a background or add colour to the page, you can also add images and highlight words.

Defintions =)

Protocol: is a set of rules governing the format of messages that are exchanged between computers.

FTP: (File Transfer Protocol), allows file transfer between two computers with a login required.

http: (Hypertext Transfer Protocol), is used to transmit HTML pages.