Wednesday, October 14, 2020

Square Root Number in Java

 A simple program that I wrote using Java to ask the user to give a number and then the program will convert the given number into its square root equivalent.

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  / www.jakerpomperada.blogspot.com
 * Bacolod City, Negros Occidental
 * October 14, 2020   Wednesday
 */

import java.util.Scanner;
import java.lang.Math; 


public class Square_Root_Number {

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\tSquare Root Number in Java");
   System.out.println("\n");
       System.out.print("\tGive a Number  :  ");
        
       double a = input.nextInt();
       
       System.out.println();
       System.out.println("\tThe square root value of " + a + " is " + Math.sqrt(a) + ".");
       
       System.out.print("\n");
       System.out.println("\tEnd of Program");
       System.out.println("\n\n");
       System.out.println("\n");

}

}

Paano Ba Maging Computer Programmer

Addition and Subtraction of Two Numbers in Java

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.


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.




Sample Program Output

Program Listing



/**

 * @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 of Two Numbers Using Functions in C++

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.


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

/*  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

Sum and Product of Two Numbers in Java

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.


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  / www.jakerpomperada.blogspot.com
 * Bacolod City, Negros Occidental
 * October 13, 2020   Tuesday
 */

import java.util.Scanner;

public class Sum_Product {

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\tSum and Product 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 sum = (a+b);
         int product = (a * b);
         
         System.out.println();
         System.out.println("\tThe sum of " + a + " and " + b + " is " + sum + ".");
         System.out.println("\tThe product of " + a + " and " + b + " is " + product + ".");
         System.out.print("\n");
      System.out.println("\tEnd of Program");
         System.out.println("\n\n");
         System.out.println("\n");
      }

}


Program Listing

Swapping of Two Numbers in Java

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.


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


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

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.


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  / www.jakerpomperada.blogspot.com
 * Bacolod City, Negros Occidental
 * October 13, 2020   Tuesday
 */

import java.util.Scanner;

public class Positive_Negative_Numbers {

/**
* @param args
*/
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\tPositive and Negative Number Checker in Java");
System.out.println("\n");
         System.out.print("\tGive a Number :  ");
              
        int num_val = input.nextInt();
        

        System.out.println();
        if (num_val > 0)
        {
           System.out.println("\tThe given number " + num_val + " is positive.");
        }
        else if (num_val < 0)
        {
           System.out.println("\tThe given number " + num_val + " is negative.");
        }
        else
        {
           System.out.println("\tThe given number " + num_val + " is zero.");
        }
        System.out.print("\n");
    System.out.println("\tEnd of Program");
        System.out.println("\n\n");
}

}


Monday, October 12, 2020

Leap Year Checker in Java

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.


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
 * October 12, 2020   Monday
 */


import java.util.Scanner;

public final class Leap_Year_Checker {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);

    System.out.println("\n");
     System.out.print("\t\tLeap Year Checker in Java");
System.out.println("\n");
         System.out.print("\tGive a Year :  ");
               
         int year = input.nextInt();

        boolean x = (year % 4) == 0;
        boolean y = (year % 100) != 0;
        boolean z = ((year % 100 == 0) && (year % 400 == 0));
        
        System.out.print("\n\n");
   
        if (x && (y || z))
        {
         System.out.println("\tThe give year is " + year + " is a leap year.");
        }
        else
        {
        System.out.println("\tThe give year is " + year + " is not a leap year.");
        }
        System.out.print("\n\n");
    System.out.println("\tEnd of Program");
        System.out.println("\n\n");
}

}

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.


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

// volume_sphere.cpp
// Author   : Jake Rodgriguez Pomperada,MAED-IT,MIT
// Date     : October 11, 2020  Sunday
// Website  : www.jakerpomperada.blogspot.com / www.jakerpomperada.com
// Email    : jakerpomperada@gmail.com
// Location : Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <cmath>

const double Pi = 3.14;

int main()
{
    double radius=0.00;

    std::cout << "\n\n";
    std::cout << "\tVolume of a Sphere in C++";
    std::cout << "\n\n";
    std::cout << "\tEnter radius: ";
    std::cin >> radius;
    std::cout << "\n\n";
    std::cout << "\tVolume: " << 4 /3 * Pi * std::pow(radius, 3) << '\n';
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
}

Saturday, October 10, 2020

Odd and Even Numbers in Visual FoxPro

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.


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

* Ok Button
txtvalue =  VAL(thisform.txtnum.value)
Remainder =  (txtvalue % 2)

if (Remainder = 0) then

thisform.label2.caption = "The given number " + ltrim(str(txtvalue)) + " is an even number."
thisform.txtnum.setfocus
ELSE
thisform.label2.caption = "The given number " + LTRIM(str(txtvalue)) + " is an odd number."
thisform.txtnum.setfocus
endif   


* Clear Button
thisform.label2.Caption = ""
thisform.txtnum.value=""
thisform.txtnum.setfocus


* Quit Button
Thisform.Release