Saturday, May 2, 2020

sixth hour of the ten hours of programming (infotech)

sixth hour of the ten hours of programming
so today i was learning resizing with variables.
some mathematical operators:
+ adding
- subtraction
* multiplication
/ division
% take remaining
when using multiple operators the computer follows an " order of operators" kinda like the mathematical "BEDMAS" but in here its "PEMDAS".
parentheses, exponents, multiplication, division and subtraction.
we need to know fractions for resizing!!!
we then got to practice a little like a quiz. and i got two questions wrong. so i just redid it and got everything right.
after that we had a challenge, the brown bear eyes challenge.
so we had to use fractions to change the eyesize to always be the same compared to the facesize. then we had to make sure that the eyes would also move with the face when needed. that took me a while to do bu i did a good job and it was satisfying to see it all move and change size together while looking the same!
after that we had another project.
the project is called animal attack and i ran out of time on this hour so ill do it for the best, Im honestly not the best at fractions from the top of my head so it takes a while for me to calculate them.

fifth hour of the ten hours of programming (infotech)

fifth hour of the ten hours of programming
so today i continued with the animation project shooting star which i didn't have time to start yesterday.
so all i had to do was animate a dot shooting like a star and add more stars in the background and that's all i did.
i made two stars move and five still stars in the background.
so next lesson is the interactive programs.
so what i learned in this lesson was how to make the objects move where the mouse is by writing mouseX and mouseY, but it always has to be inside the draw function.
then we had two challenges: the tasty tomato and the mouse movement mania.
the tomato one we just had to add bites as if we where eating it.
in the mouse movement mania we had to change the size of a circle, change the color of the circle and add the stroke with a different color as well.
and that's all for the integrative programs.
next is becoming a community coder.
so we can evaluate other peoples projects and comment and add suggestions too help them.
and learn something new as well while doing that.
we also shouldn't be afraid to ask for help which i need to practice because I'm shy to do so.
thats all for this hour. next will be resizing with variables which is a bonus.