Monday, September 14, 2020

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



Addition of Two Numbers in 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

addition.java


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

}


Saturday, September 12, 2020

Number Palindrome in C++

Number Palindrome in C++

 A simple program to ask the user to give a number and then the program written in C++ will check if the given number is a Palindrome or Not a Palindrome.

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

#include <iostream>

using namespace std;

int main()
{
int a=0,no=0,b=0,temp=0;
int original=0;

cout <<"\n\n";
cout <<"\tNumber Palindrome in C++";
cout <<"\n\n";
cout<<"\tGive Any Number : ";
cin>>no;

b=no;
original = no;

cout << "\n\n";

while(no>0)
{
a=no%10;
no=no/10;
temp=temp*10+a;
}
if(temp==b)
{
cout<<"\tThe given number " 
    << original<<" is a Palindrome.";
}
else
{
cout<<"\tThe given number " 
    << original<<" is Not a Palindrome.";
}
cout <<"\n\n";
cout << "\tEnd of Program";
cout <<"\n\n";
}


Friday, September 11, 2020

Hello World in C++

String Palindrome in C++

String Palindrome in C++

 This program will ask the user to give a string and then the program will check if the given string is a Palindrome or Not using a 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

// string_palindrome.cpp
// This program will ask the user to give a string 
// and then the program will check if the given 
// string is a Palindrome or Not using  a
// C++ programming language.
// Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
// Website  : http://www.jakerpomperada.com
// Email    : jakerpomperada@gmail.com
// Location : Bacolod City, Negros Occidental Philippines.

#include <iostream>

using namespace std;

int a=0,len=0,j=0,flag=1;
char given_str[100];

int main()
{
cout <<"\n\n";
cout <<"\tString Palindrome in C++\n\n";
cout<<"\tGive a string: ";
cin>>given_str;
    
for(len=0;given_str[len]!='\0';len++);
   
for(a=0,j=len-1;a<len/2;a++,j--)
{
if(given_str[j]!=given_str[a])
flag=0;
}

cout <<"\n\n";

if(flag==1)
{
cout<<"\tThe given string " <<given_str <<  
      " is Palindrome";
}
else
{
cout<<"\tThe given string " << given_str <<  
      " is Not Palindrome";
}
cout <<"\n\n";
cout << "\tEnd of Program";
}

Thursday, September 10, 2020

Average Grade Solver Using if-else in C++

 A simple program to compute the average grade of the student using if-else statement 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

//  grade_average.cpp
//  A C++ program using arrays and if-else statement to
//  solve the average of the student
//  Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
//  Website  : http://www.jakerpomperada.com
//  Email    : jakerpomperada@gmail.com
//  Location : Bacolod City, Negros Occidental Philippines


#include <iostream>

using namespace std;

int main()
{
        int mark[6];
        float sum=0.00,average=0.00;

        cout << "\n\n";
        cout << "\tAverage Grade Solver Using if-else in C++";
        cout << "\n\n";
        for(int a=0; a<6; a++)
        {
            cout<<"\nGive Grade[ "<<a+1<<" ] :: ";
                cin>>mark[a];
                sum+=mark[a];
        }

        average=(sum/6);
  
        cout << "\n\n"; 
        cout << "\tThe Average Grade is " <<average <<"\n\n";
        cout<<"\tYour Letter Grade is :: ";
        if(average>=90)
        {
                cout<<"[ A ]\n";
        }
        else if(average>70 && average<=80)
        {
                cout<<"[ B ]\n";
        }
        else if(average>60 && average<=70)
        {
                cout<<"[ C ]\n";
        }
        else
        {
                cout<<"[ D ]\n";
        }
        cout <<"\n\n";
        cout << "\tEnd of Program";
}

Addition of Two Numbers in Ruby

 A simple program to ask the user to give two numbers and then the program will compute the sum of two numbers using Ruby 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

# Written By Mr. Jake R. Pomperada,MAED-IT,MIT

# jakerpomperada@gmail.com

# jakerpomperada.com

# Bacolod City, Negros Occidental Philippines.

# September 10, 2020

puts "\n\n"

print "\tAddition of Two Numbers in Ruby";

puts "\n\n"

print "\tGive First Value  : ";

val1 = gets;

print "\tGive Second Value : ";

val2 = gets;


val1 = val1.to_i;

val2 = val2.to_i;


sum = sum.to_i;


sum = (val1+val2);


print "\n";

print "\tThe sum of ",val1," and ",val2," is ",sum,".";

puts "\n\n";

print "\tEnd of Program";

puts "\n"


Visiting Bacolod Public Plaza

Wednesday, September 9, 2020

Descending Numbers Using For Loop Statement in C Language

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

}

}

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++;

   }

}


Kapuso Mo, Jessica Soho: Amerikanong vlogger sa Cebu, namimigay ng ayuda!

Tuesday, September 8, 2020

Addition of Two Numbers in JavaScript

Addition of Two Numbers in JavaScript

 In this article, I will show you how to write a JavaScript program to add the sum of two given numbers by user.

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

<doctype html>

<html>

<head>

<style>

body {

font-family: arial;

}

   </style>

<script>

function add(){

var a,b,c;

a=Number(document.getElementById("first").value);

b=Number(document.getElementById("second").value);

c= a + b;

document.getElementById("answer").value= c;

}

</script>

</head>

<body>

<h3> Addition of Two Numbers in JavaScript </h3><br>

Give the First number : <input id="first"><br>

Give the Second number: <input id="second"><br><br>

The result <input id="answer"><br><br>

<button onclick="add()">Add</button>

</body>

</html>



Program Listing

Friday, September 4, 2020

Addition of Three Numbers in C++

 A simple program in C++ to ask the user to give three numbers and then the program will compute the sum of three numbers and display the results on the screen.

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

// addition.cpp

// Created By: Jake Rodriguez Pomperada,MAED-IT,MIT

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental


#include <iostream>


using namespace std;


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


int main() {

cout <<"\n\n";

cout << "\tAddition of Three Numbers in C++";

cout << "\n\n";

cout <<"\tGive three numbers : ";

cin >> a >> b >> c;

cout << "\n";

sum = (a+b+c);

cout << "\n";

cout <<"\tThe sum of " << a <<" ,"<<b<<", and "<<

c << " is " << sum << ".";

cout << "\n\n";

}


Thursday, September 3, 2020

Difference Between Two Numbers in Bash

  In this article will discuss how to write a bash program to ask the user to give two numbers and then the program will compute the difference between two number being given by the user.

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


printf "\n\n"

printf "\tDifference Between Two Numbers in Bash"

printf  "\n\n"

printf  "\tGive First Number : "

read num1

printf  "\tGive Second Number : "

read num2


printf "\n"


difference=$(( $num1 - $num2 ))


printf "\tThe difference between $num1 and $num2 is $difference."

printf  "\n\n"



Wednesday, September 2, 2020

Word Count in C

 Write a C  program to count the number of words in a given string.  Two words are separated by one or more blank spaces.

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

/* word_count.c
   Author : Jake Rodriguez Pomperada,MAED-IT,MIT
   jakerpomperada@gmail.com
   September 2, 2020
   Bacolod City, Negros Occidental  */
   
#include <stdio.h>
#include <string.h>

void main()
{
char a[100];
int len=0,i=0,word=1;
printf("\n\n");
    printf("\tWord Count in C");
    printf("\n\n");
printf("\tGive a String : ");
gets(a);
len=strlen(a);
for(i=0;i<len;i++)
{
if(a[i]!=' ' && a[i+1]==' ')
word=word+1;
}
printf("\n");
printf("\tThere are %d in the given string.",word);
printf("\n");
}

Leap Year Checker in Bash

Tuesday, September 1, 2020

Leap Year Checker in Bash

In this article, we will learn how to write a bash shell program to ask the user to give a year, and then the program will check and determine whether the given year is a leap year or not a leap year.

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


printf "\n\n"

printf "\tLeap Year Checker in Bash"

printf "\n\n"

printf "\tGive a Year: "

read y


printf "\n\n"


year=$y


y=$(( $y % 4 ))

if [ $y -eq 0 ]

then

    printf "\tThe given year $year is Leap Year!"

else


  printf "\tThe given $year is not a Leap Year!"

fi


printf "\n\n"

printf "\tEnd of Program"

printf "\n"