Categories
Java

Math Calculator in Java

A simple math calculator program that I wrote in Java 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, web development using WordPress, Computer 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/

Program Listing

Math_Calculator.java

import java.util.*;

public class Math_Calculator {
    public static void main(String[] args){
    Scanner Input = new Scanner(System.in);
    System.out.println("Enter Number");
    System.out.println("1 - Addition");
    System.out.println("2 - Subtraction");
    System.out.println("3 - Division");
    System.out.println("4 - Multiplication");
    
    int choice = Input.nextInt();
    if(choice==1){
        System.out.println("Enter first number");
        double num1 = Input.nextDouble();
        System.out.println("Enter Second number");
        double num2 = Input.nextDouble();
        double sum = num1+num2;
        System.out.println("sum= " + sum);
        
        
        }
    else if(choice==2){
        System.out.println("Enter first number");
        double num1 = Input.nextDouble();
        System.out.println("Enter Second number");
        double num2 = Input.nextDouble();
        double difference = num1-num2;
        System.out.println("difference= " + difference);
        
       
        }
    else if(choice==3){
        System.out.println("Enter first number");
        double num1 = Input.nextDouble();
        System.out.println("Enter Second number");
        double num2 = Input.nextDouble();
        double qoutient = num1/num2;
        System.out.println("qoutient= " + qoutient);
        
        }
   else if(choice==4){
        System.out.println("Enter first number");
        double num1 = Input.nextDouble();
        System.out.println("Enter Second number");
        double num2 = Input.nextDouble();
        double product = num1*num2;
        System.out.println("product= " + product);
        }
       else{
            System.out.println("invalid");
       }
    }
}
Categories
Java

Do While Loop in Java

I wrote this simple program to demonstrate how to declare and use do while loop statement using Java 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, web development using WordPress, Computer 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/

Sample Program Output

Program Listing

Do_While_Loop.java


public class Do_While_Loop {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		   System.out.println();
		   System.out.print("\tDo While Loop in Java");
		   System.out.println("\n");
		   int i=1;  
		   System.out.print("\t");
		    do{  
		        System.out.print(" " +i+" ");  
		    i++;  
		    }while(i<=10);  
	}

}
Categories
Java

Compound Interest Solver in Java

I wrote this program will ask the user to give the principal amount to be a loan, a number of years to be paid the loan and the interest rate and then the program computes the compound interest based on the amount being loan by the customer or client.

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, web development using WordPress, Computer 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/

Sample Program Program Output


My video tutorial on my YouTube channel.

Program Listing

Compound_Interest.java


import java.util.*;


public class Compound_Interest {

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

		
       double principal=0.00, rate=0.00, t=0.00;
       double compound_solve=0.00;
       
       Scanner input = new Scanner(System.in);
       
       System.out.println("\n");
       System.out.print("\tCompound Interest Solver in Java");
       System.out.println("\n");
       System.out.print("\tGive the Amount  $        : ");
       principal = input.nextDouble();
       System.out.print("\tGive the Number of Years  : ");
       t = input.nextDouble();
       System.out.print("\tGive the Interest Rate    : ");
       rate = input.nextDouble();
       
       compound_solve = principal * Math.pow(1.0+rate/100.0,t) - principal;
       
       System.out.println("\n");
       System.out.print("\tThe Compound Interest is $" +compound_solve+".");
       System.out.println("\n");
       System.out.print("\tEnd of Prorgam");
       System.out.println("\n");
        
       
       
	}

}
Categories
Java

Simple Interest Rate Solver in Java

I wrote this program to perform computation on the simple interest rate solver using the Java 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.comMy 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/

Sample Program Output


My video tutorial on my YouTube Channel.

Program Listing

Simple_Interest.java

import java.util.*;

public class Simple_Interest {

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

		double principal,rate,time_value;
		double simple;
		
		Scanner input = new Scanner(System.in);
		
		System.out.println("\n");
		System.out.print("\tSimple Interest Rate Solver in Java");
		System.out.println("\n");
		System.out.print("\tGive Principal Amount  $ : ");
		principal = input.nextDouble();
		System.out.print("\tGive Number of Years     : ");
		time_value = input.nextDouble();
		System.out.print("\tGive the Interest Rate   : ");
		rate = input.nextDouble();
		
		simple = (principal * time_value * rate) /100;
		
		System.out.println("\n");
		System.out.print("\tThe Simple Interest Rate is $ " + simple + ".");
		System.out.println("\n");
		System.out.println("\tEnd of Program");
				
	}

}
Categories
Java

Word Count in the Sentence in Java

I wrote this program to ask the user to give a sentence and then the program will count the number of words in the given string using Java 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.comMy 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/

Sample Program Output
My video tutorial on my YouTube channel.



Program Listing

WordCount.java


import java.util.Scanner;

public class WordCount {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		String text;
		int countWords=0;
		
		Scanner Input = new Scanner(System.in);
		
		System.out.println("\n");
		System.out.print("\tWord Count in the Sentence in Java");
		System.out.println("\n");
		System.out.print("\tGive a Sentence : ");
		text = Input.nextLine();
		
			
		for (int a=0; a<text.length()-1; a++) {
			if (text.charAt(a)== ' ' && text.charAt(a+1) != ' '){
				countWords++;
			}
				}
		System.out.println("\n");
		System.out.print("\tTotal number of words is " + (countWords+1) +".");
		System.out.println("\n");
		System.out.print("\tEnd of Program");
		System.out.println("\n");

	}

	

}
Categories
Java

Factorial Solver in Java

I wrote this program to ask the user to give the number and then the program will compute the factorial value of the given number using Java 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.comMy 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/

Sample Program Output
My video tutorial on my YouTube Channel.

Program Listing

FactorialSolver.java

import java.util.Scanner;


public class FactorialSolver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		
		int number=0;
		
		Scanner Input = new Scanner(System.in);

		System.out.println("\n");
		System.out.print("\tFactorial Solver in Java");
		System.out.println("\n");
		System.out.print("\tGive a Number : ");
		number = Input.nextInt();
		int factorial = number;
		
		for (int i=(number -1); i > 1; i--){
			factorial*=i;
		}
		
		System.out.println("\n");
		System.out.print("\tFactorial of " + number + " is "+ factorial +".");
		System.out.println("\n");
		System.out.println("\tEnd of Program");
	}

}
Categories
Java

Area of the Circle Solver in Java

I wrote this simple program to ask the user to give the radius of the circle and then it will compute the area of the circle using Java programming language. I am using Eclipse as my text editor in writing this program.


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, web development using WordPress, Computer 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/

Sample Program Output
My video tutorial on my YouTube channel.

Program Listing

AreaCircle.java


import java.util.Scanner;

public class AreaCircle {

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

		
		int radius=0;
		final double  PIE = 3.1416;
		
		double area_circle=0.00;
		
		
		Scanner Input = new Scanner(System.in);
		
		System.out.println("\n");
		System.out.print("\tArea of the Circle Solver in Java");
		System.out.println("\n");
		System.out.print("\tGive the radius of the circle : ");
		radius = Input.nextInt();
		System.out.println("\n");
		area_circle = (PIE * radius * radius);
		System.out.print("\tThe Area of the Circle is " +area_circle +".");
		System.out.println("\n");
		System.out.println("\tEnd of the Program");
		System.out.println("\n");
	}

}
Categories
Java

Interface in Java

I wrote this program to demonstrate how to declare and use the interface statement using the Java 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, web development using WordPress, Computer 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/

Sample Program Output


My video tutorials in my YouTube channel.

Program Listing

Interface_Demo.java


interface info {
	static final String language ="Java Programming";
	
	public void display();
}


public class Interface_Demo implements info {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Interface_Demo object = new Interface_Demo(); 
        object.display();
	}
	
	// Define method declared in the interface
	
	public void display() {
	   System.out.println("\n\n");
  	   System.out.print("\tInterface Program in Java");
		System.out.println("\n\n");
		System.out.println("\t" +language + " is Fun and Easy.");
	}

}

Categories
Java

Static Method Example in Java

In this tutorial, I will show you how to declare and use a static method in Java in a very simple way.

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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.comMy 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/

Sample Program Output
Video tutorial of my YouTube.com

Program Listing

Static_Demo.java


public class Static_Demo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		display_result();

	}
  
	static void display_result() {
		System.out.print("Static Method Example in Java\n\n");
		System.out.println("Welcome To Java Programming\n");
		System.out.println("Jake R. Pomperada");
	}
	
}

Categories
Java

String Inputs in Java

I wrote this program to show you how to accept a string and display the given string in the screen in Java 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.comMy 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/

Sample program output
My video tutorial on my YouTube channel.

Program Listing

String_Input .java

import java.util.Scanner;


public class String_Input {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner input = new Scanner(System.in);
		
		String name,address, email;
		
		System.out.println("\n");
		System.out.print("\tString Inputs in Java");
		System.out.println("\n");
		System.out.print("\tEnter Your Name    : ");
		name =input.nextLine();
		System.out.print("\tEnter Your Address : ");
		address =input.nextLine();
		System.out.print("\tEnter Your Email   : ");
		email =input.nextLine();
		System.out.println();
		System.out.print("\tDISPLAY RESULTS");
		System.out.println("\n");
		System.out.print("\tName    : " + name +"\n");
		System.out.print("\tAddress : " + address +"\n");
		System.out.print("\tEmail   : " + email +"\n");
		System.out.println();
		System.out.print("\tEnd of the Program");
		System.out.println();
	}

}