Sunday, March 22, 2020

Do-While Loop Using JavaScript

I wrote this program to ask the user to give a number and then it will display the series of numbers using the do-while loop statement in JavaScript programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, 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>Do-While Loop Using JavaScript</title>
</head>   
<style>
    body {
        font-family: Arial, Helvetica, sans-serif;
        size:15px;
    }
</style>
<body>

    <h2>Do-While Loop Using JavaScript</h2>
    <p> Written By Jake R. Pomperada</p>
    
   Give a Number &nbsp;&nbsp;<input id="num_val" value="" />


     <br><br>
    <button onclick="Check()">Ok</button>
    <br>
    <p id="demo"></p>
    
    <script>
        // March 22, 2020    3:08 PM
        // Bacolod City, Negros Occidental
    function Check() {
      var num_val, result="";
      var i = 1;
      num_val = Number(document.getElementById("num_val").value);
       
       do 
       {
          result += "<br>The number is " + i +".";
          i++;
       } while (i <= num_val);

      document.getElementById("demo").innerHTML = result;
    }
    </script>
</body>
</html>


While Loop Using JavaScript

I wrote this program to ask the user to give a number and then it will display the series of numbers using while loop statement in JavaScript programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, 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.html

<html>
 <head>
   <title>While Loop Using JavaScript</title>
</head>   
<style>
    body {
        font-family: Arial, Helvetica, sans-serif;
        size:15px;
    }
</style>
<body>

    <h2>While Loop Using JavaScript</h2>
    <p> Written By Jake R. Pomperada</p>
    
   Give a Number &nbsp;&nbsp;<input id="num_val" value="" />


     <br><br>
    <button onclick="Check()">Ok</button>
    <br>
    <p id="demo"></p>
    
    <script>
        // March 22, 2020    2:30 PM
        // Bacolod City, Negros Occidental
    function Check() {
      var num_val, result="";
      var i = 1;
      num_val = Number(document.getElementById("num_val").value);
       
      while (i <= num_val) {
          result += "<br>The number is " + i +".";
          i++;
       }

      document.getElementById("demo").innerHTML = result;
    }
    </script>
</body>
</html>




Saturday, March 21, 2020

Positive and Negative Number Using JavaScript Ternary Operator

I wrote this program that will ask the user to give a number and then the program will check and determine if the given number by the user is a positive or negative number using JavaScript ternary operator as my 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.htm

<html>
 <head>
   <title>Positive and Negative Number Using JavaScript Ternary Operator</title>
</head>   
<style>
    body {
        font-family: Arial, Helvetica, sans-serif;
        size:15px;
    }
</style>
<body>

    <h2>Positive and Negative Number Using JavaScript Ternary Operator</h2>
    <p> Written By Jake R. Pomperada</p>
    
   Give a Number &nbsp;&nbsp;<input id="num_val" value="" />


     <br><br>
    <button onclick="Check()">Ok</button>
    <br>
    <p id="demo"></p>
    
    <script>
    function Check() {
      var num_val, result;
      num_val = Number(document.getElementById("num_val").value);
      if (isNaN(num_val)) {
        result = "The given value is not a number. Try Again.";
      } else {
        result = (num_val < 0) ? "The given number is Negative." : "The given number is Positive.";
      }
      document.getElementById("demo").innerHTML = result;
    }
    </script>
</body>
</html>

Qualified To Vote Using JavaScript Ternary Operator

I wrote this simple program using JavaScript to ask the user to give a age of the user the program will determine if the user qualified to vote or not in the next election. Assume that the voting age to qualify to vote is 18 years old and above.

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>Qualified To Vote Using JavaScript Ternary Operator</title> </head> <style> body { font-family: Arial, Helvetica, sans-serif; size:15px; } </style> <body> <h2>Qualified To Vote Using JavaScript Ternary Operator</h2> <p> Written By Jake R. Pomperada</p> What is your age? &nbsp;&nbsp;<input id="age" value="" /> <br><br> <button onclick="Check()">Ok</button> <br> <p id="demo"></p> <script> function Check() { var age, voteable; age = Number(document.getElementById("age").value); if (isNaN(age)) { voteable = "Age input is not a number. Try Again."; } else { voteable = (age < 18) ? "You are not allow to vote still young." : "You are qualified to vote."; } document.getElementById("demo").innerHTML = voteable; } </script> </body> </html>

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