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

}
Categories
C

Descending Numbers Using For Loop Statement in C

A simple C program to display a series of numbers in descending order from 1000 to 100.

I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, 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

Program Listing


/* for_loop.c
   Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
   Date     : September 9, 2020
   Email    : jakerpomperada@gmail.com
   Location : Bacolod City, Negros Occidental Philippines. */
   
#include <stdio.h>

int main()
{
	int a=0;
	
	printf("\n\n");
	printf("\tDescending Numbers Using For Loop Statement in C");
	printf("\n\n");
	printf("\t");
	for (a=1000; a>=100; a-=100)
	{
		printf("%4d",a);
	}
}

Categories
C

Prime Numbers From 1 To 350 in C

A simple program to display a series of numbers from 1 to 350 using a C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, 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

Program Listing

/* prime.c 
   Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
   Date     : September 8, 2020
   Email    : jakerpomperada@gmail.com
   Location : Bacolod City,Negros Occidental Philippines */
#include <stdio.h>

int main()
{
	int i=0,flag=0,low=1, high=350;
	
	printf("\n\n");
	printf("\tList of Prime Numbers form 1 To 350");
	printf("\n\n");
	
   while (low < high) {
      flag = 0;

      if (low <= 1) {
         low++;
         continue;
      }

      for (i = 2; i <= low / 2; ++i) {

         if (low % i == 0) {
            flag = 1;
            break;
         }
      }
      if (flag == 0)
         printf("%d ", low);
    low++;
   }
	
}