Advanced Programming


Today(2/31/15) we created multiple codes of java to create pictures and moving pictures.


I made codes by looking at the reference online and checking the picture every time i ran the code.


This code is a function that changes the velocity,position,height,width, and color. This code is only done once so the balls dont keep changing every time.

This codes are the variables we used for creating the balls.

this is the code that actually creates the balls and fills the balls with colors

This is the final product of codes

Week 1-8 Recap

Week 1

This week we learned about the server. We opened up a server and learned the different components that make op a computer. I learned many things about a computer.
The only new things I learned from my server project were the RTC and Heatsink. The RTC stands for Real Time Clock and its main use is that it measures the time,
even when the computer is turned off. And the heat sink cools down the CPU to prevent it from getting so hot so fast. If the CPU didn't have a heat sink, it could
be so hot that the actual CPU will melt.

Week 2

This week we learned about circuits. I learned about something call breadboard. The breadboard checks if the wires are working or not. We learned about the different
types of gates. The most important gates we and gate, or gate,nand gate, and nor gate. The and gate, requires 2 inputs to create an output, no more and no less.
The or gate requires to have at least 1 input to have an output.

Week 3

This week we learned about programming. I learned a lot from scratch. Scratch taught me a lot about conditionals and variables.In scratch I mostly used loops to create
my functions. I also used a lot of if else statements to create a special set of rules for special occasion.We also used python. I have gotten really good at python.
the main function I use in python is conditionals. Every function I make has conditionals and that's why I've gotten so good at programming

Week 4

This week we learned about game programming. My best piece in game programming is the pogo game in scratch. I used many conditionals and I used user input to help
create the game. If the user presses the up button then... and if the ball is at (300,234) then... This game really showed me how hard it is to create a CPU. To
create a CPU you must think of every situation and create a code that could be used in that situation.

Week 5

This week we did Robotics. To program the robots, we used python as our language to talk to the robots. I mostly just used functions to make my robot move and sense
if there is anything in front of them. I created a code that will make the robot keep going and not get stuck by telling it what to do for each situation. If the
robot was about to approach a wall, I programmed it so it could use it sensors to know it was going towards a wall and told it to move away from the wall. We had
a competition this week to see whose robot could go the longest without crashing into a wall.

Week 6

In 3D graphics I didn't really learn anything because the day people were actually programming with Alice, I was at a dentist appointment and I didn't get time to
code. I only got here in time for the 3D part were we are just dragging and dropping

Week 7

In week 7 we learned a lot about making AI. I learned a lot about AI. Like all the other CPU's we have to create a code that fits every situation. To fit every
situation, I needed to create many conditionals. I got better at looking for my mistakes and making them better. Especially when my program would not run if i
had an error. My best piece was Hangman. For this, I had to create empty lists and program it so we can store data in the list while playing the game.

Week 8

This week we did processing.Processing is a totally different language but all we really need to know is Functions,Loops,Variables, and Conditionals. I created
many pictures using rectangles and circles and changing the parameters to change its position and its size. I also had a lot of help from the reference book
it showed me many examples of codes and told me what each parameter meant.

Home