Sunday, October 18, 2015

Odd and Even Number Checker in Visual Basic 6

A simple program that I wrote before to check if the given number by the user is odd or even number using Visual Basic 6.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.






Sample Program Output


Binary to Decimal Converter in Visual Basic 6

A simple program that I wrote a long time ago in my programming class in Visual Basic 6. What does the program will do is to ask the user to enter binary value and then the program will convert the binary value to its decimal equivalent.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.


Sample Program Output



Keypress Navigation in Visual Basic 6

A simple code that I wrote a long time ago in Visual Basic 6 that enables the user to navigate between text boxes in the form in Visual Basic 6 the code is very simple for beginners in Visual Basic 6.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.


Thursday, October 15, 2015

Odd and Even Number Checker in JQuery

This simple program that I wrote will check if the number given by the user is Odd or Even number using JQuery. The code is very short and easy to understand I hope you will find my work useful in your learning in JQuery programming.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.



Program Listing

<html>
<head>
<script type="text/javascript" language="Javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 </head>
 <style>
 h3 {
  font-family:arial;
  color:green;
  }
  </style>
<body>
<script language="javascript" type="text/javascript">
function  check_odd_even(val) 
   {
     var number = parseInt(val);

if ( number % 2 == 0 ){
         alert(number + " is an even number.");
}
          else {
          alert(number + " is an odd number.");
         }
}

$(document).ready(function () {
  value_number = parseInt(prompt("Enter a number"));
   check_odd_even(value_number);
  });
</script>
 </body>
</html>

Decimal To Roman Numeral in JQuery

A program that I wrote using JQuery that will ask the user to enter a decimal number and then it will convert into a roman numeral format. The code is very simple and easy to understand JQuery is one of the most popular Javascript framework library that is widely used by many web developers around the world.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.


Program Listing

<html>
<head>
<script type="text/javascript" language="Javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 </head>
 <style>
 h3 {
  font-family:arial;
  color:green;
  }
  </style>
<body>
<script language="javascript" type="text/javascript">
function  convert_to_roman(val) 

{
var roman_numerals=['I', 'IV', 'V', 'IX', 'X', 'XL', 'L', 'XC', 'C', 'CD', 'D', 'CM', 'M'];
var list_numbers=[1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000];
var x = parseInt(val);
if( x<1 || x>4999 ) 
{
alert(x+' number is out of range.');
   return 0;
}
display_result = '';
for(a=12; a>=0;)
if( list_numbers[a]<=x ) 
{
display_result += roman_numerals[a];
x -= list_numbers[a];
}
else
{
a--;
}
return(display_result);
}

$(document).ready(function () {
  value_number = parseInt(prompt("Enter a number"));
  document.write("<h3>"+value_number + " is equivalent to " +
  convert_to_roman(value_number) + " in roman numerals. </h3>");
  });
</script>
 The input must be in the range of 1 - 4999, or I to MMMMCMXCIX.
</body>
</html>

Find the highest in three numbers in Jquery

I wrote this program to practice my knowledge about JQuery a very popular javascript framework that makes JavaScript programming much easier and enjoyable. What does the program will do is to ask the user to enter three numbers and then the program determine and display which of the three numbers is the highest. I hope you will find my work useful in learning how to write a program in JQuery.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.


Program Listing


<html>
<head>
<script type="text/javascript" language="Javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 </head>
 <style>
 h3 {
  font-family:arial;
  color:green;
  }
  </style>
<body>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
 var a,b,c;
 
   a = parseInt(prompt("Enter first number"));
   b = parseInt(prompt("Enter second number"));
   c = parseInt(prompt("Enter third number"));

      if ( a > b && a > c )
         document.write("<h3> First number is largest. That number is " + a + ". </h3>");
      else if ( b > a && b > c )
         document.write("<h3> Second number is largest. That number is " + b + ". </h3>");
      else if ( c > a && c > b )
         document.write("<h3> Third number is largest. That number is " + c + ". </h3>");
      else   
         document.write("<h3> Entered numbers are not distinct. </h3>");
 });
</script>
 </body>
</html>

Saturday, October 10, 2015

Triangle Patter Number 2 in Java

A simple triangle pattern program that I wrote in my spare time using looping statements in Java. I intended my work for beginners in Java programming.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.




Sample Program Output


Program Listing


// pattern6.java
// Programmer : Mr. Jake R. Pomperada, MAED-IT
// Date       : July 19, 2015
// Tools      : Netbeans 8.0.2
// Email      : jakerpomperada@yahoo.com and jakerpomperada@gmail.com


class pattern6

{
 public static void patt(String str)

   {
    int l=str.length();
    for(int i=0;i<l;i++)
     {
       for(int j=0;j<=i;j++)
                System.out.print(str.charAt(j));
        System.out.println();
   }
   }
    public static void main(String[] args) {

    String Message="Java Programming is FUN";
     patt(Message);
             
    
    }

   }




User Manager Login System in Visual Basic 6

In this article I would like to share a work of my best friend Dave Marcellana a user manager login system written in Visual Basic 6. I ask Dave if he would like to share some of his work in Visual Basic 6 here is it an initial installment one of his program. This program will protect your application from unauthorized access by intruders and other users. I hope you like the work of Dave use this code in your Visual Basic 6 applications and projects freely.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.




Sample Program Output





Sunday, October 4, 2015

Odd and Even Numbers in Java using Two Dimensional Array

A simple program that I wrote in Java programming language that will list down the odd and even numbers from the values given by the user using two dimensional array as our data structure. I hope you will find my work useful in your programming projects and assignments.

If you  have some questions please send me an email  at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.


Sample Program Output


Program Listing

/*
odd_even_numbers_array.java
Programmer By: Mr. Jake R. Pomperada, MAED-IT
Date : July 23, 2015
Tools: NetBeans 8.0.2, Java SE 8.0

Problem No. 2:
  
Write a program that will ask the user to give ten numbers and then
the program will enumerate the odd and even numbers based on the 
given numbers by the user. Kindly use two dimensional array as
your data structure in this problem.
*/
              

import java.util.Scanner;

class odd_even_numbers_two_dimesional {
    
public static void main(String[] args) {
      
     Scanner input = new Scanner(System.in);
     char ch;
        
  do { 
      int [][] values; 
      values  = new int[10][1];  
      int x=0;
      System.out.print("ODD AND EVEN NUMBERS PROGRAMS");
      System.out.println();
      for (int a=0; a<10; a++){
          for (int b=0; b<1; b++) 
         {
         System.out.print("Enter value in item no. " + (a+1) + " : ");
         values[a][b] = input.nextInt();
        }
      }  
         System.out.println(); 
         System.out.print("LIST OF EVEN NUMBERS");
         System.out.println();
      for (int a=0; a<10; a++)
      {
          for (int b=0; b<1; b++) 
         {
           if(values[a][b]%2 == 0) {
                System.out.print(" " + values[a][b]+ " ");
                }
         }       
      }        
      System.out.println(); 
      System.out.print("LIST OF ODD NUMBERS ");
      System.out.println(); 
      for (int a=0; a<10; a++)
      {
          for (int b=0; b<1; b++) 
         {
          if(values[a][b]%2 != 0) {
              System.out.print(" " + values[a][b]+ " ");
                }
         }
      }     
     System.out.println("\n\n"); 
     System.out.print("\nDo you want to continue (Type y or n) : ");
     ch = input.next().charAt(0);                        
     } while (ch == 'Y'|| ch == 'y');  
     System.out.println();
     System.out.print("\t THANK YOU FOR USING THIS PROGRAM");
     System.out.println("\n\n");
  }
} // End of Code
    




List of Employee's using Two Dimensional Array in Java

While I'm learning Java programming one of the most important data structure to be studied by every programmings is array. Array refers to a list of values belong with the same data type. There are several kinds of array in Java the first one is one dimensional array, two dimensional and multi dimensional arrays. In this article I would like to show you two dimensional array in Java that will list down the name's of the employee's.  The program code is very short and very easy to understand by beginner's in Java programming. I hope you will find my work useful in your programming projects and assignments.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.

Sample Program Output


Program  Listing

/*
names_two_dimensional.java
Programmer By: Mr. Jake R. Pomperada, MAED-IT
Date : July 23, 2015
Tools: NetBeans 8.0.2, Java SE 8.0

Problem No. 1:
  
Write a program that show how to assign a variable a value using
two dimensional array and display the result on the screen.
*/


import java.util.Scanner;

class names_two_dimensional {
    
public static void main(String[] args) {
      
     String[][] user_names = 
     {{ "Dr.","Mr.","Engr.","Engr.","Mr."},
     {"Marmelo V. Abante","Jake R. Pomperada,MAED-IT","Ma. Junallie F. Pomperada,Ph.D.",
      "Leslie Vinky P. Pepito, ECE", "Albert A. Pepito,BSIT"}};   
     System.out.println();
     System.out.print("\t LIST OF EMPLOYEES");
     System.out.println("\n\n");
     System.out.println(user_names[0][0] + user_names[1][0]);
     System.out.println(user_names[0][1] + user_names[1][1]);
     System.out.println(user_names[0][2] + user_names[1][2]);
     System.out.println(user_names[0][3] + user_names[1][3]);
     System.out.println(user_names[0][4] + user_names[1][4]);
     System.out.println();
     System.out.print("\t THANK YOU FOR USING THIS PROGRAM");
     System.out.println("\n\n");
  }

} // end of code




Daily Time Record Form HTML and CSS

This will be the first time in my website that I push a work that is not related on computer programming rather than more on user interface I called this design layout daily time record form using HTML and CSS in this example I based my layout in Civil Service Form 48 a standard daily time record form used by government employees here in the Philippines. I hope this short article can help others in understanding how to design and create their our web layouts using HTML and CSS.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.





Sample Program Output

Program Listing

<html>
<body>
<style>
table,td,tr,th { 

 border-collapse: collapse; 
 text-align:center;
 font-family:arial;
 font-size: 15px;
}

div{
  padding-left: 230px;
}

p {
 text-align:left;
 font-family:arial;
 font-size: 12px;
   }
   
p.civil_service_title {
 text-align:left;
 font-family:arial;
 font-size: 10px;
   }  

p.civil_service_title2 {
 padding-left: 10px;
 font-family:arial;
 font-size: 12px;
   }  
   
p.name {
  padding-left: 170px;
 font-family:arial;
 font-size: 12px;
   }     
   
p.dtr {
 padding-left: 140px;
 font-family:arial;
 font-weight:bold;
 font-size: 16px;
   }  
   
 p.circles {
 padding-left: 180px;
 font-family:arial;
 font-size: 12px;
   }  
   
p.line1 {
 padding-left: 40px;
 font-family:arial;
 font-size: 16px;
   }     
</style>
<CAPTION><EM>
<p class="civil_service_title">Civil Service Form No. 48</p>
<p class="dtr">DAILY TIME RECORD </p>
<p class="circles">-----o0o-----</p>

<p class="line1">_____________________________________</p>
  <p class="name">     (Name)</p>

<p class="civil_service_title2"> For the month of______________________________________<br>
Official hours for arrival <br>and departure 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 &nbsp;

Regular days________________<br><br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 Saturdays___________________ </p>
</EM></CAPTION>
<TABLE border="1">

<tr><th rowspan="2">Day<th colspan="2">A.M.
<th colspan="2">P.M.<th colspan="2">Undertime
<TR><th>Arrival<th>Departure 
<th>Arrival<th>Departure 
<th>Hours<th>Minutes
<tr><th>1<td><td><td><td><td><td>
<tr><th>2<td><td><td><td><td><td>
<tr><th>3<td><td><td><td><td><td>
<tr><th>4<td><td><td><td><td><td>
<tr><th>5<td><td><td><td><td><td>
<tr><th>6<td><td><td><td><td><td>
<tr><th>7<td><td><td><td><td><td>
<tr><th>8<td><td><td><td><td><td>
<tr><th>9<td><td><td><td><td><td>
<tr><th>10<td><td><td><td><td><td>
<tr><th>11<td><td><td><td><td><td>
<tr><th>12<td><td><td><td><td><td>
<tr><th>13<td><td><td><td><td><td>
<tr><th>14<td><td><td><td><td><td>
<tr><th>15<td><td><td><td><td><td>
<tr><th>16<td><td><td><td><td><td>
<tr><th>17<td><td><td><td><td><td>
<tr><th>18<td><td><td><td><td><td>
<tr><th>19<td><td><td><td><td><td>
<tr><th>20<td><td><td><td><td><td>
<tr><th>21<td><td><td><td><td><td>
<tr><th>22<td><td><td><td><td><td>
<tr><th>23<td><td><td><td><td><td>
<tr><th>24<td><td><td><td><td><td>
<tr><th>25<td><td><td><td><td><td>
<tr><th>26<td><td><td><td><td><td>
<tr><th>27<td><td><td><td><td><td>
<tr><th>28<td><td><td><td><td><td>
<tr><th>29<td><td><td><td><td><td>
<tr><th>30<td><td><td><td><td><td>
<tr><th>31<td><td><td><td><td><td>
<tr><th colspan="5">
<div> Total </div> <td><td>
</table>
<p>I certify on my honor that the above is a true and correct report of the <br>
hours of work performed, record of which was made daily at the time <br>
 of arrival and departure from office. </p><br>
___________________________________________<br>

<p> VERIFIED as to the prescribed office hours:</p><br>
___________________________________________<br>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
In Charge </p>

</body>
</html>