Sunday, December 22, 2019

Employee's Payroll System that Display Highest and Lowest Salary in Java

Here is the code that is being shared with us by my good friend and fellow software engineer Sir Jake Macalig-og which I modify and improve that will compute the salary of the employees and sort the salary of the employees from highest to lowest. We wrote this code will some difficulty because there is no existing code on the Internet so we have to write it from scratch.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.


Thank you very much for your help and support.


Sample Program Output


Program Listing

payroll.java

package test;

import java.util.Scanner; 


public class payroll {

public static void main(String[] args) {
Scanner input = new Scanner (System.in);
      int employees = 0;
      int num = 6; 
      int  temp=0;
      String tempName;
      int[] grossPay  = new int[100];
      //arrays
      String[] names = new String [100];
    
      int[] days = new int[100];
      int[] rate = new int[100];
      int[] wages;
      //scanner
       Scanner keyboard = new Scanner(System.in);
        System.out.println( "EMPLOYEES PAYROLL SYSTEM");
        System.out.println();
        System.out.println("It Displays Highest and Lowest Salary of Employees");
        System.out.println();
         for (int i = 1; i == 1;)
       {
      keyboard.nextLine();
       
         System.out.print( "Enter the Name of Employee  : ");
         names[employees] = keyboard.nextLine();

         System.out.print( "Enter the daily rate        : ");
         rate[employees] = keyboard.nextInt();

         System.out.print( "Enter the days worked       : ");
         days[employees] = keyboard.nextInt();

         System.out.print("Do you want to enter again your employees? [1-Yes / 2-No] : ");
          i = input.nextInt();
          employees++;
      }
       for (int i = 0; i < employees; i++)
         {
           grossPay[i] = days[i] * rate[i];
          
         }
   
  // Bubble Sort of Gross Pay of the Employees together with its Name here
         for (int i = 0; i < employees - 1; i++) 
           {
               for (int j = i + 1; j < employees; j++) 
               {
                   if (grossPay[i] < grossPay[j]) 
                   {
                       temp = grossPay[i];
                       grossPay[i] = grossPay[j];
                       grossPay[j] = temp;

                       tempName = names[i];
                       names[i] = names[j];
                       names[j] = tempName;
                   }
               }
           }

      System.out.print("\n\n");
      System.out.print("\tHighest To Lowest Salary of Employees");
      System.out.print("\n\n");
      for (int i = 0; i < employees; i++){
               
          System.out.println(names[i] + ":" + grossPay[i]);
        }
      System.out.println();
      System.out.println("\tEnd of Program");
      System.out.println();
       
}

} // End of Code




Saturday, December 21, 2019

Miles To Kilometers Distance Table in Java

A simple program in Java that will display a table of distance equivalent of miles to kilometers and vice versa.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.


Thank you very much for your help and support.



Sample Program Output



Program Listing

distance.java

package test;

public class distance {

public static void main(String[] args) {
final double KILOMETERS_PER_MILE = 1.609;
System.out.print("\n\n");
        System.out.println("\tMiles To Kilometers Distance Table in Java");
System.out.print("\n\n");
        // Display table header
System.out.println(
"Miles      Kilometers   |   Kilometers     Miles     ");

// Create and display tables
for (int m = 1, k = 11; m <= 10 && k <= 20; m++, k += 1) {
System.out.printf(
"%-11d%-10.3f", m, (m * KILOMETERS_PER_MILE));
System.out.print("   |   ");
System.out.printf(
"%-15d%-6.3f\n", k, (k / KILOMETERS_PER_MILE));
}

}

}




Payroll Program Sorting Salary in Descending Order in Java

A simple payroll program that I wrote using Java that uses a one-dimensional array and it's sorted the salary in descending order. 


I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.



Sample Program Output



Program Listing

hello.java



package test;

import java.util.Scanner; 
import java.util.Arrays;
import java.util.Collections;;

public class hello {

public static void main(String[] args) {
Scanner input = new Scanner (System.in);
      int employees = 0;
      int num = 6; 
      int n, temp;
      int[] grossPay  = new int[100];
      //arrays
      String[] names = new String [100];
      int[] days = new int[100];
      int[] rate = new int[100];
      int[] wages;
      //scanner
       Scanner keyboard = new Scanner(System.in);
        System.out.println( "WELCOME TO THE PAYROLL SYSTEM");
        System.out.println("");
         for (int i = 1; i == 1;)
       {
         System.out.println( "Enter the Name of Employee :");
         names[employees] = keyboard.next();


         System.out.println( "Enter the rate for Employee : ");
         rate[employees] = keyboard.nextInt();


         System.out.println( "Enter the days worked for Employee : ");
         days[employees] = keyboard.nextInt();

         System.out.println("Do you want to enter again your employees? [1-Yes / 2-No] : ");
          i = input.nextInt();
          employees++;
      }
System.out.println( "Here is the gross pay for each employee:");
      for (int i = 0; i < employees; i++)
      {
        grossPay[i] = days[i] * rate[i];
        if ( grossPay[i] < 10000 )
         {
          System.out.println("The gross pay for " + names[i] +
                            ": $" + grossPay[i] + ". Less than 10k");
         }
         else{
          System.out.println("The gross pay for " + names[i] +
                            ": $" + grossPay[i] + ". Greater than 10k");
        }

      }
    // Bubble Sort of Gross Pay of the Employees here
      for (int i = 0; i < employees; i++) 
        {
            for (int j = i + 1; j < employees; j++) 
            {
                if (grossPay[i] < grossPay[j]) 
                {
                    temp = grossPay[i];
                    grossPay[i] = grossPay[j];
                    grossPay[j] = temp;
                }
            }
        }
        System.out.print("\n\n");
        System.out.print("Descending Order of the Salaries of the Employees");
        System.out.print("\n\n");
        for (int i = 0; i < employees - 1; i++) 
        {
            System.out.print(grossPay[i] + ",");
        }
        System.out.print(grossPay[employees - 1]);
     
}

} // End of Code



Friday, December 20, 2019

Addition of Three Numbers in JavaScript

A simple program that I wrote using JavaScript that will ask the user to give three numbers and then the program will solve for the sum of three numbers and display the results on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.


Sample Program Output


Program Listing

index.html

<!doctype html>
<html>
<head>
<title>Addition of Three Numbers in JavaScript </title>
</head>
<script>
function add_three_number(){
var a,b,c,sum;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=Number(document.getElementById("third").value);
sum= (a+b+c);
document.getElementById("answer").value= sum;
}
</script>
<body>
<h2>Addition of Three Numbers in JavaScript </h2>
<br><br>
Enter the First number : <input id="first"><br>
Enter the Second number: <input id="second"><br>
Enter the Third number: <input id="third"><br>
<br><br>
<button onclick="add_three_number()">Sum All</button>
<input id="answer">
</body>
</html>



Thursday, December 19, 2019

Marquee Using CSS and HTML

A  simple web page design that uses marquee tag was written by my close friend and fellow software engineer Sir  Ernel Fadriquilan using HTML and CSS.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.



Sample Program Output


Program Listing

index.html

<html>
<head>
<style>
#rt1 {
color: blue;
font-family: arial;
font-size: 50px;
font-weight: bolder;
}
#rt2 {
color: green;
font-family: arial;
font-size: 50px;
font-weight: bolder;
}
</style>
</head>
<body>
<marquee id="rt1" direction="right">Welcome</marquee><br>
<marquee id="rt2" direction="left">Webpage</marquee>
</body>

</html>

Calculator in JavaScript Programming Language

A simple calculator was written by my close friend and fellow software engineer Sir  Ernel Fadriquilan using JavaScript programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.



Sample Program Output



Program Listing

index.html

<html>
<head>
<style>
.ct {
height: 160px;
width: 270px;
background-color: orange;
border: 6px solid white;
padding: 30px;
margin-top: 50px;
}
#fm {
color: yellow;
font-family: arial;
font-size: 150%;
font-weight: bolder;
}
#ip {
color: red;
background-color: white;
font-family: arial;
font-size: 100%;
font-weight: bolder;
border: 6px solid white;
}
p {
color: blue;
font-family: arial;
font-size: 150%;
font-weight: bolder;
text-align: center;
}
</style>
</head>
<body>
<script>
function check () {
if (form.a.value == " " || form.b.value == " " ) {
alert ("data is empty");
exit;
}
}
function add () {
check ();
a=eval (form.a.value);
b=eval (form.b.value);
c=a+b
form.total.value = c;
}
function time () {
check ();
a=eval (form.a.value);
b=eval (form.b.value);
c=a*b
form.total.value = c;
}
function subtract () {
check ();
a=eval (form.a.value);
b=eval (form.b.value);
c=a-b
form.total.value = c;
}
function divide () {
check ();
a=eval (form.a.value);
b=eval (form.b.value);
c=a/b
form.total.value = c;
}
function reset () {
form.a.value=" ";
form.b.value=" ";
form.total.value = " ";
}
</script>
<center>
<div class="ct">
<form id="fm" name="form">
1st <input id="ip" type="text" name="a" size="3">
2nd <input id="ip" type="text" name="b" size="3"><br><br>
= <input id="ip" type="text" value=" " name="total" size="9"><br><br>
<input id="ip" type="button" name="submit" onclick="add ()" value="+">
<input id="ip" type="button" name="submit" onclick="time ()" value="×">
<input id="ip" type="button" name="submit" onclick="divide ()" value="/">
<input id="ip" type="button" name="submit" onclick="subtract ()" value="-">
<input id="ip" type="button" name="submit" onclick="reset ()" value="Clear">
</form>
</div>
</center>
<p>MDAS</p>
</body>
</html>




Address Book in PHP and MySQL Using Data Tables

A simple address book that I wrote using PHP, MySQLi and Data Tables. 

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.






Sample Program Output



Average of Three Numbers Using VB.NET

Gender Checker in VB.NET