Sunday, November 15, 2020

Count Digits in PHP

Count Digits in PHP

 In this tutorial I will wrote a program that uses PHP programming language to ask the user to give a number and then the program will count the number of digits in the given number.

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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Thank you very much.



Program Listing

index.php

<html>
  <head> 
   <title> Count Digits in PHP </title>
  </head>
  <body> 
      <style type="text/css">
      
      body {
        font-family: arial;
            size: 12px;
      };

        </style>
    <?php
     $num_values = $_POST['num_val'];

 
   if(isset($_POST['submit'])) {
      
      $results = "<h4>The Number of Digits :" 
        .countDigits($num_values)."</h4>";
       
      }

 if(isset($_POST['clear'])) {
      $num_values = "";
      $results = "";
    }


function countDigits($num_val)
{
    $count = 0;
    while ($num_val != 0) 
    {
        $num_val = round($num_val / 10);
        $count=$count+1;
    }
    return $count;
}
 

?>

  <h2> Count Digits in PHP </h2>
  <p> Mr. Jake Rodriguez Pomperada,MAED-IT, MIT </p>
<form method="post">
   <p>Give a Number <input id="element" 
    type="numeric" name="num_val"
     value="<?php echo $num_values; ?>" autofocus required /></p>
      
<input type="submit" name="submit" 
   title="Click here to count the digits."
   value="Submit" />
   
    &nbsp;&nbsp;&nbsp;
    <input type="submit" name="clear" 
    title="Click here to clear the textbox."
    value="Clear" />
</form>

<?php
   echo $results;
?>
</body>
</html>




HTML Forms Input and Display in PHP

Saturday, November 14, 2020

HTML Forms Input and Display in PHP

 In this tutorial I will show you how to create and use HTML forms with 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

index.php

<html>

  <head> 

   <title>HTML Forms Input and Display in PHP</title>

  </head>

  <body> 

    <style type="text/css">

      

      body {

        font-family: arial;

            size: 12px;

      };

    </style>

   

   <?php

     $display="";

     $firstname = $_POST['firstname'];

     $middlename = $_POST['middlename'];

     $lastname   = $_POST['lastname'];


   if(isset($_POST['submit'])) {

      $display .= "<h2> Display Results </h2>";

      $display .= "First Name  : " .

                  strtoupper($firstname) ."<br/>";

      $display .= "Middle Name : " . 

                  strtoupper($middlename)."<br/>";

      $display .= "Last Name   : " . 

                    strtoupper($lastname)."<br />";

    }


if (isset($_POST['clear'])) {

   $firstname ="";

   $middlename ="";

   $lastname ="";

   $display ="";

   } 

 ?>   

    <h2> HTML Forms Input and Display in PHP </h2>

<form method="post">

   <p>First Name: <input type="text" name="firstname"

    value="<?php echo $firstname; ?>" autofocus

    ></p>

   <p>Middle Name: <input type="text" name="middlename"

    value="<?php echo $middlename; ?>"></p>

   <p>Last Name: <input type="text" name="lastname" 

    value="<?php echo $lastname; ?>"></p>

   <input type="submit" name="submit" value="Submit" />

   &nbsp;&nbsp;&nbsp;

   <input type="submit" name="clear" value="Clear" />

</form>

  <?php


    echo $display;

   ?> 

 </body>

 </html>

Friday, November 13, 2020

Average of Three Numbers in PHP

 I wrote this program to compute the average value of three 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing

<?php

/* average_three.php

   Jake Rodriguez Pomperada, MAED-IT, MIT

   www.jakerpomperada.com / www.jakerpomperada.blogspot.com

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental, Philippines

*/


$val1 = 20;

$val2 = 30;

$val3 = 40;


$num_of_values = 3;


$total_sum = ($val1 + $val2 + $val3);


$average= ($total_sum / $num_of_values);


echo "<h2>Average of Three Numbers in PHP </h2>";

echo "<h2>The given values are $val1, $val2, and $val3.</h2>";

echo "<h2>The average value is $average.</h2>";


?>


Count Digits in VB NET

Count Digits in VB.NET

  In this tutorial, I will show you how to write a program that will ask the user to give a series of 

numbers and then the program will count the digits in a given number using Visual Basic NET 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Your support on my channel is highly appreciated.

Thank you very much.








Program Listing


Public Class Form1


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim st_text As String


        st_text = TextBox1.Text


        Dim count As Integer = 0

        Dim i As Integer

        Dim arr() As Char = st_text.ToCharArray()

        For i = 0 To arr.Length - 1

            If Char.IsDigit(arr(i)) Then

                count = count + 1


            End If

        Next


        Label2.Text = "Number of digits : " & count


    End Sub


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

        TextBox1.Text = ""

        Label2.Text = ""

        TextBox1.Focus()

    End Sub

End Class


Count Digits in C++

Count Digits in C++

 In this tutorial, I will show you how to write a program that will ask the user to give a series of numbers and then the program will count the digits in a given number 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

/* Count_Digits.cpp
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidental, Philippines
*/

#include <iostream>

long long int a=0;


int main()
{

    int x=0;

    std::cout <<"\n\n";
    std::cout <<"\tCount Digits in C++";
    std::cout <<"\n\n";
    std::cout <<"\tGive a Number : ";
    std::cin >> a;

    std::cout <<"\n\n";

    for (x = 1; a >= 10; x++)
    {
        a = a / 10;
    }

    std::cout <<"\tThe Variable a contains " 
          <<  x << " digits.\n";
    std::cout <<"\n\n";
    std::cout <<"\tEnd of Program";
    std::cout <<"\n\n";
}

Mga dahilan kung bakit nananatili ang mga empleyado sa kanilang trabaho

Capitalize Vowels in a String in Java

Thursday, November 12, 2020

Capitalize Vowels in a String in Java

 In this tutorial, I will show you how to write a program that will ask the user to give a string or a 

sentence and then the program will capitalize all the vowels in the given string or sentence 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button,

SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

import java.util.Scanner;


/**

 * @author Jake Rodriguez Pomperada, MAED-IT, MIT

 * jakerpomperada@gmail.com

 * www.jakerpomperada.com

 * Bacolod City, Negros Occidental

 * November 12, 2020

 */


public class Capitalize_Vowels {


    static final char[] VOWELS = {'a', 'e', 'i', 'o', 'u'};

    

public static void main(String[] args) {

// TODO Auto-generated method stub

      String text;

    

       Scanner keyboard = new Scanner(System.in);

               

      System.out.println("\n");

      System.out.print("\t\tCapitalize Vowels in a String in Java");

      System.out.println("\n");

             

      System.out.print("\tGive a String :  ");

      text = keyboard.nextLine();

      

      char[] result = text.toCharArray();

        for (int i = 0; i < result.length; i++)

        {

            if (isVowel(result[i])) 

            {

                if (isLowerCase(result[i]))

                {

                    result[i] = Character.toUpperCase(result[i]);

                }

            }

        }

        

          System.out.print("\n");

          System.out.println("\tOriginal String   : " + text);

          System.out.print("\tThe result        : " ); 

          System.out.print(result);

      System.out.print("\n\n");

  System.out.println("\tEnd of Program");

  System.out.println("\n\n");

      keyboard.close();

    }


    static boolean isVowel(char ch)

    {

        for (char vowel : VOWELS)

        {

            if (vowel == ch)

            {

                return true;

            }

        }

        return false;

        

        

        

    }

    

    

    

    static boolean isLowerCase(char ch)

    {

        return ch >= 'a' && ch <= 'z';

       

}


}



Count Digits in Java

Count in Digits in Java

 In this tutorial, I will show you how to write a program that will ask the user to give a series of

numbers and then the program will count the digits in a given number 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing

import java.util.Scanner;

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * November 12, 2020
 */

public class Count_Digits {

public static void main(String[] args) {
// TODO Auto-generated method stub
long a=0;
int x=0;
        
       Scanner keyboard = new Scanner(System.in);
               
      System.out.println("\n");
      System.out.print("\t\tCount in Digits in Java");
      System.out.println("\n");
             
      System.out.print("\tGive a Number :  ");
      a = keyboard.nextInt();
      
      for (x = 1; a >= 10; x++)
      {
          a = a / 10;
      }

     
      System.out.print("\n");
      System.out.printf("\tThe given number contains " + x + " digits.\n");
      System.out.print("\n\n");
  System.out.println("\tEnd of Program");
  System.out.println("\n\n");
     keyboard.close();
}

}



5 Tips To Protect Our Self Online (Tagalog)

Wednesday, November 11, 2020

Count Digits in C

Count Digits in C

 A program that I wrote using a C programming language to ask the user to give a series of numbers and then the program will count the number of digits in the given number.

 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

/* Count_Digits.c
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidental
*/

#include <stdio.h>

long long int a=0;


int main()
{

    int x=0;

    printf("\n\n");
    printf("\tCount Digits in C");
    printf("\n\n");
    printf("\tGive a Number : ");
    scanf("%d", &a);

    printf("\n\n");

    for (x = 1; a >= 10; x++)
    {
        a = a / 10;
    }

    printf("\tThe Variable a contains %d digits.\n", x);
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");

}

Find the Second Biggest Number in C

Finding Second Highest Number in C

 In this tutorial, I will show you how to write a program that will ask the user to give three integer numbers, and then the program will check and determine which of the three numbers is the second to the highest using 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

/* second_number.c
   Jake Rodriguez Pomperada, MAED-IT, MIT
   November 11, 2020
   www.jakerpomperada.com
   jakerpomperada@gmail.com */

#include<stdio.h>
#include<conio.h>

int main()
  {
     int a,b,c;

     printf("\n\n");
     printf("\tFinding Second Highest Number in C");
     printf("\n\n\n");
     printf("\tGive First  Value : ");
     scanf("%d",&a);
     printf("\tGive Second Value : ");
     scanf("%d",&b);
     printf("\tGive Third Value  : ");
     scanf("%d",&c);
     printf("\n\n");

     if(a>b&&a>c)
     {
        if(b>c)
          printf("\tThe number %d is second greater.",b);
         else
           printf("\tThe number %d is second greater.",c);
      }
     if(b>a&&b>c)
       {
         if(a>c)
           printf("\tThe number %d is second greater.",a);
      else
       printf("\tThe number %d is second greater.",c);
     }
     if(c>a&&c>b)
        {
         if(a>b)
           printf("\tThe number %d is second greater.",a);
         else
           printf("\tThe number %d is second greater.",b);
     }
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
 }



4 Tips Ma Rearch natin ang ating Goal sa Buhay