Advanced Programming

Home

Java

Java is one of the most popular programming language in the world. The program was developed in 1991 and was introduced to the public in 1995. On Monday we used a little bit more for a program called Processor. There we could create shapes with animations and such.

Here are some figures and their codes.

Here is a sphere. It is actually bouncing off the "walls" and each bounce add one to the count.

Here is some of the code for it.

This is a little house I created. Well, I tried. I painted it all red, which could be unrealistic.

The code for it. It is really basic and simple.

We added some more items to our Bouncing Ball code. Now we added more balls, and made them different sizes and different colors.

On Wednesday we did JavaScript. We read a bit about Java Script, and there are some similaries with Java. A difference I noticed was the use of Var for a function. Here is my bouncing balls game with the changes done in JavaScript. The program we used was Khan Academy.

That is just a little segment of my code and you could see a few Var's being used.

On Thursday, we made a mother's day card. I wrote mine in Spanish with some hearts appearing to the movement of the mouse. To see it, click here

Here is the starting lines to my code. It really just the set up.

To create the Mother's day Card, we were introduced to a new tool called Bezier Curves. It is used for the curves in shapes in computer graphics and related fields. We used them to pull and stretch put the hearts to shape we wanted them to create the most perfect hearts possible. If a number was stretched out too much, it would obviously change dramatically. Here it is in the code.