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
Go

Product of Two Numbers in Go

 A simple program that I wrote using Go programming language to ask the user to give two numbers and then the program will multiply the values of the two 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

/* product.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : September 22, 2020  10:22 PM 	Tuesday
   Websites : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
   Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
   Location : Bacolod City, Negros Occidental Philippines.
*/

package main

import "fmt"

func main() {
	var a, b int
	var product int

	fmt.Printf("\n")
	fmt.Print("\tProduct of Two Numbers")
	fmt.Print("\n\n")
	fmt.Print("\tEnter First Value  : ")
	fmt.Scan(&a)
	fmt.Print("\tEnter Second Value : ")
	fmt.Scan(&b)

	product = (a * b)

	fmt.Printf("\n")
	fmt.Printf("\tThe product of %d and %d is %d.",
		a, b, product)
	fmt.Printf("\n\n")
	fmt.Print("\tEnd of Program")
	fmt.Print("\n\n")
}
Categories
JavaScript

Swapping Two Numbers in JavaScript

I will show you how to write a JavaScript program to ask two numbers and then the program will swap the arrangement of the two numbers. 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

<!DOCTYPE html>
<html>
<head>
<script>
function swapping(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=a;
a=b;
b=c;
document.getElementById("answer1").value= a;
document.getElementById("answer2").value= b;
}

function clear_all(){
document.getElementById("first").value= "";
document.getElementById("second").value= "";
document.getElementById("answer1").value= "";
document.getElementById("answer2").value= "";
document.getElementById("first").focus();
}
</script>
<style>
	body {
		font-family: arial;
		size : 15px;
	};
</style>
</head>
<body>
<h2> Swapping Two Numbers in JavaScript </h2>
<h3> Before Swapping of Two Numbers </h3>
Give First Value  : <input id="first" 
onkeypress="return event.charCode >= 48 && event.charCode <= 57">
Give Second Value : <input id="second" 
onkeypress="return event.charCode >= 48 && event.charCode <= 57"></br></br>
<button onclick="swapping()">Swap</button>
&nbsp;&nbsp;
<button onclick="clear_all()">Clear</button></br></br>
<h3> After Swapping of Two Numbers </h3>
Give First  Value  : <input id="answer1"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" readonly>
Give Second Value  :  <input id="answer2"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" readonly>
</body>
</html>
Categories
C++

Subject Grade Solver in C++

In this article will show you how to write a program using C++ that will ask the user to give the subject of the student, the prelim, midterm, semifinal, and final grade and then the program will compute the general average grade of the student 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

// grade_solver.cpp
// Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
// Date    : September 22, 2020  Tuesday
// Website : http://www.jakerpomperada.blogspot.com
// Email  : jakerpomperada@gmail.com

#include <iostream>
#include <string.h>

using namespace std;

// Prelim = 0.20, Midterm = 0.20, 
// SemiFinal = 0.20, Final = 0.40

int main() 
{
 int prelim=0, midterm=0;
 int semifinal=0,finals=0;
 int solve_grade=0;
 
 char student_name[100];
 char subject[100];

cout <<"\n\n";
 cout <<"\tSubject Grade Solver in C++";
 cout <<"\n\n";
 cout <<"\tStudent Name : ";
 gets(student_name);
 
 cout <<"\tSubject      : ";
 gets(subject);
 cout <<"\n\n";
 cout <<"\tEnter Prelim Grade : ";
 cin >> prelim;
 cout <<"\tEnter Midterm Grade : ";
 cin >> midterm;
 cout <<"\tEnter Semi Final Grade : ";
 cin >> semifinal;
 cout <<"\tEnter Final Grade : ";
 cin >> finals;
 
 solve_grade = (prelim * 0.2) +
               (midterm * 0.2) +
               (semifinal * 0.2) +
               (finals * 0.4);   
 
 cout <<"\n\n";
 cout << "\tStudent : " << student_name;
 cout <<"\n\n";
 cout << "\tSubject : " << subject;
 cout <<"\n\n";
 cout <<"\tYou general average grade is "
     << solve_grade <<".";
 cout <<"\n\n";
 cout <<"\tEnd of the Program";
}
Categories
C++

Area of the Circle in C++

 A simple program to ask the user to give the radius of the circle and then it will compute the area of the circle using the C++ 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com


Program Listing

// C++ program to calculate area of the circle
// Author   : Jake Rodriguez Pomperada, MAED-IT,MIT
// Date     : September 18, 2020
// Email    : jakerpomperada@gmail.com
// Location : Bacolod City, Negros Occidental, Philippines

#include <iostream>
#include <iomanip>

using namespace std;

 int main() {

   float radius=0.00, area_circle=0.00;
  
   cout <<"\n\n"; 
   cout <<"\tArea of the Circle in C++"; 
   cout <<"\n\n"; 
   cout << "\tGive radius of circle: ";
   cin >> radius;

   area_circle = 3.14 * radius * radius;
   
   cout << fixed << showpoint;
   cout << setprecision(2);
   cout <<"\n"; 
   cout << "\tThe Area of the circle is " << area_circle;
   cout <<"\n\n"; 
   cout <<"\tEnd of the Program";
}
Categories
C++

Addition of Four Numbers in C++

 A simple program to ask the user to give four numbers and then the program will compute the sum of the four values given by the user using C++ 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com
Program Listing

// Addition of Four Numbers in C++
// Author : Jake Rodriguez Pomperada,MAED-IT,MIT
// Date   : September 17, 2020
// Location : Bacolod City, Negros Occidental Philippines
// Email   : jakerpomperada@gmail.com

#include <iostream>

using namespace std;

int main() {
	int sum=0,a=0,b=0,c=0,d=0;
	
	cout << "\tAddition of Four Numbers in C++";
	cout << "\n\n";
	cout << "\tGive Four Numbers : ";
	cin >> a >> b >> c >> d;
	
	sum = (a+b+c+d);
	
	cout << "\n\n";
	cout << "\tThe total sum is " << sum << ".";
	}
Categories
Java

Odd and Even Number Checker in Java

 Write a program using Java programming language to ask the user to give a number and then the program will check and determine whether the given number is an odd or even number 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com

Program Listing

// odd_even.java
// Jake Rodriguez Pomperada,MAED-IT,MIT
// www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental, Philippines.

package odd_even;

import java.util.Scanner;

public class odd_even {

	public static void main(String[] args) {
		        Scanner reader = new Scanner(System.in);
		
		        
		        System.out.println("\n");
			    System.out.print("\t\tOdd and Even Number Checker in Java");
			    System.out.println("\n");
			    
		        System.out.print("\tEnter a number: ");
		        int num = reader.nextInt();
		        
		        System.out.println();
		        
		        if(num % 2 == 0)
		            System.out.println("\tThe given number " 
		            + num + " is an Even Number.");
		        else
		            System.out.println("\tThe given number " 
		                     +num + " is an Odd Numbe.r");
	 System.out.println("\n");
     System.out.println("\tEnd of Program");
     System.out.println("\n\n");
	}
}

Categories
Java

Addition of Two Numbers in Java

 A simple program that will ask the user to give two numbers and then the program will compute the sum of the two numbers using Java programming language. I am using Eclipse as my Java integrated development environment.

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

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

Program Listing


import java.util.Scanner;

public class Addition {

	public static void main(String[] args) {
	   int num1, num2, sum;
	   Scanner sc = new Scanner(System.in);
	
	     System.out.println("\n");
	    System.out.print("\t\tAddition of Two Numbers in Java");
	    System.out.println("\n");
	 
        System.out.print("\tEnter First Number: ");
        num1 = sc.nextInt();
        
        System.out.print("\tEnter Second Number: ");
        num2 = sc.nextInt();
        
        sc.close();
        sum = num1 + num2;
        
        System.out.print("\n");
        System.out.print("\tThe sum of " + num1 + " and " 
                  + num2 + " is "+ sum + ".");
        System.out.println("\n");
        System.out.println("\tEnd of Program");
        System.out.println("\n\n");
	}

}