Tuesday 10 March 2015

My Siri Chatbot:

For my siri chatbot, i will ask the following questions with the possible answers:

What was the most important war in the history of the United States of America:

  • The cold war
  • World war II
  • World war I
What should I buy from the supermarket today
  • Apples
  • bannanas
  • ice cream
  • cinnamon
  • milk
What is your favourite composer:
  • Beethoven
  • Mozart
  • Bach
  • Sam Smith
  • Ed Sheeran
Where should I buy a house?

  • Carribean
  • Thailand
  • America
  • Maldives
What type of fast food do you like?
  • Mcdonnalds
  • Burger king
  • Pizza hut
  • KFC
How was your birthday?
  • It was very good
  • It was horrible
  • It was quiet
  • I had a big party
  • NO body wished me
  • 100 people posted on my facebook timeline
What is your favourite coffee shop?
  • Gloria Jeans 
  • Starbucks
  • COSTA
  • Tim Hortins
  • Tea leaf and coffee bean 
What is your favourite drink
  • coke
  • sprite
  • coffee
  • hot chocolate 









Monday 23 February 2015

Artificial Intelligence:

Artificial Intelligence has been talked about for many years, and has been incorporated in many movies such as Transformers, where the actual transformers are a form of artificial intelligence because they are able to have emotions and think for themselves.

The definition of artificial intelligence is 
  1. the theory and development of computer systems able to perform tasks normally requiring human intelligence, such as visual perception, speech recognition, decision-making, and translation between languages. (Wikipedia)

Robots can be useful because they will carry out actions without response and without question, they also have no limits, they are as strong as the creater makes them. Robots have no limits themselves, they are as good as the creater and therefore they can be programmed to do anything, including going into dangerous environments for humans, such as radiation zones. Robots were used in the Japanese tsunami disaster to asses the damages of the radiation leaks.

However, robots can also be very dangerous, as well as carrying out any useful commands out with out question, it will also do any bad act without question, as they cannot discriminate between the two.

I believe that right no robots pose no threat to humans and society, because they have not been programmed to act on their on behalf, but are controlled by people, i believe they pose the same or even less then any weapon in the world. 
However, one day  progrmmes might be programmed to learn to learn, and self evaluate and self asses, at this point i believe that they will become a threat to humanity, as it will have access to all the information on the internet to use. Also, leading scientist Stephan hawking has said that artificial intelligence will pose a threat to humanity. 
You can see what he says at the link: http://www.bbc.com/news/technology-30290540 

 



Tuesday 10 February 2015

Using binary code and simple python commands

What is Binary code?

Binary code is the language that computers are coded in. Like humans count in units, tens, thousands and so on, in multiples of 10, binary code is written multiples of 2. The numbers we use are 1, 2, 4, 8, 16 and so on doubling the previous number. We represent theses numbers as 0s and 1s. 

We use 1s and 0s because in the circuitry of a computer, there are switces, the one means that the computer turns on that switch and the 0 mean it is off. 
As we can see in the picture, it shows the column as well as some of the simple numbers.
Some other examples are:
00011= 3
10001= 17
It is important that we understand binary, as we can only fully use the full potential of computers if we can use binary, because computers are coded in binary.

Python

In python, we use various symbols for every day signs like divide multiply, add, subtract.
we use / for an accurate divide, and // if we just want the whole number.
We can also use % to get the remainder of a certain calculation. for example:
19/5= 3.8
19//5=3
19%5=4
because when you divide 19 by 5, 5 goes into it exactly 3 times, and then there is 4 left over( the remainder)
For multiply we use *, for addition we use+ and for subtraction we use -.

Fibonacci sequences

In nature, a very common pattern is the fibonacci sequence, where you add the 2 previous terms to get the next term. so it starts with 1, 1, 2, 3, 5, 8, 13, 21 and so on. 
Here are some intresting examples:

Using Python programming

                                     Python 


Python is a programming engine, which is used by many companies, including companies as big as google, yahoo, NASA and nokia. This programme uses the binary system, which i will talk about in the next blog.

Monday 24 November 2014

GAME TESTING STRATEGY & PLAN
I will test my game to make sure it works while I create it. I will also test it after I have finished coding to make sure it works fully as planned. I shall do the testing myself but I shall also ask Cameron to test certain parts of it. I shall be a test buddy for Cameron

Here are the tests:-

Test 1:  The game must have clear instructions for the user.


Test 2: The game must be error-free.

Test 3: The game must have the meaningful variables of ….

Test 4: The game must be documented well in my blog so that I can come back to it at a later date to make alterations to it if needed.

Test 5: Each collecting sprite needs to have 3 states:- normal, bulging, slim and named appropriately.

Test 6: The program has to keep a score of all the collected sprites.

Test 7: to see if the speech works

Test 8: to see if you can go from one side of the screen to the other straight away.

Test 9: to see if the controls work

Test 10: to see if the variables work
TESTING
Add screenshots to each of the test items above as evidence that you have tested them. For each test, explain the various states of the program (e.g. show what happens when the score increases).

It is OK to include tests for the test items above that DO NOT work. Some parts not working are the normal part of the process. You need to be honest. Explain what you would do to fix it if you had more time

EVALUATE In your blog, evaluate how well your game works. What are its strengths? How could you improve it further if you had more time?

Monday 6 October 2014

                                       Using Scratch

Making Scripts

When using Scratch, stay organized. You can do this by naming your scripts/characters and backgrounds. For example, if you have a cat, you should name him cat 1 or a name. Instead of leaving it as jut script 1.
















Online safety


Staying safe online:


  • Never talk to anyone you don't know
  • Keep your accounts on private
  • Don't share things like your age or address
  • Only post things you want everyone to see
  • Don't give anyone a reason to be able to cyber bully you
  • If you're getting cyber bullied report it on a web site or tell an adult like your parent.
  • For your password: use letters, numbers and signs. 
  • If you wouldn't say something to people while you're with them don't say it in a message.
  • Never tell anyone your password.
  • Don't meet with anyone you first met on the internet with out another person such as your parents