Wednesday, January 8, 2020

Interface in Java

Interface in Java

Interface in Java

I wrote this program to demonstrate how to declare and use the interface statement using the 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 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/




Sample Program Output


Program Listing

Interface_Demo.java

interface info {
static final String language ="Java Programming";
public void display();
}


public class Interface_Demo implements info {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Interface_Demo object = new Interface_Demo(); 
        object.display();
}
// Define method declared in the interface
public void display() {
System.out.println("\n\n");
System.out.print("\tInterface Program in Java");
System.out.println("\n\n");
System.out.println("\t" +language + " is Fun and Easy.");
}

}


Monday, January 6, 2020

String Palindrome in C

String Palindrome in C

A simple program that I wrote to ask the user to give a string and then the program will check if the given string is a palindrome or not a palindrome 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 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/




Sample Program Output


Program Listing

palindrome.c

#include <stdio.h>
#include <string.h>
#include <stdlib.h>


int main() {

    char a[200], b[200];
    
    printf("\n\n");
    printf("\tString Palindrome in C");
    printf("\n\n");
    printf("\tGive a String : ");
    gets(a);
    
    strcpy(b,a);
    strrev(b);
    
    printf("\n");
    if (strcmp(a,b) == 0) {
        printf("\tThe given string %s is a Palindrome.",a);
        }
     else {
        printf("\tThe given string %s is Not a Palindrome.",a);
                          
     } 
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
    system("pause");
}  
    




Square a Number in C

Square a Number in C

A simple program that I wrote that will ask the user to give a number and then the program will convert the given number into square equivalent 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 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/



Sample Program Output


Program Listing

square.c

#include <stdio.h>
#include <stdlib.h>


int main() {

  int a=0,b=0;
  
  printf("\n\n");
  printf("\tSquare a Number in C");
  printf("\n\n");
  printf("\tGive a Number : ");
  scanf("%d",&a);
  
  b = (a * a);
  
  printf("\n");
  printf("\tThe square value of %d is %d.",a,b);
  printf("\n\n");
  printf("\tEnd of the Program");
  printf("\n\n");
  system("pause");
}  


Number Palindrome in C

Number Palindrome in C

I very simple program to ask the user to give a number and then the program will check if the given number is a palindrome or not a palindrome using the 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, 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/



Sample Program Output


Program Listing

palindrome.c

#include <stdio.h>
#include <stdlib.h>


int main()
{
    int n=0,r=0,t=0;
    
    printf("\n\n");
    printf("\tNumber Palindrome in C");
    printf("\n\n");
    printf("\tGive a Number : ");
    scanf("%d",&n);
    
    t=n;
    
    while (t != 0)
    {
          r = r * 10;
          r = r + t % 10;
          t = t / 10;
    }     
    
    printf("\n\n");
    if (n == r) {
        printf("\t%d is a Palindrome Number.",n);  
          }
     else
     {
        printf("\t%d is a Not Palindrome Number.",n);  
     }
     printf("\n\n");
     printf("\tEnd of Program");
     printf("\n\n");
     system("pause");




Sunday, January 5, 2020

Employees Payroll System in C

I wrote this program using a C programming language to solve the salary of the employees in a company.

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, 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/



Sample Program Output

Program Listing

payroll.c

#include <stdio.h>
#include <string.h>
#include <stdlib.h>


int main()
 {
    char emp_name[200];
    int days_work=0;
    float rate_per_day=0.00;
    
    float solve_salary=0.00;
    
    printf("\n\n");
    printf("\tEmployees Payroll System in C");
    printf("\n\n");
    printf("\tGive Employees Name      : ");
    gets(emp_name);
    printf("\tGive Number of Days Work : ");
    scanf("%d",&days_work);
    printf("\tGive Rate Per Day        : ");
    scanf("%f",&rate_per_day);
    
    solve_salary = (days_work * rate_per_day);
    printf("\n\n");
    printf("\tEmployees Name   : %s\n ",emp_name);
    printf("\tEmployees Salary : $%2.2f\n ",solve_salary);
    printf("\n\n");
    printf("\tEnd of the Program");
    printf("\n\n");
    system("pause");
    printf("\n\n");
        
         
          







Static Method Example in Java

Static Method Example in Java

In this tutorial, I will show you how to declare and use a static method in Java in a very simple way.

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, 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/



Sample Program Output


Program Listing

Static_Demo.java

public class Static_Demo {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
display_result();

}
  
static void display_result() {
System.out.print("Static Method Example in Java\n\n");
System.out.println("Welcome To Java Programming\n");
System.out.println("Jake R. Pomperada");
}
}


Saturday, January 4, 2020

Primer Number Generator in Java

Primer Number Generator in Java

I wrote this program to ask the user to give a number and then the program will list down the prime numbers on the screen 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 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/



Sample Program Output


Program Listing

Prime_Number_Generator.java

import java.util.Scanner;

// Written By Jake R.Pomperada,MAED-IT
// January 4, 2020   Saturday
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

public class Prime_Number_Generator {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner Input = new Scanner(System.in);
System.out.println();
System.out.println("\tPrimer Number Generator in Java");
System.out.println();
System.out.print("\tGive a Number : ");
int num = Input.nextInt();
System.out.println("\n");
System.out.print("\tList of Prime Numbers");
System.out.println("\n");
System.out.print("\t");
for (int i = 2; i <= num; i++){
if (IsPrime(i)){
System.out.print(i+" ");
}
}
}

private static boolean IsPrime(int num) {
boolean flag = true;
for (int i=2; i<num/2; i++){
if (num % i == 0){
flag = false;
break;
}
}
return flag;
}
}





String Inputs in Java

String Inputs in Java

I wrote this program to show you how to accept a string and display the given string in the screen in 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 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
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/



Sample Program Output


Program Listing

String_Input.java

import java.util.Scanner;


public class String_Input {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
String name,address, email;
System.out.println("\n");
System.out.print("\tString Inputs in Java");
System.out.println("\n");
System.out.print("\tEnter Your Name    : ");
name =input.nextLine();
System.out.print("\tEnter Your Address : ");
address =input.nextLine();
System.out.print("\tEnter Your Email   : ");
email =input.nextLine();
System.out.println();
System.out.print("\tDISPLAY RESULTS");
System.out.println("\n");
System.out.print("\tName    : " + name +"\n");
System.out.print("\tAddress : " + address +"\n");
System.out.print("\tEmail   : " + email +"\n");
System.out.println();
System.out.print("\tEnd of the Program");
System.out.println();
}

}