Tuesday, 19 May 2015


Creating a Database
 
A child's toy is similar to a database because certain information goes into certain 'holes'.
 
 
 
 
Today we created a database that filtered away dirty data and allowed only specific information.
 
 
 
 
 
 

Tuesday, 21 April 2015




Coding Siri














This is my Siri Chatbox coding. I fixed my mistakes (I didn't put a bracket after one of the codes). Now that it works I proceeded to try it out, asking it questions. It worked very well and next lesson I will try to program it say "Hello, what is your name?" and then use that name after the person tells her his/her name. 



Wednesday, 15 April 2015

Improvements to Siri Chatbox

I have to make a lot of improvements to my Siri Chatbox because it hasn't worked in the first place. I checked it at least five times and I cannot place the default in my coding. My improvement would be to fix the mistake so that it works. Since I don't know what went wrong, I will have to try out several different options so I will know where I made a mistake. 

Monday, 16 March 2015

 
 
The difference between open-ended and closed-ended answers are that closed-ended answers are specific and have a limited amount of answers or choices to choose from, whereas open-ended answers are more broad and vague like the ones I have included above.
 
The Siri chat box we will then create will choose, when asked a question, a random answer out of the 11 choices I have written above. The answers I have wrote are open-ended answers.




 

Monday, 9 March 2015


Questions for Siri

1. How are you?
Possible answers– 
  • Fine, thank you.
  • Brilliant, and you?
  • Terrible.
  • I am well.
  • I'm happy to be alive!
  • Very well, thank you!
  • Excellent!
  • I could be better.
2. I heard you feel sick, are you feeling better?
Possible answers–
  • Yes, thank you!
  • No.
  • You know what they say…don't listen to rumors.
  • I was never sick.
  • Let's talk about you, not me. 
  • I can't answer that.
  • Sorry, what? I didn't quite get that.
  • Who, me?
3. Where are you from?
Possible answers–
  • Like it says on the box…I was designed by Apple in California.
  • I'm afraid I can't answer that.
  • Let's talk about you, not me. 
  • What was your question?
  • Why do want to know?
  • Sorry, I didn't quite catch that. Can you say it again?
  • I, Siri, was designed by Apple in California.
  • Where are you from?
4. What is your favorite food? 
Possible answers–
  • I'm sorry, I can't answer that.
  • Well, there's quite a lot of delicious foods in the world. Would you like me to search them up for you?
  • I don't each much.
  • I don't really know. What's your favorite food?
  • I'm not real…I can't eat.
  • That's a hard question.
  • Why are we talking about this?
  • I have quite a lot.
5. What do you think of celebrities?
Possible answers–
  • I really couldn't say.
  • I don't know much about celebrities…I can't really say.
  • I don't like to judge people.
  • I'm sorry, I'm afraid I can't answer that.
  • I didn't find anything for…"What do you think about celebrities?"
  • I'm not sure.
  • Would you like to search the web for that? 
  • I think celebrities are wonderful.
6. How old are you?
Possible answers–
  • Does this concern you?
  • Old enough to be your assistant. 
  • I am not allowed to answer that question.
  • We were talking about you, not me.
  • Why are we talking about this?
  • I don't see why that should matter.
  • I'm afraid I can't answer that question.
  • Let's talk about you instead.
7. Do you like jokes?
Possible answers–
  • I can't. I always forget the punch line. 
  • I'm sorry, what?
  • I don't know…no one ever tells me any.
  • I don't know what you mean by…"Do you like jokes?" How about I search the web for you.
  • If I told you a joke, I'd have to explain it. So, no, not really.
  • I'm not sure what you just said there.
  • I hate jokes.
  • Yes, I love jokes! How about you tell me one now?
8. Do you like the beach?
Possible answers–
  • I really have no opinion on that.
  • This is about you, not me.
  • I never really thought about it.
  • Yes, I love it.
  • Would you like me to add the location "Beach"?
  • Let me check on that…
  • I don't really know…do you?
  • I'd rather not talk about it.






Monday, 23 February 2015

Robots and Artificial Intelligence 

Robots can be both useful and dangerous. They are useful because they can do hard labour without getting tired, unlike humans, and work for long hours without stopping. It takes less time for it to complete a task that would have otherwise taken a very long time for a human to complete– for example digging a hole. Robots can do things that humans can't– calculating huge numbers very quickly, and they can do the same thing exactly the same, so that each object it produces, if it works in a factory, for example, is exactly the same. They can go into places that humans can't, or at least not for a long time– underwater, into poisonous gases that could otherwise kill a person, and they can store masses of information. Robots are very useful to our lives.

On the other hand, robots are incredibly dangerous. Since they have no feelings, they can merciless if they suddenly develop their own thoughts. If robots decide to take over the world there would be no stopping them because of all the things they can do. Robots are becoming, with today's technology, immensely powerful, and intelligent. If they attacked– it could even happen accidentally– it would be the end of humanity. 

I think society should be very aware of the problems that could occur, and prepare for them. A lot of people could get hurt or killed, people who hadn't even thought advanced robots didn't even exist, yet alone had its own brains. Everyone should definitely be aware of the dangers of having artificial intelligence in robots.

I agree with this phrase: "A computer can only be as smart as its programmer. However, one day it might be programmed to learn how to learn". I agree that programmers need to be careful before he creates a robot that mimics the human behavior, because humans learn, which means so can robots, and if they learn they become more intelligent than the programmer might have even dreamed it to be. Because it is a robot, it can record and store thousands of pieces of information, and if it starts to learn, which I am sure is possible with today's advanced technology, then the world would be in grave danger. This is why a programmer should always be careful before programming a robot. Everyone should consider the dangers they provide, as well as the help. One day robots won't need programmers.









Tuesday, 10 February 2015

Performing calculations, counting in Binary and Fibonacci Sequence
The formula used to return a whole number doing division is "%".
The "/" sign gives you the full answer. To get a whole number you have to use "//". I used the "%" to get the remainder of the question.
I have included an example below:




We use the binary system to make it simpler to use than the decimal system in computers and technologies. It's important to understand the binary system because it's the main counting system computers use.
It goes like this:

0110010101

There are no numbers in the binary system except 1 and 0.

An example of how binary works:

128 64 32 16 8 4 2 1
0    0   0  0  1  0 0 1 0

This equals to 18, because there is a "1" under 16 and 2. 

Here are some examples of Fibonacci in nature: