Saturday, December 21, 2019

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

Gender Checker in VB.NET

I wrote this program to ask the user to select the gender of the user using the checkbox to select its gender whether it is a male or female using Microsoft Visual Basic NET as my 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

Public Class Form1


    Private Sub CheckBox1_CheckedChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
        If CheckBox1.Checked = True Then
            MsgBox("You are a Male.")
        End If

    End Sub

    Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged
        If CheckBox2.Checked = True Then
            MsgBox("You are a Female.")
        End If
    End Sub
End Class



Average of Three Numbers Using VB.NET

I wrote this program to ask the user to give three numbers and then the program will compute the average of the three numbers using Microsoft Visual Basic NET as my 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

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim average, a, b, c As Integer

        a = Val(TextBox1.Text)
        b = Val(TextBox2.Text)
        c = Val(TextBox3.Text)

        average = (a + b + c) / 3

        Label4.Text = "The average of three numbers is " & Trim(Str(average)) & "."
    End Sub
End Class



Wednesday, December 18, 2019

Odd and Even Number Checker in Visual Foxpro

A simple program that I wrote that will ask the user to give a number and then the program will check if the given number is an odd or even number using Microsoft Visual Foxpro as my 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

* Ok Button 

num_val = VAL(thisform.text1.value)

IF (num_val % 2 = 0) then
messagebox("The given number "+ ALLTRIM(STR(num_val))+ " is " + " and Even Number.",64,"The Result")
thisform.text1.Value=""
thisform.text1.setfocus()
ELSE
messagebox("The given number "+ ALLTRIM(STR(num_val))+ " is " + " and Odd Number.",64,"The Result")
thisform.text1.Value=""
thisform.text1.setfocus()
ENDIF


* Quit Button

thisform.release