My Favorite Things

My favorite thing in EPGY were the after activity times.

What does a void function return? Nothing

What does Int. Function return? an integer.

What is the difference between a function and a datatype. A data type is just data while a function is a gets the data to do something.

What is the difference between a function and a class. A class is what holds the objects while the function gets them to do something.

What is the difference between a function and a class. The function is what gets the data to do something in a class.

What goes inside the curly braces? the main class body

What does the And Gate (&&) do? It is a boolean that will only be true after both of the “switches” are turned on.

What does the Or Gate (||) do. It is a boolean that will only be true after one of the “switches” are turned on.

My favorite type of game are RTS games like LOL HON and DOTA.

The favorite game that I played at camp was Run. http://www.coolmath-games.com/0-run/

 

Game Review #9 Story Teller

Today I played two games. Storyteller and the Boolean Logic Program. I think that those two are connected because they both have cause and effect. In story lteller, you can drag the figures around to control their fate. This is similar to the logic game because when you put one type of Gate it will yield different results when you turn on the switch than if you put another.

http://www.cs.kent.edu/~volkert/F10-10051/notes/logsim.html

http://www.ludomancy.com/games/StoryTeller.html

 

       

Computer History Museum

The Computer History Museum was a really fun experience because we got to see how the computers have evolved over time. From thick cables to compact USBs, Galactica to Call of Duty. I think that its amazing how much technology has advanced since computers where first made. I also enjoyed seeing the old computers and robots and the videos that really helped me understand the topic a whole lot more. Overall I think that the field trip to the Computer History Museum was awesome!

Museum Building

Robot Arm

  • What was wrong with the Robot Arm? It was working but it was not programmed correctly.
  • What did you do to fix it? I used eclipse and and I reprogrammed.
  • What did the Robot Arm do? It will move left and right, up and down and grab objects.
  • What is the difference between when Eclipse uses a yellow line versus using a red line? Which one is an error and which one is a warning? The red one is an error and the program will not run when there is one. The yellow highlight means that there is a warning and the program might run.
  • What is the difference between a LOGIC error and a COMPILE error. Which type of errors did the Robot Arm have? A with a logic error, a robot can still run with, but it will not run properly. A compiler error is an error in the code and the robot will not run.
  • Why do we use code libraries like the leJOS NXJ? So that you have specific code for the Lejos programs and other specific libraries for other programs.
  • What is gamification? Gamification is the the act of utilizing gaming thinking is other non game contexts.
  • How mad was Kevin, the mad scientist? Why was he mad? Because his arm didn’t work.

Building My Robot

My team is Team 3 and I am working with Karim. My robot is named Botty and my experience with the robot was . . .

  • First we built the robot.
  • Then we got the code from online.
  • Then we created a new Java project called Mindstorm.
  • Then we added the Libraries.
  • Then we converted the Project.
  • Then we uploaded the code to the Robot.
  • This is what the robot did.

Game Review #7 Duolingo

Today I went on Duolingo, a website that teaches you how to learn another language. I don’t think that this a game because I think that games are supposed to be fun and entertaining. This website teaches you the basics of Spanish however I think that the lack of interactive activities make it boring and not a game. For example, I consider many typing programs games because they are interactive with the user. Duolingo is a good way to learn a foreign language but not for entertainment or fun.  This is my profile.  http://www.duolingo.com/#/brandon01px2018

Java, Eclipse, and When Things Get Rough .

What is one way to start new programming project on Java? You can click file – new – Java Project – double click the new project file – right click src – new class and there you have it.

What is an API? Application Programming Interface is a library that contains specification for routines, data structures, object classes, and variables.

What is a getter and a setter? Accessors (also known as getters and setters) are methods that let you read and write the value of an instance variable of an object. (http://java.dzone.com/articles/getter-setter-use-or-not-use-0).

What are the different languages for the Mindstorm NXT?

What language will you be using to program your robot? Java, Lua, Labview, RobotC.

What is a prototype? A prototype is the draft of a project, kinda like a skeleton. A car that works that it doesn’t have all of the fancy chassis and paint jobs.

Explain to someone how you swap 2 values in Java? You need three stalls to swap variables. Stall1, Stall 2 and a Tempstall. First you assign Stall1 to the tempstall. then you assign stall2 to the now empty (assigned to the tempstall) stall1. lastly you assign the tempstall which contains the original stall1 variable to the stall2. Here’s the code.

static void swap(String s1, String s2){
    String temp = s1;
    s1=s2;
    s2=temp;
}

public static void main(String[] args) {
    String s1 = "Hello", s2 = "world";
    swap(s1, s2);
    System.out.println(s1 + s2);
}

How does selection sort use 2 for-loops? The first loop scans over the array, looking for the next number in the array. Once found the second loop comes around, picks it up and sets it in the right place.

How do you print all the values from an array? With this code. system.out.println(array[i])

What is the difference between a thermometer and a thermostat? A thermometer checks the temperature and the thermostat is what senses the temperature and controls it so that it stays in the desired range.

Why is plagiarism bad? Because you are just copying the text but not really learning it.

How do you avoid looking like you are stealing someone’s code? You can cite the site and make little changes to the code.

What are a few things you can do if you get really confused, lost, or stuck when trying to program? You can ask a teacher or google it. If you’re lost then you can just restart.

The Playing Field

On Friday, we broke up into teams and did an exercise with combination locks. We received master locks and with sheets of paper with the combination on it. However, the combination was written in binary code and we were told to figure it out by any means. We figure out the code but then we found out that one of the numbers were too big for the lock. Some other people also had this problem but some opened the lock really quick. (The largest number on the lock was 40 but one of the numbers was 42). I think that this was meaningful because it taught us a life lesson, that life is unfair and somethings will not work out for some people and sometimes those people might just me you. I can relate this experience to because its happened to me before. I was taking an exam and the examiner gave me the easier questions while my friends got the harder ones. I think that this is a very valuable lesson to have for life.