Robot Arm

  • What was wrong with the Robot Arm?

So, when the arm was supposed to go up, it went to the right, and most of the functions the robot arm was supposed to do wasn’t working.

  • What did you do to fix it?

So, we used Eclipse and changed the functions.

  • What did the Robot Arm do?

The robot arm moved left to right, and up to down. Also there was a claw so it could grip things.

  • 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?

When Eclipse uses the yellow line, it means that the program can run, but there is a possibility that it might not work. But, red line is the error, and it can’t run the program until you fix it.

  • What is the difference between a LOGIC error and a COMPILE error. Which type of errors did the Robot Arm have?

So the logic error is the error when the thing is not doing the right thing, while compile error is something that the program identifies the error with the code.

  • Why do we use code libraries like the leJOS NXJ?

So libraries have a separate set of code and if we don’t use it, Lego Mindstorm won’t work because the code doesn’t exist for Java.

  • What is gamification?

Gamification is the use of game thinking.

  • How mad was Kevin, the mad scientist? Why was he mad?

Kevin was pretty mad, because we messed up a lot of codes. And he was mad because he could’t finish the project.

Building My Robot

My team is: Team 1

My team member is: Me (Tomoki), Jordan, and Sultan.

Our robot’s name is: Kevin-Prince-Boateng.

My experience with building my robot was really fun because it was my first experience making any kinds of robot.

First we built the robot,

Then we got the code from online

Then we created a new Java project called LegoMindStorm.

Then we added the Libraries, and

Then we converted the Project

Then we uploaded the code to the Robot

The robot moved forward until it touched the wall and changed direction when we hit there.

 

Java, Eclipse, and When Things Get Rough

  • What is one way to start a new programming project in Java?

So you go to “Files”, then “New”, then “New Java Project” and after that, to start programming, you make a new class.

  • What is an API?

Application Programming Interface

Getter and a setter are methods that let you read and write the value of an instance variable of an object.

Java, Lua, and Lab View.

  • What language will you be using to program your robot?

Probably Java.

  • What is a prototype?

It is an early sample or model to built to test a concept or process to act as a thing.

  • Explain to someone how you swap 2 values in Java.

So you first give two int’s a value and then you will make a third variable and make it equal int 1. Then, you write int1 = int 2 and finally int 2 = the third variable.

  • How does selection sort use 2 for-loops?

So selection sort use two for-loops by typing “for” outside the parenthesis and write how the number switch position when the integer is bigger than the one next to it.

  • How do you print all the values from an array?

So you can type System.out.println( array i ”  “)

  • What is the difference between a thermometer and a thermostat?

Thermometer is the object that measures the temperature of something. Thermostat is a system that controls the temperature so it is maintained in the desired temperature.

  • Why is plagiarism bad?=

Plagiarism is bad, because copying someone else’s work will not help yourself because you are not thinking by yourself.

  • How do you avoid looking like you are stealing someone’s code?

You can put a comment about how you got inspired by someone else’s code.

  • What are a few things you can do if you get really confused, lost, or stuck when trying to program.

Do something else, that you like and relax yourself, or play some spoprts and forget about programming for a little time.

 

The Playing Field

On Friday, we broke up into teams and did an exercise with combination locks.
In the paper, there was a number written in Base 2, but the number was 41, and there was no such number in this lock.
This was meaningful because we learned that everyone has a different place to start with.
I can relate to this experience because sometimes (more like most times) my life is unfair but trying hard from there will lead to a good result.