Friday, December 23, 2016
Project 1: Calculator
This project was
developing a fully functional JavaScript calculator. At first it was hard
because I thought it was more complicated than it actually was. At first I
thought it took arrays and loops when I didn’t have to use them. I looked up a
tutorial and it really educated me. It recommended using the form tag that I
never used before. The rest of the code was making buttons and the display
section of the calculator. The inputs appeared in the display because of
functions that already existed. There was no need to define my own functions.
The main code I used was “<input
type=button value="#"
OnClick="calculator.view.value+='#'">” to show the numbers and the operators. The
location to display the numbers and the operators is in the calculator form in
the view colspan. This is why it is shown in the code. For the “clear” button,
there was an apostrophe instead of a number. For the “=” button the end was
changed to “calculator.view.value=eval(calculator.view.value)”
This project really showed me what I can do
with coding.
Tuesday, December 20, 2016
Career Fair
The Career Fair at Information Technology's library was a great learning experience. I talked to a graduate of this school, Sodman. He explained what the college experience is like and how we have to act and conduct ourselves in the real world. It was really eye opening because he said that we have to step up for ourselves because because no one else will. Also I talked to an alumni named Tiffany who said to be more motivated in high school because those years will affect the future the most as well as college. As far as the careers I talked to the Marines. This was really insightful because they talked about how not all military occupation have to be in the field. One of them was an engineer. This really caught my attention because I was considering the military but ruled it out because I thought it was all war zones and danger. After you served the benefits are good as well. The career fair really opened my eyes to what I could do and how I should be.
Thursday, December 15, 2016
Lab 8
In this lab we had to demonstrate our knowledge of loops. In my lab I executed loops and gave brief explanations of each one. The for loop is best for when something has to be repeated a known number of times and it is inconvenient to type it over and over. The for in loop is best when the contents of an array have to be written. The loop could write them out for you. The while loop is good for when a condition is temporary and something has to be done during the conditions current state. The do while loop is exactly the same however it ensures that the code executes at least once.
Subscribe to:
Comments (Atom)
