Friday, March 20, 2020

ASCII Value Checker in PHP


I wrote this simple program to convert a given character,letter or string to its ASCII value equivalent using PHP 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

index.php

<?php

  $letter = 'J';
  
  $result = ord($letter);
  
  echo "<h4>ASCII Value Checker in PHP </h4>";
  echo "ASCII Value of Letter : " .$letter."<br>";
  echo "The ASCII Equivalent is " .$result;

?>

Thursday, March 19, 2020

Remove Special Characters in String in PHP

I wrote this program to remove any special characters in a given string except A-Z, a-z, 0-9, white space or a hyphen using PHP 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

index.php

<?php

//String containing special characters.
$username = "&&F2018-201%^%^%^ &&jake ##pomperada ))_bacolod''''*&&";


function Remove_Special_Char($str_value){
//Remove any character that isn't A-Z, a-z, 0-9, white space or a hyphen.
$str_value = preg_replace("/[^A-Za-z0-9- ]/", '', $str_value);
return $str_value;
}


echo Remove_Special_Char($username);
?>


Tuesday, March 17, 2020

ASCII Value of a Character in C++

I wrote this simple program to ask the user to give any character and then the program will convert the given character into an ASCII value using C++ as my programming language. ASCII stands for American Standard Code For Information Interchange.

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

ascii.cpp

#include<iostream>

using namespace std;

int main()
{
char ch;
cout <<"\n\n";
cout <<"\tASCII Value of a Character in C++";
cout <<"\n\n";
cout<<"\tEnter any character : ";
cin>>ch;
    cout <<"\n\n";
cout<<"\tThe ASCII equivalent is : "<<static_cast<int>(ch);
     cout <<"\n\n";
cout <<"\tEnd of Program";
     cout <<"\n\n";

}



Reverse an Array in C++

I wrote this program using C++ programming language to ask the user to give how many items to be processed and then the program will ask a series of integer value and then the program will reverse the arrangement of given numbers using one-dimensional array in C++.

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

reverse.cpp

#include <iostream>

using namespace std;

int main()
{
int Arr[200],n=0,temp=0,i=0,j=0;
    
    cout <<"\n\n";
    cout <<"\tReverse an Array in C++";
    cout <<"\n\n";
cout<<"\tHow many elements? : ";
cin>>n;
    cout <<"\n\n";
for(i=0;i<n;i++)
{
cout<<"\tEnter element "<<i+1<<":";
cin>>Arr[i];
}

for(i=0,j=n-1;i<n/2;i++,j--)
{
temp=Arr[i];
Arr[i]=Arr[j];
Arr[j]=temp;
}
    cout <<"\n\n";
cout<<"\tReverse array results"<<endl;
cout <<"\n\n";
    cout <<"\t";
for(i=0;i<n;i++) {

cout<<" "<< Arr[i]<<" ";
}
cout <<"\n\n";
cout <<"\tEnd of Program";
     cout <<"\n\n";

}



Monday, March 16, 2020

For Loop Statement in C

A simple program that I wrote using C programming language to show how to declare and use the for loop 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

for.c

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

int main() {
int a=0;
printf("\tFor Loop Statement in  C");
printf("\n\n");
for (a=1; a<=20; a++) {
printf(" %d ",a);
}
printf("\n\n");
printf("\tEnd of Program");
printf("\n");
}

Saturday, March 14, 2020

For Each Loop in Java

For Each Loop in Java

A simple program that I wrote using Java programming language to demonstrate the use of For Each loop 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

for_each.java


public class for_each {

public static void main(String[] args) {
   
int array[]={1,2,3,4,5,6,7,8,9,10};
System.out.println("\n");
System.out.println("\tFor Each Loop in Java\n");
for (int x:array)
{
System.out.print("" + x + " ");
}
System.out.println("\n");
System.out.println("\tEnd of the Program");

}

}




Days of the Week in Java

Days of the Week in Java

A simple program that I wrote using Java programming language to ask the user to give a number and then the given number will determine if the given number belongs to days of the week from Monday to Sunday.


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

Days_of_the_Week,java

import java.util.Scanner;

public class Days_of_the_Week {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int day=0;
System.out.println("\n");
System.out.println("\tDays of the Week in Java");
System.out.println("\n");
System.out.print("\tGive a Number  : ");
day = input.nextInt();
if (day==1){
System.out.println("\n");
System.out.print("\tIt is Monday."); 
}
else if (day==2)
{
System.out.println("\n");
System.out.print("\tIt is Tuesday."); 
}
else if (day==3)
{
System.out.println("\n");
System.out.print("\tIt is Wednesday."); 
}
else if (day==4)
{
System.out.println("\n");
System.out.print("\tIt is Thursday."); 
}
else if (day==5)
{
System.out.println("\n");
System.out.print("\tIt is Friday."); 
}
else if (day==6)
{
System.out.println("\n");
System.out.print("\tIt is Saturday."); 
}
else if (day==7)
{
System.out.println("\n");
System.out.print("\tIt is Sunday."); 
}
else {
System.out.println("\n");
System.out.print("\tInvalid Day of the Week."); 
}
System.out.println("\n");
System.out.println("\tEnd of the Program");

}

}



Decimal To BInary in Java

Decimal To BInary in Java

I wrote this simple program to ask the user to give a decimal number and then the program will convert the given decimal value into its binary equivalent 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

Decimal_Binary,java

import java.util.Scanner;

public class Decimal_Binary {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
int a=0;
System.out.println("\n");
System.out.println("\tDecimal To Binary in Java");
System.out.println("\n");
System.out.print("\tGive a Number  : ");
a = input.nextInt();
System.out.println("\n");
System.out.print("\tThe Binary is   "+ Integer.toBinaryString(a));
System.out.println("\n");
System.out.println("\tEnd of the Program");
}

}




Function Overloading in C++

Function Overloading in C++

Here is a simple program to show you how to declare and use function overloading in C++.

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

overloading.cpp

#include <iostream>
#include <stdlib.h>

using namespace std;


class test {
      public:
      
      void display()
      {
       cout << "\tWelcome To C++";
       cout <<"\n\n";
      }
      
      void display(int x) {
       cout <<"\t" << x;
       }
       
};


int main()
{
   test obj;
   
   cout << "\tFunction Overloading in C++";
   cout <<"\n\n";
   obj.display();
   obj.display(100);
   cout <<"\n\n";
   cout <<"\tEnd of Program";
   cout <<"\n\n";
   system("pause");
}
   
        




Inline Function in C++