Thursday, January 19, 2017

Lab 9 Reflection Journal


              For lab 9 I had to create a form and have it validated using JavaScript. This lab was also very challenging for me because it was very confusing having it be completely validated with no errors. I created the table using the input and label tags, I didn't put them in a table. The form asks for the first and last name, date of birth, age, email and zip code. First I made sure that it resets and then I used JavaScript to make functions which I linked to the submit button using the onclick event handler. If you submit it without filling out anything pop ups will appear telling you to fill out those areas left blank. If you put it in correctly then it wouldn't say anything about it. The age was a way to confirm if the birthday entered is true or false. The limit I put on the age was 100. Also I learned about how you had to use regular expressions for the illegal characters. This lab is useful because I can use it in the future for companies/clients who are selling things or anything that requires making a form online. 

Lab 8 Reflection Journal


             For lab 8 I had to show demonstrations of the 4 different types of loops which we learned about. The types of loops are the for loop, the for/in loop, the do/while loop and the whole loop. So I first created an HTML document and I put in 3 headings which contained the lab number, my name and the date and the course. I then created a table in which I organized it by putting the type of loop and next to it is a button in which when you click on it, it demonstrates that kind of loop. I linked the external CSS style sheet to the HTML document. I had to use an onclick event handler and the demonstration I put for the for loop is a loop which lists the even numbers up to 16. For the for/in loop demonstration, I put a loop which asks the user for their favorite color, name and age and it writes it out on the HTML document. I made a loop that asked the user for a number, decimal and symbol and write it out for the while loop demonstration. For the do/while loop demonstration, I have a loop that writes numbers from 4-7. This lab is useful and will be used in future labs and projects because it's much more convenient using loops rather than putting the same code over for several times.

WBL workshop - OSHA and labor laws

                                                               
               In this WBL workshop, we learned about child labor laws and workplace safety. It was discussing about the work rights that minors have. Examples of these are that they have a right to a fair and full days pay, the right to a safe workplace and to file a complaint if your job is unsafe, and the right to equal employment opportunity and to work in an environment free from discrimination and harassment. Minors can't drive a 4 wheel vehicle, use power tools, work on a roof, slice meat with a machine, work with nuclear weapons, mine coal, do demolition work, and manufacture bricks or tiles. 
              The legal work hours for 16-17 year olds are that they can't work more than 4 hours when school is in session, can't work more than 8 hours on the weekend, and can't work past 10 pm or before 6 am. Also they have to be supervised and receive training if required for their job. All students must sign a memorandum of agreement in the wbl program which covers the workers compensation in case of injury. OSHA which stands for Occupational Safety and Health Administration is a federal government agency that enforces job safety laws. Also to speak to an adult or teacher if you're being sexual harassed or if your workplace is violent. 

WBL Workshop: Job Interviewing Skills Reflection Journal

                                                       
            In this work based learning workshop, I learned various interviewing skills from the guest that came to speak to us, Mr. Chow from Wood Tobe-Coburn College. He said that the 5 interviewing skills that you need to know are appearance, body language, verbal, writing, and listening. The power colors are navy blue, dark grey, down and a black suit which we should wear during an interview. He said that companies hire based on the image that suits the company. For example a professional business wouldn't hire those that don't come dressed up professionally and have tattoos visibly shown on their necks. We got a list of interviewing questions from him that may be asked and also he practiced some of them with us. He also gave us a few tips and pointers. He also showed us how to properly introduce ourselves and shake hands. I really liked this workshop because it was very fun, interactive and useful.

Tuesday, January 3, 2017

Booleans Reflection Journal



          From the w3schools articles on booleans, I learned that booleans have only true or false values.   Comparison and Logical operator are used to test for true or false. Some examples of the operators are == (equal to), < (less than), and > (greater than). When using the == operator, equal Booleans are equal. The boolean value of 0 is false. The boolean value of -0 is false. The boolean value of an empty string is false. The Boolean value of undefined, null, false and NaN is false. Booleans can be defined as objects by using var x = new Boolean(false);. In the === operator, equal booleans aren't equal because it expects equality on both sides. Objects CAN'T be compared. The conditional (ternary) operator assigns a value to a variable based on some condition. 
The syntax is:
variablename = (condition) ? value1:value2.
When comparing a string with a number, the string is converted into a number during the comparison. An empty string is converted to the number 0. 

Tuesday, December 20, 2016

College and Career Fair Reflection Journal

           In the college and career fair on December 16, there were many representatives from schools, different career fields, companies, and also some of them were alumnis. Some of the representatives were Hunter, Monroe College, the army and marines, SUNY Polytech, and many more. After their introductions, I went around the different tables and talked to them. They talked about their experiences, gave advice, and also talked about the programs that were offered at their school. In this college and career fair, I was able to look at different fields of experience and also gain some knowledge that I didn't previously know. They came with the purpose of opening up our minds to different options and know that it is alright if we are not too sure about what we want right now because our mind could change. They also had some internships that they offered and talked about. It was fun when they were giving out prizes, which were their products. Overall, it was a very nice experience.
          As I talked to some of the colleges, I saw that some students were doing an internship over there. It was interesting and I would like to know more about those opportunities.  Additionally, some of the companies showed us their product. It was so creative and we also had opportunities to try those products. In the college fair, Steve Madden Company, had a raffle game. They were giving out their own products such as scarf, winter glove, and bags. I think they should have come visit us earlier in the beginning of the year because then seniors would be able to put some of the college that they visited to their college applications.

Sunday, December 11, 2016

Lab 7 Reflection Journal


        For this lab I had to create a mad libs game in where I ask the user to give me nouns, adjectives, and verbs. Then I replace the blank spaces in the mad libs with the user's input. I first created the html document and applied my overall css to it. Then after I put in my headings, I put the mad libs story in a paragraph. I put the span tag around the nouns, adjectives, and verbs fill in the blank and gave them all an id name and put separate colors to be able to tell where the user's input went. After that, I created my javascript file where I had to create an array where I ask for a prompt (either noun, adjectives, or verbs), and I used the document,getElementById("idname").innerHTML to replace the text with whatever was put in the prompt.
       The prompt asks for adjectives 6 times, nouns for 11 times and for 1 verb. Then I tested it out and published it in thimble. I can see myself using this skill in the future for when I am doing a project that requires the use of arrays. This is relevant to web design because you can manipulate arrays by using the array name.concat or array name.push or array name.shift. Also the it would be more organized to use the array. I learned how to do something using a different method.