Friday, 30 January 2015

Week 33: January 26-30 No idea!

Hi!

        I'm done with exercise 4!



    The while statement evaluates expression, which must return a boolean value. If the expression evaluates to true, the whilestatement executes the statement(s) in the while block. The while statement continues testing the expression and executing its block until the expression evaluates to false.





Using  a do while loop and a switch statement to evaluate the menu item selected to produce output similar to what you see below.


      Do while loop executes group of Java statements as long as the boolean condition evaluates to true.It is possible that the statement block associated with While loop never get executed because While loop tests the boolean condition before executing the block of statements associated with it.

     In Java programming, sometime it's necessary to execute the block of statements at least once before evaluating the boolean condition. Do while loop is similar to the While loop, but it evaluates the booleancondition after executing the block of the statement.



  Credits: http://www.java-examples.com/do-while-loop
   And we did prejs4quiz and js4quiz! I have no idea! So I did'nt made it as usual as always.:(




Friday, 23 January 2015

Week 32: Jan.19-23 Exercises!

Hi!


      We don't  have class in our ICT Class on Monday and Tuesday.  On wednesday, I've  finished my exercise 2 and 3. While on friday, I had finished my exercise 4.  But I did'nt know how to make the exercise 5. I tried my best.

 
      Here are examples.







    Number() converts to a Number, String() converts to a String, Boolean() converts to a Boolean.

JavaScript Data Types

In JavaScript there are 5 different data types that can contain values:
  • string
  • number
  • boolean
  • object
  • function
There are 3 types of objects:
  • Object
  • Date
  • Array
And 2 data types that cannot contain values:
  • null
  • undefined

The typeof Operator

You can use the typeof operator to find the data type of a JavaScript variable.

Example

typeof "John"                 // Returns string typeof 3.14                   // Returns numbertypeof NaN                    // Returns numbertypeof false                  // Returns booleantypeof [1,2,3,4]              // Returns objecttypeof {name:'John', age:34}  // Returns objecttypeof new Date()             // Returns objecttypeof function () {}         // Returns functiontypeof myCar                  // Returns undefined (if myCar is not declared)typeof null                   // Returns object
Please observe:
  • The data type of NaN is number
  • The data type of an array is object
  • The data type of a date is object
  • The data type of null is object
  • The data type of an undefined variable is undefined
You cannot use typeof to define if an object is an JavaScript Array or a JavaScript Date.

Taken from http://www.w3schools.com/js/js_type_conversion.asp.
signing off...

Friday, 16 January 2015

Week 31: January 12-16 Exercise 1

Hi!

       On monday, I'm late because of something I can't remember. But we made another exercise and nobody got this in our batch. And then on the next day, I did it! Yes! 


     Here is our exercise 1:



The While Loop

 A while loop is a control structure that allows you to repeat a task a certain number of times.

Syntax:

The syntax of a while loop is:
while(Boolean_expression)
{
   //Statements
}
When executing, if the boolean_expression result is true, then the action inside the loop will be executed. 
This will continue as long as the expression result is true.
Here, key point of the while loop is that the loop might not ever run. 
When the expression is tested and the result is false, the loop body will be skipped 
and the first statement after the while loop will be executed.

Example:

public class Test {

   public static void main(String args[]) {
      int x = 10;

      while( x < 20 ) {
         System.out.print("value of x : " + x );
         x++;
         System.out.print("\n");
      }
   }
}
This would produce the following result:
value of x : 10
value of x : 11
value of x : 12
value of x : 13
value of x : 14
value of x : 15
value of x : 16
value of x : 17
value of x : 18
value of x : 19
Taken from http://www.tutorialspoint.com/java/java_loop_control.htm
signing off...



Friday, 9 January 2015

Week 30: January 5 - 9: Frustrated!

  Hi!

           How sad? We did'nt enter to our ICT class for taking the scholarship exam in UPANG.  But it does'nt work because of unfortunate happenings like we're not prepared and others entered our ICT class. I hate it! I should've just entered to our ICT class. I promise not to repeat this kind of wrong decision.:)



          On the next day, we've checked our folders and files!:) I'm so very happy because I had improved myself  even how. And then we made an activity. As usual, I did'nt made it right. But I'll try in our house to study even though I can't understand.:)








signing off...

Friday, 2 January 2015

December 21- January 2 Welcome 2015!

 Hi!


Archive for January 2015

Hi!

        I'm done with exercise 4!



    The while statement evaluates expression, which must return a boolean value. If the expression evaluates to true, the whilestatement executes the statement(s) in the while block. The while statement continues testing the expression and executing its block until the expression evaluates to false.





Using  a do while loop and a switch statement to evaluate the menu item selected to produce output similar to what you see below.


      Do while loop executes group of Java statements as long as the boolean condition evaluates to true.It is possible that the statement block associated with While loop never get executed because While loop tests the boolean condition before executing the block of statements associated with it.

     In Java programming, sometime it's necessary to execute the block of statements at least once before evaluating the boolean condition. Do while loop is similar to the While loop, but it evaluates the booleancondition after executing the block of the statement.



  Credits: http://www.java-examples.com/do-while-loop
   And we did prejs4quiz and js4quiz! I have no idea! So I did'nt made it as usual as always.:(




Week 33: January 26-30 No idea!

Friday, 30 January 2015
Posted by Unknown
Hi!


      We don't  have class in our ICT Class on Monday and Tuesday.  On wednesday, I've  finished my exercise 2 and 3. While on friday, I had finished my exercise 4.  But I did'nt know how to make the exercise 5. I tried my best.

 
      Here are examples.







    Number() converts to a Number, String() converts to a String, Boolean() converts to a Boolean.

JavaScript Data Types

In JavaScript there are 5 different data types that can contain values:
  • string
  • number
  • boolean
  • object
  • function
There are 3 types of objects:
  • Object
  • Date
  • Array
And 2 data types that cannot contain values:
  • null
  • undefined

The typeof Operator

You can use the typeof operator to find the data type of a JavaScript variable.

Example

typeof "John"                 // Returns string typeof 3.14                   // Returns numbertypeof NaN                    // Returns numbertypeof false                  // Returns booleantypeof [1,2,3,4]              // Returns objecttypeof {name:'John', age:34}  // Returns objecttypeof new Date()             // Returns objecttypeof function () {}         // Returns functiontypeof myCar                  // Returns undefined (if myCar is not declared)typeof null                   // Returns object
Please observe:
  • The data type of NaN is number
  • The data type of an array is object
  • The data type of a date is object
  • The data type of null is object
  • The data type of an undefined variable is undefined
You cannot use typeof to define if an object is an JavaScript Array or a JavaScript Date.

Taken from http://www.w3schools.com/js/js_type_conversion.asp.
signing off...

Week 32: Jan.19-23 Exercises!

Friday, 23 January 2015
Posted by Unknown
Hi!

       On monday, I'm late because of something I can't remember. But we made another exercise and nobody got this in our batch. And then on the next day, I did it! Yes! 


     Here is our exercise 1:



The While Loop

 A while loop is a control structure that allows you to repeat a task a certain number of times.

Syntax:

The syntax of a while loop is:
while(Boolean_expression)
{
   //Statements
}
When executing, if the boolean_expression result is true, then the action inside the loop will be executed. 
This will continue as long as the expression result is true.
Here, key point of the while loop is that the loop might not ever run. 
When the expression is tested and the result is false, the loop body will be skipped 
and the first statement after the while loop will be executed.

Example:

public class Test {

   public static void main(String args[]) {
      int x = 10;

      while( x < 20 ) {
         System.out.print("value of x : " + x );
         x++;
         System.out.print("\n");
      }
   }
}
This would produce the following result:
value of x : 10
value of x : 11
value of x : 12
value of x : 13
value of x : 14
value of x : 15
value of x : 16
value of x : 17
value of x : 18
value of x : 19
Taken from http://www.tutorialspoint.com/java/java_loop_control.htm
signing off...



Week 31: January 12-16 Exercise 1

Friday, 16 January 2015
Posted by Unknown
  Hi!

           How sad? We did'nt enter to our ICT class for taking the scholarship exam in UPANG.  But it does'nt work because of unfortunate happenings like we're not prepared and others entered our ICT class. I hate it! I should've just entered to our ICT class. I promise not to repeat this kind of wrong decision.:)



          On the next day, we've checked our folders and files!:) I'm so very happy because I had improved myself  even how. And then we made an activity. As usual, I did'nt made it right. But I'll try in our house to study even though I can't understand.:)








signing off...

Week 30: January 5 - 9: Frustrated!

Friday, 9 January 2015
Posted by Unknown
 Hi!


December 21- January 2 Welcome 2015!

Friday, 2 January 2015
Posted by Unknown
 

Blog Template by YummyLolly.com - Header made with PS brushes by gvalkyrie.deviantart.com
Sponsored by Free Web Space