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


Friday, October 9, 2020

Fahrenheit To Celsius Converter in Visual FoxPro

Fahrenheit To Celsius Converter in Visual FoxPro

Leap Year Checker in Visual Basic NET

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.

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.

Program Listing

' Author : Jake Rodriguez Pomperada,MAED-IT, MIT
' Visual Basic NET
' jakerpomperada@gmail.com
' Bacolod City, Negros Occidental Philippines
' www.jakepomperada.com / www.jakerpomperada.blogspot.com

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim y As Integer

        y = Val(TextBox1.Text)
        If y Mod 100 = 0 Then
            If y Mod 400 = 0 Then
                Label2.Text = "The given year " & y & " is a Leap year."
            Else
                Label2.Text = "The given year " & y & " Not is a Leap year."

            End If
        Else
            If y Mod 4 = 0 Then
                Label2.Text = "The given year " & y & " is a Leap year."
            Else
                Label2.Text = "The given year " & y & " Not is a Leap year."
            End If
        End If
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        Label2.Text = ""
        TextBox1.Focus()
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        End
    End Sub
End Class

Higher order systems

Leap Year Checker in C++

Leap Year Checker in C++

 A program that I wrote using C++ to 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.

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.

Program Listing

/* leap_year.cpp
 * Author  : Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
 * Date    : October 9, 2020   Friday
 * Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 * Email   : jakerpomperada@gmail.com
 * Place   : Bacolod City, Negros Occidental Philippines
 */

#include <iostream>

using namespace std;

int main(void)
{
    int year=0;

    cout<<"\n\n";
    cout <<"\tLeap Year Checker in C++";
cout <<"\n\n";
cout <<"\tGiven a year : ";
    cin >>year;
    cout << "\n\n";
    if ((year % 400) == 0)
        cout <<"\tThe given year " << year << " is a leap year. \n";
    else if ((year % 100) == 0)
        cout <<"\tThe given year " << year << " is a not leap year. \n";
    else if ((year % 4) == 0)
        cout <<"\tThe given year " << year << " is a leap year. \n";
    else
        cout <<"\tThe given year " << year << " is a not leap year. \n";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
} // End of Program



Memories of my Journey as Software Engineer Team Lead in Manila

US Dollar To Philippine Peso Converter in C++

US Dollar To Philippine Peso Converter

 

Write a program to convert the US Dollar ($) into Philippine Peso. Assume that one  US Dollar is equivalent to 50.74 Pesos. Then display the result on the screen Using C++ 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.

Program Listing

// us_peso.cpp
// Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
// Date    : October 9, 2020   Friday  6:25 AM
// Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com
// Email   : jakerpomperada@gmail.com
// Place   : Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <iomanip>

const double Dollar2Peso = 50.74;

int main()
{
    double amount=0.00;
    std::cout << "\n\n";
    std::cout << "\tUS Dollar To Philippine Peso Converter";
    std::cout << "\n\n";
    std::cout << "\tEnter amount in $ US Dollar : ";
    std::cin >> amount;
    std::cout << std::setprecision(2);
    std::cout << std::fixed;
    std::cout << "\n";
    std::cout << "\tAmount in Philippines Peso: "
              << amount * Dollar2Peso << '\n';
    std::cout << "\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n\n";
}