Tuesday, October 20, 2020

Compound Interest in Java

Compound Interest in Java

 A Java program that I wrote to ask the user to give the principal amount, rate, and years to be paid by the user.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.





Sample Program Output




Program Listing


Compound_Interest,java

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * October 20, 2020   Monday
 */


import java.util.Scanner; 
import java.text.DecimalFormat;

public class Compound_Interest {
private static DecimalFormat df2 = new DecimalFormat("#.###");

public static void main(String[] args) {
// TODO Auto-generated method stub

    Scanner input = new Scanner(System.in);
      
      System.out.println("\n");
  System.out.print("\t\tCompound Interest m in Java");
        System.out.println("\n");
      
      System.out.print("\tEnter Principal Amount   :  ");
      double principal_amt = input.nextDouble();
    
      System.out.print("\tEnter Interest Rate      :  ");
      double rate = input.nextDouble();
    
      System.out.print("\tEnter Number of Years    :  ");
      double time = input.nextDouble();
    
        // Calculate compound interest rate here 
      
      double CI = principal_amt * 
                 (Math.pow((1 + rate / 100), time));
        
     System.out.print("\n");
     System.out.println("\tThe Compound Interest is $  "+ df2.format(CI)); 
     System.out.print("\n\n");
System.out.println("\tEnd of Program");
System.out.println("\n\n");
}

}

Monday, October 19, 2020

Payroll Program in Java

Payroll Program in Java

 I wrote this java program to compute the salary of an employee in the company.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * October 19, 2020   Monday
 */


import java.util.Scanner; 
import java.math.RoundingMode;
import java.text.DecimalFormat;

public class Payroll_Program {

/**
* @param args
*/
private static DecimalFormat df2 = new DecimalFormat("#.###");

public static void main(String[] args) {
// TODO Auto-generated method stub
  String emp_name;         
      int hours;           
      double payRate;      
      double grossPay;     
      

      Scanner input = new Scanner(System.in);
      
      System.out.println("\n");
  System.out.print("\t\tPayroll Program in Java");
        System.out.println("\n");
      
      System.out.print("\tGive Employees Name :  ");
      emp_name = input.nextLine();
     
      System.out.print("\tHow many hours did you work this week? : ");
      hours = input.nextInt();
      
      
      System.out.print("\tWhat is your hourly pay rate? : ");
      payRate = input.nextDouble();
      
       grossPay = hours * payRate;
      
      System.out.print("\n");
      System.out.print("\t===== Display Records =====");
      System.out.print("\n\n");
      System.out.println("\tEmployees Name :  " + emp_name);
      System.out.println("\tGross Pay      : PHP " + df2.format(grossPay));
      System.out.print("\n\n");
  System.out.println("\tEnd of Program");
       System.out.println("\n\n");
}

}

Sunday, October 18, 2020

Leap Year in Visual Basic

Leap Year in Visual Basic

 A simple program that I wrote using Visual Basic 6 to ask the user to give a starting year and ending year and then the program will generate the list of years based on the given starting and ending years of the user.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

Option Explicit

Public Function IsLeapYear0(ByVal y As Integer) As Boolean
    On Error Resume Next
    IsLeapYear0 = False
    'If the year is evenly divisible by 4 and not by 100, then this
    'is a leap year.
    If y Mod 4 = 0 And y Mod 100 <> 0 Then
        IsLeapYear0 = True
        'If the year is evenly divisible by 4 and 100, then check to
        'see if the quotient of year divided by 100 is also evenly
        'divisible by 4. If it is, then this is a leap year.
    ElseIf y Mod 4 = 0 And y Mod 100 = 0 Then
        If (y \ 100) Mod 4 = 0 Then IsLeapYear0 = True
    End If
End Function


Private Sub Command1_Click()
Dim y As Integer

    For y = Val(Text1.Text) To Val(Text2.Text)
        If IsLeapYear0(y) Then lstLeapYears(0).AddItem y
    Next y
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
lstLeapYears(0).Clear
Text1.SetFocus
End Sub

Private Sub Command3_Click()
End
End Sub


Friday, October 16, 2020

Inches To Centimeter Converter in Java

 A program that I wrote using Java programming language that will ask the user to give a value in inches and then the program will convert it into centimeter equivalent.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

/**

 * @author Jake Rodriguez Pomperada,MAED-IT, MIT

 * www.jakerpomperada.com / www.jakerpomperada.blogspot.com

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippines

 */


import java.util.Scanner;


public class Inches_Centimeters {


/**

* @param args

*/

public static void main(String[] args) {

// TODO Auto-generated method stub

       Scanner in = new Scanner(System.in);

        

        System.out.println("\n");

        System.out.print("\tInches To Centimeter Converter in Java");

        System.out.println("\n");

        System.out.print("\tGive the inches: ");

        float inches =in.nextFloat();

        float cm = inches * 2.54f;

        System.out.println("\n");

        System.out.println("\t" +inches + " inches is "

                          + cm + " centimeter(s).");

        System.out.println();

        System.out.println("\tEnd of Program");

        System.out.println("\n");


}


}


Simple Interest Loan Solver in Java

Simple Interest Loan Solver in Java

TUPV 41st Commencement Exercises - Baccalaureate Mass

Thursday, October 15, 2020

Simple Interest Loan Solver in Java

 I will show you how to write a Java program to calculate simple interest loan by the customer in lending or a bank.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

import java.util.Scanner;

public class Simple_Interest_Solver {

public Simple_Interest_Solver() {
// TODO Auto-generated constructor stub
public static void main(String[] args) {
// TODO Auto-generated method stub
// create an object of Scanner class
Scanner input = new Scanner(System.in);

   System.out.println("\n");
   System.out.print("\t\tSimple Interest Loan Solver in Java");
   System.out.println("\n");
    
    // take input from users
    System.out.print("\tGive the principal amount : ");
    double principal = input.nextDouble();

    System.out.print("\tGive the interest rate: ");
    double rate = input.nextDouble();
    rate = rate/100;

    System.out.print("\tGive the time: ");
    double time = input.nextDouble();

    double interest = (principal * time * rate) / 100;

    System.out.println("\n");
    System.out.println("Principal: $ " + principal);
    System.out.println("Interest Rate: " + rate);
    System.out.println("Time Duration: " + time);
    System.out.println("Simple Interest: $ " + interest);
    System.out.print("\n");
          System.out.println("\tEnd of Program");
    System.out.println("\n\n");
    input.close();
             
}

}



Absolute Value Number in Java

Absolute Value Number in Java

 I will show you how to write a Java program to ask the user to give a number and then the program will convert the given number into an absolute value equivalent.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

import java.util.Scanner;


public class Absolute_Value {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);

   System.out.println("\n");
   System.out.print("\t\tAbsolute Value Number in Java");
   System.out.println("\n");
       System.out.print("\tGive a Number  :  ");
        
       double a = input.nextInt();
       
       System.out.println();
       System.out.println("\tThe absolute value of " + a + " is " +Math.abs(a) + ".");
       
       System.out.print("\n");
       System.out.println("\tEnd of Program");
       System.out.println("\n\n");
       System.out.println("\n");


}

}



Paano Ba Mag Apply ng Trabaho na Epektibo

Wednesday, October 14, 2020

Square Root Number in Java

Square Root Number in Java

 A simple program that I wrote using Java to ask the user to give a number and then the program will convert the given number into its square root equivalent.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
 * Bacolod City, Negros Occidental
 * October 14, 2020   Wednesday
 */

import java.util.Scanner;
import java.lang.Math; 


public class Square_Root_Number {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);

     System.out.println("\n");
   System.out.print("\t\tSquare Root Number in Java");
   System.out.println("\n");
       System.out.print("\tGive a Number  :  ");
        
       double a = input.nextInt();
       
       System.out.println();
       System.out.println("\tThe square root value of " + a + " is " + Math.sqrt(a) + ".");
       
       System.out.print("\n");
       System.out.println("\tEnd of Program");
       System.out.println("\n\n");
       System.out.println("\n");

}

}

Paano Ba Maging Computer Programmer

Addition and Subtraction of Two Numbers in Java

Addition and Difference of Two Numbers in Java

 I will show you how to write a Java program to ask the user to give two numbers and then the program will compute and display the sum and difference of the two numbers given by the user.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.




Sample Program Output

Program Listing



/**

 * @author Jake Rodriguez Pomperada, MAED-IT, MIT

 * jakerpomperada@gmail.com

 * www.jakerpomperada.com  / www.jakerpomperada.blogspot.com

 * Bacolod City, Negros Occidental

 * October 14, 2020   Wednesday

 */


import java.util.Scanner;


public class Addition_Difference {


public static void main(String[] args) {

// TODO Auto-generated method stub

Scanner input = new Scanner(System.in);


  System.out.println("\n");

     System.out.print("\t\tAddition and Difference of Two Numbers in Java");

System.out.println("\n");

        System.out.print("\tGive First Value :  ");

         

        int a = input.nextInt();

      

        System.out.print("\tGive Second Value :  ");

        

        int b = input.nextInt();

      

      

        int addition = (a+b);

        int difference = (a - b);

        

        System.out.println();

        System.out.println("\tThe sum of " + a + " and " + b + " is " + addition + ".\n");

        System.out.println("\tThe product of " + a + " and " + b + " is " + difference + ".");

        System.out.print("\n");

    System.out.println("\tEnd of Program");

        System.out.println("\n\n");

        System.out.println("\n");


}


}