Firstly here is my finished house project.
Secondly this is my last post on learning java for this month so here is my summery on what I learned.
1. Creating shapes. I learned how to create shapes with code and assemble them into a picture.
2. animation and dependent variables. I learned how to make an image move across the screen and how to assign a dependent variable.
3. Re sizing object and making them follow a mouse.
4. text and strings. I learned how to create text and create math equations.
5.If statements. I learned about creating restrictions on certain functions.
6. Finally I learned how to create repeating loops.
These are all of the major projects but if you look bake and read the rest of my blog for this month you will find plenty other things I learned like debugging. For next month I will be going back to learning to make games.
Friday, April 28, 2017
Thursday, April 27, 2017
java loops
Today I am going to be continuing on with the lesson on loops.
The first tutorial introduced "for loop" these are just a more precise way of writing "while loops".
The challenge that followed this lesson had me use "for loops" to create graph paper.
The second tutorial shows me how I can put a for loop inside a for loop to create a more efficient for loop.
After a brief review I am working on the project "Build a House" which I am going to finish tomorrow and start the writing clean code lesson..
The first tutorial introduced "for loop" these are just a more precise way of writing "while loops".
The challenge that followed this lesson had me use "for loops" to create graph paper.
The second tutorial shows me how I can put a for loop inside a for loop to create a more efficient for loop.
After a brief review I am working on the project "Build a House" which I am going to finish tomorrow and start the writing clean code lesson..
Wednesday, April 26, 2017
java debugging and more
Today I am going to be finishing the small debugging lesson and then moving on to the looping lesson.
The debugging tutorial demonstrates the usage of "print In" statements for debugging. They allow you to see were your function stops transmitting which allows you to locate the problem.
And after a follow up page on some tips including leaving notes next to your work and explaining your code out loud I'm moving on to looping.
The intro to loops explained that this new function simply creates continues make a copy of what ever is in the loop function forever unless told otherwise. When making a loop you need to ask yourself three questions 1. what am I looping, 2. what do I want changed each time, 3. how long should it repeat.
This was followed by a quiz then a challenge.
The challenge had me make a code that ran numbers down the screen.
the next tutorial demonstrated the application of the loopier when drawing. They did this by making the loop repeat their drawing over to the side in a copy and past stile.
The challenge following this had me create a repeat of the ground untell the floor was covered.
Tomorrow I am going to progress further into the lesson.
The debugging tutorial demonstrates the usage of "print In" statements for debugging. They allow you to see were your function stops transmitting which allows you to locate the problem.
And after a follow up page on some tips including leaving notes next to your work and explaining your code out loud I'm moving on to looping.
The intro to loops explained that this new function simply creates continues make a copy of what ever is in the loop function forever unless told otherwise. When making a loop you need to ask yourself three questions 1. what am I looping, 2. what do I want changed each time, 3. how long should it repeat.
This was followed by a quiz then a challenge.
The challenge had me make a code that ran numbers down the screen.
the next tutorial demonstrated the application of the loopier when drawing. They did this by making the loop repeat their drawing over to the side in a copy and past stile.
The challenge following this had me create a repeat of the ground untell the floor was covered.
Tomorrow I am going to progress further into the lesson.
Tuesday, April 25, 2017
java logic
Today I am going to be finishing the logic and If statements lesson.
The last tutorial before the review introduced "else if" statements. these statements allow you to create a function that can except and reject statements.
After this is a brief review over the entire lesson before assigning the project. The project is to create a magic 8-ball.
To start off the project I used "else if" statements to get the words to change.
I encountered a problem when one of the random options kept turning up blank. to solve this mystery I added another line of code to identify the problem number (text(answer,196,171));. This allowed me to find it that when the number generator landed on zero no text would show up. To solve this I created another statement just for the zero.
To finish off the project I added a circle over the number Identifier.
The last tutorial before the review introduced "else if" statements. these statements allow you to create a function that can except and reject statements.
After this is a brief review over the entire lesson before assigning the project. The project is to create a magic 8-ball.
To start off the project I used "else if" statements to get the words to change.
I encountered a problem when one of the random options kept turning up blank. to solve this mystery I added another line of code to identify the problem number (text(answer,196,171));. This allowed me to find it that when the number generator landed on zero no text would show up. To solve this I created another statement just for the zero.
To finish off the project I added a circle over the number Identifier.
Moving on to debugging lesson tomorrow.
Monday, April 24, 2017
java logic
I am continuing further in to the lesson on logic and if statements.
The starting tutorial is on logical operations. this tutorial introduced && and ||. & means and. || means or.
The first challenge that followed the tutorial had me create a simple button.
The second challenge had me set restrictions on a more difficult button.
The next tutorial covered else statements. else statements are the counter part to if statements. when a if statement isn't true then the else statement will be true.
The challenge that followed had me code a flash card button.
Tomorrow I am going to finish the remainder of the Logic and If statements lesson.
The starting tutorial is on logical operations. this tutorial introduced && and ||. & means and. || means or.
The first challenge that followed the tutorial had me create a simple button.
The second challenge had me set restrictions on a more difficult button.
The next tutorial covered else statements. else statements are the counter part to if statements. when a if statement isn't true then the else statement will be true.
The challenge that followed had me code a flash card button.
Tomorrow I am going to finish the remainder of the Logic and If statements lesson.
Friday, April 21, 2017
java logic and if statements.
Today I am going to continue off of what I accomplished yesterday and continuing the lesson.
The first tutorial introduces the concept of user interaction. were you can use a if statement to give the user certain control over the animation or drawing.
The first challenge had me create a painting canvas where you only paint when you click.
The next lesson describes Boolean s which are true or false statements used to control If statements.
The last challenge for today is a program that dictates whether a number is positive or negative or zero.
I am going to be continuing farther into this lesson on Monday.
The first tutorial introduces the concept of user interaction. were you can use a if statement to give the user certain control over the animation or drawing.
The first challenge had me create a painting canvas where you only paint when you click.
The next lesson describes Boolean s which are true or false statements used to control If statements.
The last challenge for today is a program that dictates whether a number is positive or negative or zero.
I am going to be continuing farther into this lesson on Monday.
Thursday, April 20, 2017
java fish
Today I am going to be doing the fish tank project assigned in the functions lesson.
I started by making the fish code a function. Then calling it.
Next I relocated the center X and Y coordinates then getting ride of them by turning them into comments.
I tried to make the fish into an animation but was unable so I just added more fish and a background.
I started by making the fish code a function. Then calling it.
Next I relocated the center X and Y coordinates then getting ride of them by turning them into comments.
I tried to make the fish into an animation but was unable so I just added more fish and a background.
The next lesson is on logic and statements.
In the first tutorial If statements are introduced. If statements are like regular statements except they're conditional.
The first challenge has you "bounce a ball of of the walls without disappearing.
I am going to continue this tutorial tomorrow.
Wednesday, April 19, 2017
java function 2
Today I am going to be continuing the fictions lesson.
After asking a few questions I looked over the moles in holes challenge and found that the problem was the preset parameters were sending contradictory information to the function..
Here is the finished product.
the next tutorial went over return values which is necessary when including math variables. The challenge provided after this is Calculator in this challenge I simply have to change the return language to make the equations correct.
The tutorial following the Calculator challenge was about the difference between local and Global variables. Local variables only apply to the function their in wile Global apply to everything.
The last tutorial before the review went over the predefined functions provided already.
Tomorrow I am going to work on the fish tank project to finish the functions lesson.
After asking a few questions I looked over the moles in holes challenge and found that the problem was the preset parameters were sending contradictory information to the function..
Here is the finished product.
the next tutorial went over return values which is necessary when including math variables. The challenge provided after this is Calculator in this challenge I simply have to change the return language to make the equations correct.
The tutorial following the Calculator challenge was about the difference between local and Global variables. Local variables only apply to the function their in wile Global apply to everything.
The last tutorial before the review went over the predefined functions provided already.
Tomorrow I am going to work on the fish tank project to finish the functions lesson.
Tuesday, April 18, 2017
java functions.
Today I am going to go through the functions lesson. But first I am going to add something to my Winston project.
I added Winstons that move to your mouse and stopped the text from floating.
Now onto functions.
A Function is like a folder that stores code so it can be coped and pasted.
The first challenge has you take a simple randomizing generator and put it in a function then copy and past the same function.
The tutorial after shows how to set parameters for were we might want the drawing to be placed.
Having some trouble with the following mole challenge so I am going to finish It tomorrow.
Tomorrow I am going to continue the functions lesson and hopefully get all the way to the review.
I added Winstons that move to your mouse and stopped the text from floating.
Now onto functions.
A Function is like a folder that stores code so it can be coped and pasted.
The first challenge has you take a simple randomizing generator and put it in a function then copy and past the same function.
The tutorial after shows how to set parameters for were we might want the drawing to be placed.
Having some trouble with the following mole challenge so I am going to finish It tomorrow.
Tomorrow I am going to continue the functions lesson and hopefully get all the way to the review.
Thursday, April 13, 2017
java text and line
Today I am going to partake in the text and lines lesson. I already finished the first video yesterday.
I start off with a challenge called My Favorite Foods were I wright down all my favorite foods.
The next tutorial is on how to create a "string". this is when you assign a variable to your text.
I start off with a challenge called My Favorite Foods were I wright down all my favorite foods.
The next tutorial is on how to create a "string". this is when you assign a variable to your text.
The challenge that follows this tutorial has you create a mouse follow program that also shows the coordinates in text.
After a small written review The project was assigned. In this project I was assigned to make a fun advertisement for "Winston" I made a "So Soft" text follow your mouse were you can place it in the blank.
On Monday I will be going through the functions tutorials.
Wednesday, April 12, 2017
Java variables/Text and strings
There is one remaining project I need to complete to finish "variables". The project is called Animal Attack.
The "Bee" will follow your mouse.
The next tutorial went over how to insert text into your code.
Tomorrow I am going to finish the text and line lesson.
The "Bee" will follow your mouse.
The next tutorial went over how to insert text into your code.
Tomorrow I am going to finish the text and line lesson.
Tuesday, April 11, 2017
Java interactive programs.
This lesson is on mouse controls in relation to mouse X and Y.
The first challenge given is the tasty tomato challenge. In this challenge you are tasked with simply assigning the x and y coordinates of the "bite" to the mouses coordinates.
The second had me assign the mouse x and y to a colorful circle to create a painting canvas.
That is the end that lesson. I am now moving on too re-sizing with variables.
The first tutorial provided simply went into more depth on the usefulness of using variables in code and how to properly utilize them.
After the tutorial there is a short quiz on different math problems in functions.
I am finishing today's post with the moving bear challenge were I created and assigned certain variables to make the eyes move along with the face.
Tomorrow I am going to finish the variable project and move on to the next lesson.
The first challenge given is the tasty tomato challenge. In this challenge you are tasked with simply assigning the x and y coordinates of the "bite" to the mouses coordinates.
The second had me assign the mouse x and y to a colorful circle to create a painting canvas.
That is the end that lesson. I am now moving on too re-sizing with variables.
The first tutorial provided simply went into more depth on the usefulness of using variables in code and how to properly utilize them.
After the tutorial there is a short quiz on different math problems in functions.
I am finishing today's post with the moving bear challenge were I created and assigned certain variables to make the eyes move along with the face.
Tomorrow I am going to finish the variable project and move on to the next lesson.
Subscribe to:
Posts (Atom)