Friday, December 13, 2019

Leap Year Checker in PHP

I wrote this program to check if the given year is a leap year or not a leap year using PHP 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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.


\

 \\

Sample Program Output


Program Listing

index.php

<?php

  $year = 2020;

  echo "<h1>";

  if (($year % 4 == 0)  && ($year % 100 != 0)  || ($year % 400 == 0)) {
      echo "The given year $year is a Leap year.";
  }  else {
      echo "The given  year $year is Not a Leap year.";
  }
echo "</h1>";

?>



Thursday, December 12, 2019

Current Time in JavaScript

I wrote this program using JavaScript as my programming language to display time on the webpage based on the time in the BIOS of the computer.

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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.


Thank you very much for your help and support.


Sample Program Output


Program Listing

index.html

<html>
<title> Current Time in JavaScript </title>
<body>
<h2 align="center"> Current Time in JavaScript </h2>
<h1 align="center">Current Time: <span id="time"></span></h1>
<h3 align="center">Written By Jake R. Pomperada,MAED-IT</h3>
<script>
function checkTime(i) {
  if (i < 10) {
    i = "0" + i;
  }
  return i;
}

function startTime() {
  var today = new Date();
  var h = today.getHours();
  var m = today.getMinutes();
  var s = today.getSeconds();
  // add a zero in front of numbers<10
  m = checkTime(m);
  s = checkTime(s);

var amOrPm = (today.getHours() < 12) ? "AM" : "PM";
  document.getElementById('time').innerHTML = h + ":" + m + ":" + s +" "+ amOrPm;
  t = setTimeout(function() {
    startTime()
  }, 500);
}
startTime();
</script>
</body>
</html>



Current Date in JavaScript

I wrote this simple program using JavaScript to display the current date on the webpage.

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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.


Thank you very much for your help and support.



Sample Program Output


Program Listing

index.html

<html>
<title> Current Date in JavaScript </title>
<body>
<h2 align="center"> Current Date in JavaScript </h2>
<h1 align="center">Current Date: <span id="datetime"></span></h1>
<script>
var dt = new Date();
document.getElementById("datetime").innerHTML = dt.toLocaleDateString();
</script>
</body>
</html>


BITAG Live | December 12, 2019

Reverse a String in PHP

Reverse a String in PHP

I wrote this program to reverse a given string 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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.


Thank you very much for your help and support.



Sample Progam Output


Program Listing

index.php

<?php
  $title ="Welcome  To PHP Programming";

  echo "<h1>";
  echo "Original String : ".$title;
  echo "<br>";
  echo "Reverse String : ";
  echo strrev($title);
  echo "</h1>";

  ?>
  



String Length in PHP

String Length in PHP

I wrote this program using PHP programming language to find the length of the given string and display the results on the webpage.

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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.




Sample Program Output


Program Listing

index.php

<?php
   
   $title = "Computer Science";

   echo "<h1>";
   echo "String : $title";
   echo "<br>";
   echo "The length of the string is ";
   echo strlen($title).".";
   echo "</h1>";

   ?>




Wednesday, December 11, 2019

Shutdown Computer Under Windows 7 Using C++

This program was written by my close friend and fellow software engineer Sir Ernel Fadriquilan this program is a Shutdown Computer Under Windows 7 Using C++ program written in 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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.


Program Listing


/* for windows 7 only */


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

main()
{
char ch;
cout<<"Do you want to shutdown your computer now (y/n)\n";
cin>>ch;
if (ch == 'y' || ch == 'Y')
system("C:\\WINDOWS\\System32\\shutdown /s");
return 0;
}

Binary Search in C++

This program was written by my close friend and fellow software engineer Sir Ernel Fadriquilan this program is a binary search program written in 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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.


Program Listing

binary_search.cpp

#include < iostream.h>

int main()
{
int c, first, last, middle, n, search, array[100];

cout<<"Enter number of elements\n";
cin>>n;

cout<<"Enter"<< n <<"integers\n";

for ( c = 0 ; c < n ; c++ )
cin>>array[c];

cout<<"Enter value to find\n";
cin>>search;

/*calculating first, last and middle position*/
first = 0;
last = n - 1;
middle = (first+last)/2;


while( first < = last )
{
if ( array[middle] == search )
{
cout<<search<< "found at location"<<middle+1<<endl;
break;
}
else if ( array[middle] < search )
first = middle + 1;
else
last = middle - 1;

middle = (first + last)/2;
}

if ( first > last )
cout<<"Not found!"<<search<< "is not present in the list.\n";

return 0;
}

}

Difference and Quotient of Two Numbers in PHP

Difference and Quotient of Two Numbers in PHP

I wrote this simple program that will compute the difference and quotient of two numbers 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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.



Sample Program Output


Program Listing

index.php

<?php

    $a= 100;
    $b = 10;

    $diff = ($a - $b);

    $quotient = ($a / $b);

    echo "<br><br>";
    echo "<h3>The Value in Variable  A is  $a. </h3><br>";
    echo  "<h3>The Value in Variable  B is  $b. </h3><br>";
    echo "<h3>The difference between $a and $b is $diff. </h3><br>";
    echo "<h3>The quotient between $a and $b is $quotient. </h3><br>";

    ?>
    




Ben Tulfo, 'persona non grata' sa Bacolod! "Kung kaya nyo!"

Current Date in PHP

Current Date in PHP

I wrote this program using PHP programming language to display the current date on your webpage.

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, 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/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.



Sample Program Output


Program Listing

index.php


 <html>
    <head>
        <title>
           Current Date in PHP
         </title>
       </head>
      <body>
        <?php
            echo "<h2>";
            echo date('l,F dS Y.');
            echo "</h2>";   
        ?>
        </body>
      </html>  




Monday, December 9, 2019

Count Down Timer in C++

I wrote this simple count down timer program 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, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

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/

Thank you very much for your help and support.



Sample Program Output


Program Listing

timer.cpp

/* timer.cpp
   Author : Jake R. Pomperada
   Date   : December 10, 2019 
*/

#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
    int timer=0;
    
    cout << "\tCount Down Timer in C++";
    cout <<"\n\n";
    cout << "\tEnter Time :";
    cin >> timer;
    while(timer>0)
    {
        cout <<"\t" <<timer <<"\n";
        Sleep(1000);
        --timer;
    }
    cout <<"\n\n";
    cout << "Time is Up Buddy !!!!";
    return 0;
}