Thursday, 6 August 2009

Selection and Repitition

Algorithm
-sequence
-selection
-repetition
Sometimes solving a problem involves making a decision between two or more options and this process is called
- Selection

In "plain English"
1. MOVING THROUGH A SET OF TRAFFIC LIGHTS

1. When u see traffic lights approaching
a) if its green, continue moving along, either going straight, left or right.
b) if its orange, [and you think its safe and you can make it, just speed up a little, * dont take any chances*]
c) if its red, slow down and stop before the line and wait until it turns green.
NOTE: Even if its green and orange and you are going, make sure to look out for any cars turning, left or right.

2. Deciding whether to take an umbrella to school

1. In the morning or the day before check the weather report for the next day.
a) if it says its going to rain, then pack your umbrella
b) if it says its going to be cloudy all day, then still pack your umbrella ( weather reports aren't always right)
c) if it says its going to be sunny in the morning and cloudy in the afternoon (or vice versa), still take your umbrella.
d) if it says its going to be a beautiful, sunny day then leave your umbrella at home, but make sure to check in the morning that it looks like a nice clear blue sky.

3. Giving a student an A, B or C in their test

1.
a)Look at your marking criteria, if you have one and go according to that.
b)If it is a test like math
- 80%-90% ( A), [if their mark is like 78 or 79% be generous and give them an A, if they have done well in their other tests as well.]
- 60%-80% (B)
- 40%-50% (C)


Often an algorithm will often require you to repeat a task in order to solve a problem; when this is done in an algorithm the structure is called repetition.

In "plain English"
1.Adding the correct amount of cordial to water to make a drink

1. Get desired flavor cordial out.
2. Fill a glass ( or more) of cool water from the tap.
3. Get lid off the cordial
4. Place amount of cordial, about half a cup/more/less, whatever amount you desire.
Repeat all over, for how many cordial drinks you want.

2. Filling a bucket with water

1. Get bucket
2. Go into an area with a tap.
3. Place bucket underneath tap
4. On tap, not too high.
5. Stop until you are happy with amount of water
6. If too much water, tip water out.
7. If by mistake you have tipped too much water out refill water.
[Steps 6 and 7 repeat, until you are satisfied with the amount of water]

3. Blowing up a balloon.

1. Get balloon ( whatever color you want)
2. Blow into balloon, until you can't blow anymore.
3. If you want balloon bigger, keep blowing.
4. Until to you are happy with size of balloon, stop
Note: Dont make balloon to big, may just pop.
5. Tie up the end of balloon or let the air out.
[Repeat steps 2 and 3]

Tuesday, 4 August 2009

Term 3- New Term New Work- What is an algorithm

What is an Algorithm?
An unambiguous set of steps, which when performed correctly by a processor, will result in a process being carried out in a finite time.

1. What two properties of the algorithm enable it to correctly describe the solution to the problem of making a cup of coffee? What is it that makes an algorithm correct?(Hint: what would happen if you swapped step "6" and step "2"?)

Two properties are:
- the listing of steps
- the order in which the steps are in.
An algorithm is correct simply if the order of the steps get the result you want in the end.
Hint: If you swapped step 6 and step 2- there is nothing really wrong with it, it just wouldn't make sense stirring boiling water and if you place coffee at the end, while your sugar, boiling water and milk are already added, then when you add coffee, if not stirred it wouldn't taste very "normal"(of course some people like it this way..maybe)!

2. Define Algorithms for the following processes.
POSTING A LETTER
1. Get letter
2. Place it in an envelope
3. Go to the post office and get a stamp
4. Place stamp on top right corner of envelope with letter in it.
5. Find the appropriate post box (local mailing, national or international)
6. Open the handle of the box and slip the envelope into the slot of the post office box.

MAKING TOAST
1. Get bread out with butter, jam etc... ( if wanted) as well as a plate and a butter knife.
2. Place how many slices wanted onto plate
3. Place 2 slices at a time in toaster, adjust settings.
4. Wait a few minutes
5. Once toast pops up be careful that it is not hot and place it on plate.
6. Apply spread of your choice
7. Eat Up

Calling a friend on the phone
1. If you dont remember their number get your phone book or ask someone else.
2. Dial phone number into phone.
3. Wait...listen to the dial tone...
4. Whoever picks up ( if its not your friend, ask to speak to your friend, if it is your friend, start talking about whatever you called them about.
5. [Another situation: If your friend is not at home, leave a message or call back]
6. Gossip away!

Finished Assignment


Unable To Load Page


Downloadable Songs


My Family Page


IST Careers Page


Celebrities Page


My Flowchart


On Friday in class, I continued to work on my assignment. My videos,that was my main problem, what I had done is that I wanted trailers, on my Celebrities page, but I wanted them to be down loadable,so I recorded with camera the trailer, put it on my computer and saved it to my USB, when I got to school and placed it,
a) the quality wasn't that great
b) it wasn't downloadable.
I asked my teacher, and he said I dont necessarily need a downloadable video, but I wasn't ready to give up!

On Saturday, a problem occurred which really scared me. Before I decided to place all my files into folders, example, Music into one, pictures into another etc....
Now when I opened it up on Frontage, some of the pictures I placed were showing crosses, and for a few of my pages my background wasn't showing. That scared the hell out of me. but I calmed down and just took all the files and made it into one big folder, saved it as My Website 2, and opened it up in Frontage and just added, the pictures that weren't showing, luckily I had them saved and my background. Took sometime and was unnecessary but I managed. Anyways.... so I also scanned some photos from my photo album so I can put it on my About Me page. I also went onto Itunes and found free trailers to download, I was soo happy, and it was in such great quality, so I downloaded 4 trailers and saved them. This time though I sent them to zipped folders, copied and pasted into my main Website folder, hyperlinked it and it worked, so that was great!!!

Then on Saturday, I continued on my IST Careers, finished it, added pictures, and I also decided to place some downloadable songs, so I zipped the chosen songs and hyperlinked them. Now every page had a menu, accept for some reason, my family page, when I put a menu, it didn't work. I was even decided to put a different type of menu, but noticed it wouldn't look that nice. Then then I noticed something, I changed my background color to white and then it started working, VERY WEIRD..... I wanted a colored background,but it still looks nice. So all my menus are there. Also on Sunday, I added something to my storyboard, I added a little description about each page. So then I saved my website on my USB. Then when I placed the CD in my laptop, it didn't work, it said something about function, so I tried it on another laptop and it worked there, so I placed my USB and burned it onto the CD. Now I tried it on my browser, and guess what? The menu's weren't working, because I had copied and pasted the link to each page when it was on my USB, when I should have wrote the link as (page name.html), so I decided to do that school.

On Monday at IST, I changed each link, it worked, so that was great. BUT my downloadable videos, wouldn't show that Open or Save box and those downloadable songs, wouldn't open because I hadn't saved the music file into my Website folder. Now this website had been saved onto my S drive, so I decided to save it as My Website 3 on my USB but when I was copying and pasting it, my USB ran out of memory, So I had to place some files onto my S Drive and then the bell went, luckily I had lunch. At lunch I saved my website on my USB so I can work on it at home.
On Monday night I added my music files to my Website folder.
Tuesday Lunchtime, my downloadable files weren't displaying their usual open or save box, I dont know why, but then again I decided to mention on my page to the user, that if they want to download they have to right click and click "Save target as" so that still makes it downloadable. I also added a background to my Unable to Load Page. Everything else was working Yay. Luckily our teacher let us hand it in on Wednesday. I definitely would have it by then

Tuesday night, I added some pictures and a new background, added a new application to my IST page, its called "Spin the wheel" so the user can click and like out of the list of website I have given , it would choose one and the user will be directed to it. I just added some finishing touches, saved it, burned it onto my disk, checked it everything was working Yay except for my two downloadable word documents, when I clicked save some message came, that it couldn't save, but I decided to try it on my school computer.

Wednesday IST lesson, when I placed my CD in the computer, my website wasn't there, I was shocked, luckily I had it on my USB. Now on this CD I had my first saved website which I had written onto the CD, but when I tried deleting it, it wouldn't delete and when I placed my finished website onto the CD, it had no memory, so I got a new CD, copied and pasted my website onto it and checked everything and IT WORKED.
I was soooooo glad, so I was finished after a term of hard work, I was very happy with my end result. :)
Finished IST Assignment number 2 :):)
Sanea.

Thursday, 30 July 2009

Nearly Finished Assignment

I have nearly finished my assignment. Yay!
Yesterday ( Thursday 30th July I finished my storyboard. As mentioned in my previous post I had done my storyboard but then had to go back and include within each box, what each page included. So I finished, I may include little screen shots of each my actual pages and add it next to the designated page in my storyboard. I may not be able to since my storyboard has taken the whole page, since I wrote quite a lot about the description of each page. Anyways....
I also learnt how to insert background music. I knew I had to convert the music file into a wav format but whenever I tried renaming the file and attached wav at the end it never worked, so that probably was the problem. So instead I opened Audacity Portable, opened my song from my Itunes list. The I played the song, and whichever section I wanted a highlighted. Then I went to trim and saved that file. I then went back to frontage and on my designated pages I went to page properties and found my saved file and added my background music, IT WORKED YAY! it automatically saved into my folder.
So yeah I am nearly finished, due date is tomorrow, but Monday is acceptable! I have done half of my IST Careers.
Nearly Finished!!!!!!!

Monday, 20 July 2009

Assignment - Continued


Log In Extra


Unable to Load Page


Downloadable Files


Music Page
It's been quite a long time since I blogged but I have done work between that time.
To Note: Our due date has been postponed to next term so Yay! Luckily I have FrontPage at home and get to work on it :)
So as mentioned before I have 9 pages.
My Log in Page, I have a box for the User name and Password where the visitor has to type the designated user name and password to enter my site. Using the javascript I successfully did that. So if the user name and password are correct,in the script I have copied and pasted the designated location, which is my homepage. At first I did not know how to do this but figured out that I had to first open my homepage in the web browser and then copy and paste the 'URL' into the script.
Now lets say for instance the visitor has incorrectly typed in the user name and password,it will directly go to the Failure Page which I made. On this failure Page I have also put a 'Back' Button( quite easy to make, just use the interactive button tool). So the visitor can go back to the log in page to try again!
I have also added in something extra. When the visitor first enters the Log in Page they will be asked for their name and when they have typed it and clicked 'Ok', on the top of the page it will say, Good morning or Good afternoon ( according to time of day) and their name inserted. So I'm happy with that :)
So far my Homepage, About Me, My Dream Job, Music and Celebrities I Heart Pages all have a menu and they successfully work! So that's great. I have positioned the menu's at the different places. I prefer to put menu's on each page rather than 'Back to Homepage' Buttons so it was interactive for the visitor.
'My Family, whenever I try to put a menu on, it always says error and some parts of the menu don't work, so that is something I have to figure out why.
'My Dream Job' Page I have recently placed hyperlinks. So the user clicks on it and are able to download the file. Its easy to make a hyperlink when it comes to Word documents but I am trying to figure out how to make a hyperlink for a website, video and music files. So the hyperlinks on 'My Dream Job' page are both Microsoft Documents and contain information on astronomy related issues.
I am yet to do my IST Careers Page, only page I need to do! But I have decided that I am going to put an extra feature called ' Spin the Wheel' , this is where I list a number of IST related website in which the visitor can go to. Now the button at the bottom is 'Spin the Wheel' so when the visitor clicks this button it chooses which website and the visitor is able to go it. It's something fun and where the visitor can learn more about IST related issues.
My Music page have videos (6) and pictures and I also have an extra feature. I have installed a search engine box for the user to search You tube. So all they have to do is type in name of artist, song etc..Click Search and it directs them to Google,where the Youtube videos are and they choose which video they want and they're on the Youtube site watching whatever video clip.
My 'Celebrities I Heart' Page I have like a slideshow of pictures. Some of the pictures are not proportional to each other, something I have to work on and when I view them on the browser they always seem to be on the side, when I want them to be in the middle, it is probably because the page extends up and down, but I dont want that, so I have to work on that!
So far, So good.
I plan to add other compressed zip folders and down loadable files to other pages, such as
-About Me
-IST Careers
-Music
-Celebrities I Heart
One more thing, BACKGROUND MUSIC, I have tried so many times that it is not funny. I unfortunately cannot put background music onto my homepage page and I dont know why. I know that you have to go to page properties etc....but it just doesn't work, whatever song I put. I will get it eventually.
[All my pages have pictures and different designs and backgrounds which I am extremely happy about.]
*Still have to do my storyboard!!!
Pictures are above :)
Sanea

Sunday, 28 June 2009

Getting Started


Log In Code


Log in Page


Main page ( Homepage)


Main Page ( Homepage) Code


Folders

We had 3 lessons of IST this week. The first lesson I got to use Front page for the very fist time. I started off by making pages and then saving them onto my USB! These are the final pages that I will be listing onto my Menu.
1.About Sanea
2.Family
3.My Dream Job
4.Celebrities
5.I LOVE IST
I Also have a homepage and an Index..which I will explain about below.
So this lesson I also learnt how to make a menu and also found out that you can have this login in page, where the user logs in to enter the site... It's sooo cool really. So I just got to learn how to do various things. I decided that lesson, that I really will need to buy Front page to use at home because, its due next week, and these 2 lesson is not going to be enough at least for me.
The next lesson I started to collect pictures, plan out each page and all, I have this really nice background picture for my log in page, which is of chocolates, this picture was actually going to be for my main homepage page but then on the weekend I changed it and made it my log in page. There was a problem trying to put my background picture, my teacher was away so I couldn't ask him, but luckily the other IST teacher was around and he helped me. The case was that the picture wasn't coming as like the whole background but then when you went to Page properties there was button where you could browse for that particular picture and set it as your background. What I was doing in the first place was just copying and pasting the picture but then as my teacher told me, I had to first save it in the "Web Site" file and then add it. So yeah in the end I got my background picture :)
The third lesson, I continued to plan and just get used to the whole front page format. I have put my layouts for each page. There is a lot of things to do, so I have the whole weekend to work on it.
On the weekend I bought Front Page. Yay! and started work right away. I have added my menu and the user name and password javascript. Its looking really cool and have added background pictures to my Index, homepage, Family, Music and My Job pages. So i have done little, little on each page. I have done half my pages, just need to do
-My Job
-IST Careers
-Celebrities
and I have to ask my teacher about the log in thing and my menu, like when you click on a category how to actually get it to the designated page and also how to add background music to a page and if I need a menu on each page.
In terms of my Music Page, I have added videos, its sooo awesome. I did some research on how to. What I did was went onto You tube, typed in whatever clip I wanted and then on the video clip page, I copied and pasted the embed code onto my Music page code page and I had to change the width and height to fit accordingly, so for all my videos its 250 by 250. Then I saved it and previewed it and it Worked . Yay!!!! So like I have these line of video clips going down my page, its really cool.
So far so good. So I dont know the exact due date, our teacher said it "negotiable", so hopefully he'll make it this Friday, enough time.
Can't wait to see the end result!!!!
Above are some images of my work so far:)
Sanea.

Saturday, 20 June 2009

Sketch Site Structure

I have just drawn on a piece of paper all the different pages,I am going to have. Its just a rough, I am going to double check my teacher and see if I am heading in the right direction. It's not a storyboard but I am going to draw it up on Word Document OR I just came up with an idea, of scanning my drawing and putting it up, either one of them and then I'll put it on my blog!
These are the pages that I am going to have, its just a rough, when actually making my website I'll see if I am going to have all of them or cut some out.
- Homepage
- About Me
- Family
- My Dream Job
- IST Careers
- Celebrities
- Movies
So I'll be getting started soon :)
Sanea.