We went around and talked to most of these companies and schools. One of the most interesting part was that there were GearVR for students to try on. I know it's not the Oculus Rift, or the HTC Vive, or the PlayStationVr. But virtual reality is such a huge thing right now, yet most of the students barely know anything about this recent invention that will change our lives and even the direction of our future. It is something I am very interested in and am even thinking of working in something similar in the future. So it's nice they have something like that for students to better understand what's happening in the technology world. I mean, you have to know this when you are in a Information Technology school...Friday, December 16, 2016
Career Day
Today was Career Day in my school. It is an event where companies and colleges come to our school to share information with students. There were Monroe Colleg, SUNY PolyTech, CUNY Hunter, the Army,non-profit organizations, other technical schools, and Steve Madden, the shoe company that gave away a lot of stuff to students. There were also alumni from our school who came back to visit us. I was surprised that most of them took a job unrelated to technology after college, coming from the technology high school. There was one who became a firefighter, a marine, a marketing director, and those who went into other fields. This opportunity to come to the fair was only given to the CTE students, which includes Web Design and Video Production students. All of us were supposed to dressed up in business attire for this event, although some didn't, most of the people went all out with a full on suit in this extremely cold day. The only things that were bothering me was the baggy suits that some were wearing, and those who button both buttons on their two-button suit jacket. It should be widely known that the bottom button on a suit jacket or blazer is never supposed to be fastened. I even try to be nice, giving advice to those I know to not fasten the bottom button, while some listened, a few of them not only thought I was crazy but talked back to me in a very impolite way. To be honest, I was very disappointed on the amount of the students who made those mistakes... If you are wearing a suit, at least wear it properly!
We went around and talked to most of these companies and schools. One of the most interesting part was that there were GearVR for students to try on. I know it's not the Oculus Rift, or the HTC Vive, or the PlayStationVr. But virtual reality is such a huge thing right now, yet most of the students barely know anything about this recent invention that will change our lives and even the direction of our future. It is something I am very interested in and am even thinking of working in something similar in the future. So it's nice they have something like that for students to better understand what's happening in the technology world. I mean, you have to know this when you are in a Information Technology school...
We went around and talked to most of these companies and schools. One of the most interesting part was that there were GearVR for students to try on. I know it's not the Oculus Rift, or the HTC Vive, or the PlayStationVr. But virtual reality is such a huge thing right now, yet most of the students barely know anything about this recent invention that will change our lives and even the direction of our future. It is something I am very interested in and am even thinking of working in something similar in the future. So it's nice they have something like that for students to better understand what's happening in the technology world. I mean, you have to know this when you are in a Information Technology school...Lab 8: Loops
https://thimbleprojects.org/jh19tommy2/155092/Lab8.html
This is lab 8, where we demonstrate our understanding of the four types of loops. That includes the For loop, the For/In loop, the While loop, and the Do/While Loop. Loops are extreme useful when you want to execute the same block of code multiple times in different, but similar conditions. It can help you write less amount of codes, which is less work for the programmer, and it's easier for the computer to read, which is less work for the computer, therefore it takes less time to process. The For loop is the most common used loop of all, where you have three statements to execute the code under a certain condition. The For/In loop is similar to the For loop, but used for properties instead. The While loop continues the loop as long as the condition is true. In the Do/While loop,The code in "do" will execute when the condition in "while" is true. But it will at least execute once even if the condition is false.
Inside my lab, I have a table with 4 cells, each created to contain each of the loops needed to be demonstrated. In the For loop demonstration, I used a For loop to list my array called "food", and made it execute, starting at 0, until all the index in the "food" array is listed. In the For/In loop, I listed all the properties inside my array called "subject", which loops through all the properties with only using one statement. In the While loop section, I first wrote all the variables, then I set up the While loop to run as long as a variable is less than the length of my array, which listed what I like to do in my free time. In the last but not least, the Do/While loop, I put all variable before the loop, then used Do, to execute a block of code, then used While to made the loop stop the Do after a certain condition.
Thursday, December 8, 2016
Lab 7: Mad Lib
In this lab, we have to create a Mad Lib within a webpage where the user can enter multiple words into a paragraph to create their own story.Before this lab, I did even know what Mad Lib is. We have to use arrays to store all the variables of each words. And since there are so many words to enter, we need to use loops to make everything easier for ourselves. After learning about arrays and loops from Ms. Ramirez, we were given to use the codes in our own way to make it work. At first, I figure out how to create a loop to prompt the user for each word and put it in the array, but I was struggling to figure out how to use the loop to write each of the variables entered to the array into the HTML document.
First I created an id for every empty word that is being filled in. Create a CSS that separates that color of the nouns, the verbs, and the adjectives. Everything was easy until the time when I was trying to loop that array. I knew that I have to use document.getElementById("id").innerHTML = arrN[i], but I really didn't know what is suppose to put in id. I tried ("ni"), (arrN[i]), (ni), and ("arrN[i]"). None of them worked. If I don't use the loop, I would have to write the same line of code so many, many times...
Similar to this but with so much more arrays:
var arrN= [n1, n2];
for (i = 0; i < arrN.length; i++){
arrN[i] = prompt("Enter a noun.");
}
if (n1 != null) {
document.getElementById("n1").innerHTML = arrN[0];
}
if (n2 != null) {
document.getElementById("n2").innerHTML = arrN[1];
}
First I created an id for every empty word that is being filled in. Create a CSS that separates that color of the nouns, the verbs, and the adjectives. Everything was easy until the time when I was trying to loop that array. I knew that I have to use document.getElementById("id").innerHTML = arrN[i], but I really didn't know what is suppose to put in id. I tried ("ni"), (arrN[i]), (ni), and ("arrN[i]"). None of them worked. If I don't use the loop, I would have to write the same line of code so many, many times...
Similar to this but with so much more arrays:
var arrN= [n1, n2];
for (i = 0; i < arrN.length; i++){
arrN[i] = prompt("Enter a noun.");
}
if (n1 != null) {
document.getElementById("n1").innerHTML = arrN[0];
}
if (n2 != null) {
document.getElementById("n2").innerHTML = arrN[1];
}
So I tried reading more online, researching to help myself figure this out at home. Then I finally found what I was look for, and it gave me the idea of what I am suppose to do. I love the moment when you figured the issue of the code that had been bothering you for days! Such an amazing filling! It's one of the best things about coding. I tried it in the Tryit Editor from W3schools, and it worked! I was so happy!
http://www.w3schools.com/code/tryit.asp?filename=FAJEHN5HCBEL
Instead of all of those I've tried, I was suppose to put ("n" + i) in the id.
like this:
var arrN = [];
var i;
for (i = 1; i <= 2 ; i++) {
arrN[i] = prompt("enter");
if(arrN[i] != null){
document.getElementById("n" + i).innerHTML = arrN[i];
}
}
So I applied this to the adjectives and verbs as well and it worked perfectly with some minor adjustments.
I'm just so pround that I had finally figured this out, fully understand it, and be able to apply and use it the way I want it to work.
http://www.w3schools.com/code/tryit.asp?filename=FAJEHN5HCBEL
Instead of all of those I've tried, I was suppose to put ("n" + i) in the id.
like this:
var arrN = [];
var i;
for (i = 1; i <= 2 ; i++) {
arrN[i] = prompt("enter");
if(arrN[i] != null){
document.getElementById("n" + i).innerHTML = arrN[i];
}
}
So I applied this to the adjectives and verbs as well and it worked perfectly with some minor adjustments.
I'm just so pround that I had finally figured this out, fully understand it, and be able to apply and use it the way I want it to work.
https://thimbleprojects.org/jh19tommy2/149052/
Subscribe to:
Comments (Atom)