Categories
Java

Fahrenheit To Celsius in Java

 I will show you how to write a program using the Java programming language to convert temperature from Fahrenheit to Celsius degree.

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
 * September 30, 2020  Wednesday
 */



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


public class Fahrenheit_Celsius {
	
	 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\tFahrenheit To Celsius in Java");
		    System.out.println("\n");

	      	 System.out.print("\tTemperature in Fahrenheit: ");
	        double fahrenheit = input.nextDouble();

	        double  celsius =(( 5 *(fahrenheit - 32.0)) / 9.0);
	        
	        System.out.println("\n");
	        System.out.println("\tThe " + fahrenheit + " Degree Fahrenheit is equal to "
	        + df2.format(celsius) + " in Celsius");
	         System.out.print("\n\n");
			System.out.println("\tEnd of Program");
	        System.out.println("\n\n");
	}

}
Categories
Java

Celsius To Fahrenheit in Java

Write a program using Java programming language to convert temperature from Celsius to Fahrenheit degree.

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
 * September 30, 2020  Wednesday
 */


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

public class Celsius_Fahrenheit {
	
	 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\tCelsius To Fahrenheit in Java");
	    System.out.println("\n");

     	 System.out.print("\tTemperature in Celsius : ");
          double celsius = input.nextDouble();

        /* Convert Celsius to Fahrenheit */
         double Fahrenheit = celsius * (9f / 5) + 32;
        
        System.out.println("\n");
        System.out.println("\tThe " + celsius + " Degree Celsius is equal to "
        + df2.format(Fahrenheit) + " degree in Fahrenheit.");
         System.out.print("\n\n");
		System.out.println("\tEnd of Program");
        System.out.println("\n\n");
	
	}

}
Categories
Java

Difference of Two Integers in Java

 In this article I will show you how write a program that asking the user to give two integer numbers and then the program will compute the difference of the two integer 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

/* difference.java
 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
 * September 27, 2020
 * www.jakerpomperada.blogspot.com
 * www.jakerpomperada.com
 * jakerpomperada@gmail.com
 * Bacolod City, Negros Occidental
 */

import java.util.Scanner;

public class difference {

    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tDifference of Two Integers in Java");
        System.out.println("\n");
        System.out.print("\tGive First Value  : ");
        int firstInt = in.nextInt();
        System.out.print("\tGive Second Value : ");
        int secondInt = in.nextInt();

        System.out.println("\n");
        System.out.printf("\tDifference of two integers: %d%n", firstInt - secondInt);
        System.out.println();
        System.out.println("\tEnd of Program");
        System.out.println("\n");
    }
}
Categories
Java

Remove Consonants in Java

I wrote this program to ask the user to give string and then the program to remove the consonants in the given string using Java programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.comI am also a book author you can purchase my books on computer programming and information technology in the following links below. https://www.unlimitedbooksph.com/

Program Listing

// demo.java
// Written By: Jake Rodriguez Pomperada
// Barangay Alijis, Bacolod City, Negros Occidental Philippines.
// www.jakerpomperada.com
// jakerpomperada@gmail.com
// May 14, 2020  Thursday

package test;

import java.util.Scanner;

public class demo {

   static String Remove_Consonants(String str)
   {
    return  str.replaceAll("[BCDFGHJKLMNPQRSTVXZbcdfghjklmnpqrstvxz]","" );
   }
	
	public static void main(String[] args) {
     
	Scanner in = new Scanner(System.in);
     
     String str_given,display_result;
     
    System.out.print("\n\n");
    System.out.print("\tRemove Consonants in Java");
    System.out.print("\n\n");
    System.out.print("\tGive a String : ");
    str_given = in.nextLine();
    
    System.out.print("\n"); 
    System.out.print("\tString : " + str_given);
    display_result = Remove_Consonants(str_given);
    System.out.print("\n");
    System.out.print("\tResult : " + display_result);
    System.out.println();  
	}

}
Categories
Java

Sum of Two Numbers in Java

A simple java program to accept two numbers and then it will compute the sum of two numbers and display the results on the screen.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

package com.example.java;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        System.out.print("Enter a numeric value: ");
        String input1 = sc.nextLine();
        double d1 = Double.parseDouble(input1);

        System.out.print("Enter a numeric value: ");
        String input2 = sc.nextLine();
        double d2 = Double.parseDouble(input2);

        double result = d1 + d2;

        System.out.println("The answer is " + result);

    }
}
Categories
NodeJS

Positive and Negative Number Checker in NodeJS

I wrote this simple program using NodeJS to ask the user to give a number and then the program will check and determine if the given number is a positive or negative number.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, 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
// num.js
/* Positive and Negative Number Checker in NodeJS    */
/* March 22,2020  Thursday   4:57 PM  */
// Bacolod City,Negros Occidental Philippines
/* Written By: Mr. Jake R. Pomperada   */

var readline = require('readline');

var rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

console.log('\n');
console.log('Positive and Negative Number in NodeJS\n');
console.log('Author : Jake R. Pomperada');
console.log('\n');
rl.question('Enter first value : ', function (x) {
    var a = parseInt(x);


    if (isNaN(a))      {
        console.log('\n');
        console.log("The given value is not a number. Try Again.");
      } else if (a>=0) {
        console.log('\n');
        console.log('The given number ',a, ' is a Positive Number.');
      }
      else {
        console.log('\n');
        console.log('The given number ',a, ' is a Negative Number.');
      }
      console.log('\n');
      console.log('End of Program');
      rl.close();
    
});
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

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");
	}

}