Friday, December 11, 2020

Addition of Two Numbers in Java with Error Handling

 Machine Problem in Java

  Write a program using Java to ask the user to give two numbers and then it will compute the sum of the two numbers. If the user will give a character or a letter it will display an error message at asking again the user to give a number in order to compute the sum 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing



/**

 * Machine Problem in Java

 * 

 * Write a program using Java to ask the user to give two numbers and then it will

 * compute the sum of the two numbers. If the user will give a character or a letter

 * it will display an error message at ask again the user to give a number in order

 * to compute the sum of the two numbers.


 @author Jake Rodriguez Pomperada,MAED-IT, MIT

 www.jakerpomperada.com / www.jakerpomperada.blogspot.com

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines

 December 11, 2020  Friday  9:12 AM

*/



import java.util.Scanner;


public class Accept_Only_Numbers {


    

    public static void main(String[] args) {

        boolean flag;

        String n1,n2;

        int sum=0;

        do

        {

       

         System.out.println("\n");

       System.out.print("\tAddition of Two Numbers in Java with Error Handling");

       System.out.println("\n"); 

        System.out.print("\tGive First Value : ");

 

        Scanner sc = new Scanner(System.in);

 

        n1 = sc.next();

        System.out.print("\tGive Second Value : ");

        n2 = sc.next();

   

        try

        {

           

            sum = Integer.parseInt(n1) + Integer.parseInt(n2);

            

            flag=false;

        }

        catch(NumberFormatException e)

        {

        System.out.println("\n"); 

        System.out.println("\tGive Integer Value Only.");

            flag=true;

        }

      

        

        }while(flag);

        System.out.println("\n"); 

        System.out.println("\tThe sum of "+ n1 + " and " + n2 + " is " + sum);

        System.out.println("\n");

    System.out.print("\tEnd of Program");

        System.out.println("\n");

    }

    

    

}



Age Checker Using Flowgorithm

Addition and Subtraction of Two Numbers Using Flowgorithm

Addition of Two Numbers Using Flowgorithm (Tagalog)

Thursday, December 10, 2020

How To Declare, Initialize, and Display One Dimensional Arrays in C++

How to Declare, Initialize, and Display One Dimensional Arrays in C++

 Write a program using C++ that demonstrates how to declare, initialize, and display the values in a one-dimensional array.

 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing


/*

Machine Problem in C++


Write a program using C++ that demonstrate how to declare,

initialize and display the values in one-dimensional array.


*/

// arrays.cpp

// Jake R. Pomperada, MAED-IT, MIT

// www.jakerpomperada.com

// www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental


#include <iostream>

#include <iomanip>


using namespace std;


int main()

{

int a[10] = {100,200,300,400,500,600,700,800,900,1000};     

int i=0;

cout << "\n\n";

cout << "\tHow to Declare, Initialize, and Display One Dimensional Arrays in C++";

cout <<"\n\n";

cout <<"\t";

for(i=0;i<10;i++){

cout << setw(5) << i[a] << setw(5);

      

}

    cout <<"\n\n";

    cout <<"\tEnd of Program";

    cout <<"\n";

}

 


Accept Five Numbers and Display them All Using One Dimensional Array in C++

Accept Five Numbers and Display it Using One Dimensional Array in C++

Write a program using C++ that will ask the user to give five numbers and then the program will display the list of given numbers using a one-dimensional array.

 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

/*

Machine Problem in C++


Write a program using C++ that will ask the user to give 

five numbers and then the program will display the list

of given numbers using a one-dimensional array.


*/

// accept_display.cpp

// Jake R. Pomperada, MAED-IT, MIT

// www.jakerpomperada.com

// www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental


#include <iostream>


using namespace std;


int main()

{

int a[5];     

int i=0;

cout <<"\n\n";

cout <<"\tAccept Five Numbers and Display it Using One Dimensional Array in C++";

cout <<"\n\n";

for(i=0;i<5;i++){

cout << "\tEnter Value in Item No. " << i+1 << " : ";

cin >> i[a];

}

cout <<"\n\n";

cout <<"\tDisplay the Results";

cout <<"\n\n";

cout << "\tThe given values are as follows";

cout <<"\n\n";

cout <<"\t";

for(i=0;i<5;i++){

cout <<"" << i[a] <<" ";

    }

    cout <<"\n\n";

    cout <<"\tEnd of Program";

    cout <<"\n";

}

 


Wednesday, December 9, 2020

Bigger Between Two Numbers in Java

Bigger Between Two Numbers in Java

 Write a program that will ask the user to give two numbers and then the program will check and determine which of the two numbers has a bigger numerical value. If the two numbers have an equal numerical value it will display a message they have the same value.

 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.






Program Listing


/**
Machine Problem in Java

Write a program that will ask the user to give two numbers
and then the program will check and determine which of the
two numbers has a bigger numerical value. If the two numbers
has an equal numerical value it will display a message they 
have the same value.


 @author Jake Rodriguez Pomperada,MAED-IT, MIT
 www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 jakerpomperada@gmail.com
 Bacolod City, Negros Occidental Philippines
 December 8, 2020   Tuesday
*/

import java.util.Scanner;

public class Bigger_Between_Two_Numbers {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tBigger Between Two Numbers in Java");
        System.out.println("\n");
        System.out.print("\tGive First Value  : ");
        int first = input.nextInt();
        System.out.print("\tGive Second Value : ");
        int second = input.nextInt();
        
        System.out.println();
        if (first > second) {
        System.out.print("\tThe number " + first 
        + " has the bigger value than " + second + ".");
        } else if (second > first) {
        System.out.print("\tThe number " + second 
        + " has the bigger value than " + first + ".");
        } else {
        System.out.print("\tBoth number " + first 
    + " and " + second + " has the same numerical value.");
    } 
        
        input.close();
        System.out.println("\n");
        System.out.println("\tEnd of Program");
        System.out.println("\n");


}

}


Average of Four Numbers in Java (TAGALOG VERSION)

Average of Four Numbers in Java

 A simple program that I wrote using Java programming language to ask the user to give four numbers and then the program will compute the average of the given 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.






Program Listing

/* Average_of_Four_Numbers.java

 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

 * December 8, 2020 Tuesday

 * www.jakerpomperada.blogspot.com

 * www.jakerpomperada.com

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental

 */


import java.util.Scanner;


public class Average_of_Four_Numbers {


public static void main(String[] args) {

// TODO Auto-generated method stub

Scanner input = new Scanner(System.in);

        

        System.out.println("\n");

        System.out.print("\tAverage of Four Numbers in Java");

        System.out.println("\n");

        System.out.print("\tGive First Value  : ");

        int first = input.nextInt();

        System.out.print("\tGive Second Value : ");

        int second = input.nextInt();

        System.out.print("\tGive Third Value  : ");

        int third = input.nextInt();

        System.out.print("\tGive Fourth Value : ");

        int fourth = input.nextInt();

        

        

        int total_sum = (first+second+third+fourth);

        

        int  average = (total_sum)/4;

        

        input.close();

        

        System.out.println();

        System.out.println("\tGiven Numbers are as follows");

        System.out.println();

        System.out.println("\t" + first + ", "+ second +", "+ third 

        + ", and " + fourth+".");

        System.out.println();

        System.out.print("\tThe average is " + average + ".");

        System.out.println("\n");

        System.out.println("\tEnd of Program");

        System.out.println("\n");


}


}


Addition of Two Numbers Using Flowgorithm

Addition of Two Numbers in VB NET TAGALOG VERSION

Addition of Two Numbers in VB.NET (Tagalog Version)

 I wrote this program to show how to write a program to ask the user to give two numbers and then the program will compute the sum of two numbers using vb.net

 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.






Program Listing

Public Class Form1


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

        Dim sum, a, b As Integer


        a = Val(TextBox1.Text)

        b = Val(TextBox2.Text)


        sum = (a + b)


        Label3.Text = "The sum of " & a & " and " & b & " is " + Str(sum) + "."


    End Sub


    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        TextBox1.Text = ""

        TextBox2.Text = ""

        Label3.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


Monday, December 7, 2020

Civil Status Checker Using If-Else If in Java

 A program that I wrote using Java programming language to ask the user to select its civil status from a menu and display the selected civil status 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.








Program Listing

civil_status_checker.java


import java.util.Scanner;


/**


 @author Jake Rodriguez Pomperada,MAED-IT, MIT

 www.jakerpomperada.com / www.jakerpomperada.blogspot.com

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines

 December 7, 2020   Monday  12:16 PM

*/



public class Civil_Status_Checker {


public static void main(String[] args) {

// TODO Auto-generated method stub


  Scanner input = new Scanner(System.in);

        

        System.out.println("\n");

        System.out.print("\tCivil Status Checker Using If-Else If in Java");

        System.out.println("\n");

        System.out.print("\tA - Single,  B - Married,  C - Widow,  D - Divorced,  E - Separated ==> ");

        char  civil_status =input.next().charAt(0);

        

        char select = Character.toUpperCase(civil_status);

        

        System.out.println();

        

        if (select == 'A') {

        System.out.print("\tYou civil status is SINGLE.");

        } else if (select == 'B') {

        System.out.print("\tYou civil status is MARRIED.");

        } else if (select == 'C') {

        System.out.print("\tYou civil status is WIDOW.");

        }  else if (select == 'D') {

        System.out.print("\tYou civil status is DIVORCED.");

        } else if (select == 'E') {

        System.out.print("\tYou civil status is SEPARATED.");

        } else {

        System.out.print("\tInvalid Option. Try Again.");

        }

        System.out.println("\n");

    System.out.print("\tEnd of Program");

        System.out.println("\n");

}

}


Sunday, December 6, 2020

Addition of Two Numbers in Java TAGALOG VERSION

Addition of Two Numbers in Java (TAGALOG VERSION)

 I create this tutorial to show how to write addition of two numbers 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

/* Addition_Two_Numbers.java

 *  Mr. Jake R. Pomperada, MAED-IT, IT

 *  www.jakerpomperada.com

 *  www.jakerpomperada.blogspot.com

 *  jakerpomperada@gmail.com

 *  Bacolod City, Negros Occidental Philippines

 */  


import java.util.Scanner;


public class Addition_Two_Numbers {


  public static void main(String[] args) {


   int a=0, b=0, sum=0;


  Scanner input = new Scanner(System.in);


   System.out.println();

  System.out.print("\tAddition of Two Numbers in Java (TAGALOG VERSION):

  System.out.println("\n");

  System.out.print;n("\tGive First Value : ");

  a = input.nextInt();

 System.out.println();

  System.out.print;n("\tGive First Value : ");

  b = input.nextInt();


 sum = a + b;


 System.out.println(); 

 System.out.println("\tThe sum of " + a + " and " + b + " is " + sum + ".");

  System.out.println();

  System.out.println("\tEnd of Program");

  System.out.println();

 }

}

Friday, December 4, 2020

Halo Bag Unboxing Video

Student Grade Solver With Remarks in C++

Student Grade Solver with Remarks in C++

 Machine Problem in C++

Write a C++ program that enters a Grades 1st, 2nd, 3rd, and 4th Quarter and displays the average and remarks.

Remarks:

90 - 100 Excellent

86 -89  Very Good

81 - 85 Good

75 - 80 Fair

75 below Failed

Any remarks : Invalid

 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing

/*

Machine Problem


Write a C++ program that enters a Grades 1st, 2nd, 3rd and 4th

Quarter and display the average and remarks.


Remarks:

90 - 100 Excellent

86 -89  Very Good

81 - 85 Good

75 - 80 Fair

75 below Failed

Any remarks : Invalid

*/


#include <iostream>


using namespace std;


int main()

{

int first_q = 0;

int second_q = 0;

int third_q= 0;

int fourth_q = 0;

int average = 0;

string remarks;

cout << "\n\n";

cout <<"\tStudent Grade Solver with Remarks in C++";

cout << "\n\n";

cout << "\tEnter First  Quarter : ";

cin >> first_q;

cout << "\tEnter Second Quarter : ";

cin >> second_q;

cout << "\tEnter Third  Quarter : ";

cin >> third_q;

cout << "\tEnter Fouth Quarter : ";

cin >> fourth_q;

average = (first_q+second_q+third_q+fourth_q) / 4;

if (average >= 90  && average <= 100) {

remarks = "Excellent";

} else if (average >= 86  && average <= 89) {

remarks = "Very Good";

} else if (average >= 81  && average <= 85) {

remarks = "Good";

} else if (average >= 75  && average <= 80) {

remarks = "Fair";

} else if (average < 75) {

remarks = "Failed";

} else {

remarks = "Invalid";

}

cout << "\n\n";

cout << "\tAverage : " << average <<"\n";

cout << "\tRemarks : " << remarks;

cout << "\n\n";

cout << "\tEnd of Program";

cout << "\n\n";

}


Even Numbers Using While Loop Skip No 4 and 8 in C++

Even Numbers Using While Loop Skip No. 4 and 8 in C++

 Machine Problem in C++

Using while loop writes a C++ program that will display numbers 0,2,4,6,8..20 and skip numbers 4 and 8.

 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing


/*

Machine Problem in C++


Using while loop writes a C++ program that will display

numbers 0,2,4,6,8..20 and skip numbers 4 and 8.


Mr. Jake Rodriguez Pomperada,MAED-IT, MIT

www.jakerpomperada.com

www.jakerpomperada.blogspot.com

jakerpomperada@gmail.com

Bacolod City, Negros Occidental, Philippines

December 4, 2020   Friday 

*/


#include <iostream>

#include <iomanip>


using namespace std;


int main()

{

     

      int a=0;

         

      cout <<"\n\n";

      cout <<"\tEven Numbers Using While Loop Skip No. 4 and 8 in C++";

      cout <<"\n\n";

      cout <<"\t";

      while ( a<=20) {

if (a== 4 || a== 8)

        {

        a+=2;  

      continue;

       }

   cout <<setw(4) << a <<setw(4);     

       a+=2;  

   }

  cout << "\n\n";

      

}

Employees Payroll System in Java