Learn Computer Programming Free from our source codes in my website.
Sponsored Link Please Support
https://www.techseries.dev/a/27966/qWm8FwLb
https://www.techseries.dev/a/19181/qWm8FwLb
My Personal Website is http://www.jakerpomperada.com
Email me at jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Wednesday, October 14, 2020
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.
/**
* @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");
}
}
Tuesday, October 13, 2020
Addition and Subtraction Using Function in C++
I wrote this program to ask the user to give two numbers and then the program will compute the sum and difference of the two numbers using functions in 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.
/* add_subtraction.cpp
Author : Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
Date : October 13, 2020 Tuesday 9:08 PM
Tools : CodeBlocks IDE and C++ Compiler
Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com
Email : jakerpomperada@gmail.com
Location : Bacolod City, Negros Occidental Philippines.
*/
#include <iostream>
using namespace std;
int addition(int a, int b)
{
return(a+b);
}
int subtraction(int c, int d)
{
return(c-d);
}
int main(void) {
int x=0,y=0;
cout <<"\n\n";
cout << "\tAddition and Subtraction Using Function in C++";
cout <<"\n\n";
cout << "\tGive Two Numbers : ";
cin >> x >> y;
cout <<"\n\n";
cout <<"\tDisplay Results";
cout <<"\n\n";
cout <<"\tThe sum of " << x << " and " << y << " is "
<< addition(x,y) << ".\n\n";
cout <<"\tThe difference between " << x << " and " << y << " is "
<< subtraction(x,y) << ".\n";
cout <<"\n\n";
cout <<"\tEnd of Program";
cout <<"\n\n";
}
Sum and Product of Two Numbers in Java
In this article, 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 product 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.
Program Listing
Swapping of Two Numbers in Java
I wrote this Java program to ask the user to give two numbers and then the program will swap the arrangement of two numbers given by the user 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.
Program Listing
import java.util.Scanner;
/**
* @author Jake Rodriguez Pomperada, MAED-IT, MIT
* jakerpomperada@gmail.com
* www.jakerpomperada.com / www.jakerpomperada.blogspot.com
* Bacolod City, Negros Occidental
* October 13, 2020 Tuesday
*/
public class Swapping_Numbers {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
int temp=0;
System.out.println("\n");
System.out.print("\t\tSwapping 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();
System.out.println("\n");
System.out.println("\tValues Before Swapping : a, b = "+a+", "+ + b);
// Perform Swapping Here
temp = a;
a = b;
b = temp;
System.out.println();
System.out.println("\tValues After Swapping : a, b = "+a+", "+ + b);
System.out.print("\n");
System.out.println("\tEnd of Program");
System.out.println("\n\n");
}
}
Positive and Negative Number Checker in Java
A simple program that I wrote using Java to ask the user to give a number and then the program will determine whether the given number is zero, positive, and negative 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.
Monday, October 12, 2020
Leap Year Checker in Java
I will show you how to write a Java program that takes a year from the user and print whether that year is a leap year or not.
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.
Sunday, October 11, 2020
Volume of a Sphere in C++
Write a program to calculate the volume of a sphere. Then display the result. Use the following formula: V=4/3 π r3.
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.
Saturday, October 10, 2020
Odd and Even Number in Visual FoxPro Version 2
A simple program that I wrote using Microsoft Visual Foxpro to ask the user to give a number and then the program will check and determine where the given number is an odd or even number.
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.
Friday, October 9, 2020
Leap Year Checker in Visual Basic NET
A simple program that I wrote using Microsoft Visual Basic NET that will ask the user to give a year and then the program will check if the given year is a leap year or not a leap year.
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.
Program Listing


