Saturday, January 18, 2020

Do While Loop in Java

I wrote this simple program to demonstrate how to declare and use do while loop statement 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

Do_While_Loop.java


public class Do_While_Loop {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
   System.out.println();
   System.out.print("\tDo While Loop in Java");
   System.out.println("\n");
   int i=1;  
   System.out.print("\t");
    do{  
        System.out.print(" " +i+" ");  
    i++;  
    }while(i<=10);  
}

}



Friday, January 17, 2020

Count Consonants,Vowels,Digits and Spaces in Java

Count Consonants,Vowels,Digits and Spaces in Java

I wrote this program using Java programming language that will ask the user to give a string or a sentence and then the program will count the number of consonants, vowels, digits and white space in the given sentence or string 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, 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

 Count_Characters.java

import java.util.*;

public class Count_Characters {

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

Scanner input = new Scanner(System.in);
int vowels=0,consonants=0,digits=0,spaces=0;
System.out.println("\n");
System.out.print("\tCount Consonants,Vowels,Digits and Spaces in Java");
System.out.println("\n");
System.out.print("\tGive a Sentence : ");
String line = input.nextLine();
line = line.toLowerCase();
for (int i=0; i<line.length(); i++){
char ch = line.charAt(i);
if (ch=='a' || ch=='e' || ch=='i' 
|| ch == 'o' || ch=='u' ){
vowels++;
}
else if ((ch>='a' && ch <='z')) {
consonants++;
}
else if (ch>='0' && ch <='9'){
digits++;
}
else if (ch==' ') {
spaces++;
}
}
System.out.println("\n");
System.out.println("\tTotal Number of Vowels     : " + vowels);
System.out.println("\tTotal Number of Consonants : " + consonants);
System.out.println("\tTotal Number of Digits     : " + digits);
System.out.println("\tTotal Number of WhiteSpace : " + spaces);
System.out.println("\n");
System.out.println("\tEnd of Program");
}

}



Calling Methods in the Same Class in Java

Calling Methods in the Same Class in Java

I wrote this program to demonstrate how to use and declare calling methods in the same class in Java programming.

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

 CallingMethodsInSameClass.java


public class CallingMethodsInSameClass {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
MethodOne();
MethodOne();
MethodTwo();
}
public static void MethodOne(){
System.out.println("\n");
System.out.println("\tThis is Method Number One");
}

public static void MethodTwo() {
MethodOne();
MethodOne();
}
}


Thursday, January 16, 2020

Compound Interest Solver in Java

I wrote this program will ask the user to give the principal amount to be a loan, a number of years to be paid the loan and the interest rate and then the program computes the compound interest based on the amount being loan by the customer or client.

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

Compound_Interest.java


import java.util.*;


public class Compound_Interest {

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

       double principal=0.00, rate=0.00, t=0.00;
       double compound_solve=0.00;
       
       Scanner input = new Scanner(System.in);
       
       System.out.println("\n");
       System.out.print("\tCompound Interest Solver in Java");
       System.out.println("\n");
       System.out.print("\tGive the Amount  $        : ");
       principal = input.nextDouble();
       System.out.print("\tGive the Number of Years  : ");
       t = input.nextDouble();
       System.out.print("\tGive the Interest Rate    : ");
       rate = input.nextDouble();
       
       compound_solve = principal * Math.pow(1.0+rate/100.0,t) - principal;
       
       System.out.println("\n");
       System.out.print("\tThe Compound Interest is $" +compound_solve+".");
       System.out.println("\n");
       System.out.print("\tEnd of Prorgam");
       System.out.println("\n");
        
              
}

}





Simple Interest Rate Solver in Java

Simple Interest Rate Solver in Java

I wrote this program to perform computation on the simple interest rate solver 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

Simple_Interest.java

import java.util.*;

public class Simple_Interest {

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

double principal,rate,time_value;
double simple;
Scanner input = new Scanner(System.in);
System.out.println("\n");
System.out.print("\tSimple Interest Rate Solver in Java");
System.out.println("\n");
System.out.print("\tGive Principal Amount  $ : ");
principal = input.nextDouble();
System.out.print("\tGive Number of Years     : ");
time_value = input.nextDouble();
System.out.print("\tGive the Interest Rate   : ");
rate = input.nextDouble();
simple = (principal * time_value * rate) /100;
System.out.println("\n");
System.out.print("\tThe Simple Interest Rate is $ " + simple + ".");
System.out.println("\n");
System.out.println("\tEnd of Program");
}

}


Wednesday, January 15, 2020

Teaching PHP new tricks with machine learning - PHPConf.Asia 2016

Swapping of Two Numbers Using Java Programming Language

A simple program that I wrote using Java programming language that will ask the user to give two numbers and then the program will display the original arrangement of two numbers and then the program will display the swap arrangement of two numbers to 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, 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

Swapping_Numbers.java


import java.util.Scanner;

public class Swapping_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("\tSwapping of Two Numbers in Java");
System.out.println("\n");
System.out.print("\tEnter First Value  : ");
int first = input.nextInt();
System.out.print("\tEnter Second Value : ");
int second = input.nextInt();
input.close();
System.out.println();
System.out.print("\tOriginal Arrangement");
System.out.println("\n");
System.out.println("\tFirst  Value :  " + first);
System.out.println("\tSecond Value : " + second);
first = first + second;
second = first - second;
first = first - second;
System.out.println();
System.out.print("\tSwap Arrangement");
System.out.println("\n");
System.out.println("\tFirst  Value : " + first);
System.out.println("\tSecond Value : " + second);
System.out.println();
System.out.print("\tEnd of Program");
System.out.println();
}

}






If Else Statement in Java

If Else Statement in Java

I wrote this simple program to show how to declare and use the if-else statement in a 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

If_Else_Statement.java

public class If_Else_Statement {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
boolean learning = true;
if (learning) {
System.out.print("I like Java programming");
  
else {
System.out.print("I like to eat Pizza.");
}

}

}





Tuesday, January 14, 2020

Switch Statement in JavaScript

A simple program that I wrote using the JavaScript programming language to show how to use the switch statement.

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

index.htm


<html>
 <head>
  <title>Switch Statement in JavaScript </title>
 </head>
 <body>
  <script type="text/javascript">
a=1;
document.write("The given year level is " +a);


switch (a) {
  case 1:
     alert("You are belong first year");
     break;
  case 2:
     alert("You are belong second year");
     break;
  case 3:
     alert("You are belong third year");
     break;
  case 2:
     alert("You are belong fourth year");
     break;
     
  default:
     alert("Invalid Year Level. Try Again");
}
</script>
 </body>
 </html>