Monday, November 16, 2020

Addition of Six Numbers in PHP

Addition of Six Numbers in PHP

 


In this  tutorial, I will show you how a program using PHP to ask the user to give six numbers and then

the program will compute the sum of six numbers given  by 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 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 LIKE, SHARE, and SUBSCRIBE to my channel.

Thank you very much for your support.




Program Listing

<!DOCTYPE html>
<html lang="en">
<head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>Addition of Six Numbers in PHP</title>

     <style>
          body {
               background: #f1f1f1;
               font-family: arial;
               size : 16px;

          }
          form {
               background-color: rgba(0, 0, 0, 0.7);
               color: #000;
               padding: 50px;
               position: absolute;
               -webkit-transform: translate(-50%, -50%);
               transform: translate(-50%, -50%);
               left: 50%;
               top: 50%;
          }
          .row {
               display: block;
               font-size: 0;
               margin-bottom: 18px;
          }
          h1 {
               color: #fefefe;
               text-align: center;
               margin: 0 0 40px 0;
          }
          .row label {
               width: 180px;
               color: #fefefe;
               text-transform: uppercase;
               padding-left: 0!important;
          }
          .row input,
          .row textarea {
               background-color: #fefefe;
               width: 280px;
               color: #000000;
          }
          .row textarea {
               resize: none;
          }
          .row label,
          .row input,
          .row textarea {
               vertical-align: top;
               display: inline-block;
               border: 0;
               margin: 0;
               padding: 15px;
               font-size: 15px;
          }
          form button {
               background-color: #16222A;
               width: 250px;
               display: inline-block;
               border: 0;
               padding: 15px;
               color: #fefefe;
               font-size: 15px;
               text-transform: uppercase;
               cursor: pointer;
          }
          form #btnClear {
               background-color: #486980;
          }
          input:focus,
          select:focus,
          textarea:focus,
          button:focus {
               outline: none;
          }
     </style>
</head>
<body>
     <?php
     error_reporting(0);

     $num1 = $_POST['txtFirstNum'];
     $num2 = $_POST['txtSecondNum'];
     $num3 = $_POST['txtThirdNum'];
     $num4 = $_POST['txtFourthNum'];
     $num5 = $_POST['txtFifthNum'];
     $num6 = $_POST['txtSixthNum'];
    
     $result = $_POST['txtResult'];

 
   if(isset($_POST['submit'])) {
      
       $result = ($num1+$num2+$num3+$num4+$num4+$num5+$num6);
       
      }

     if(isset($_POST['clear'])) {
       $num1 = "";
       $num2 = "";
       $num3 = "";
       $num4 = "";
       $num5 = "";
       $num6 = "";
       $result="";
    }
    
    ?>  

     <form action="" method="post">
          <h1>Addition of Six Numbers in PHP</h1>
          <div class="row">
               <label for="txtFirstNum">Give First Number</label>
               <input type="text" name="txtFirstNum" id="txtFirstNum"
                value="<?php echo $num1; ?>" autofocus>>
          </div>
          <div class="row">
               <label for="txtSecondNum">Give Second Number</label>
               <input type="text" name="txtSecondNum" id="txtSecondNum"
               value="<?php echo $num2; ?>">>
          </div>
          <div class="row">
               <label for="txtThirdNum">Give Third Number</label>
               <input type="text" name="txtThirdNum" id="txtThirdNum"
               value="<?php echo $num3; ?>">>
          </div>
          <div class="row">
               <label for="txtFourthNum">Give Fourth Number</label>
               <input type="text" name="txtFourthNum" id="txtFourthNum"
               value="<?php echo $num4; ?>">>
          </div>
          <div class="row">
               <label for="txtFifthNum">Give Fifth Number</label>
               <input type="text" name="txtFifthNum" id="txtFifthNum"
                 value="<?php echo $num5; ?>">
          </div>
          <div class="row">
               <label for="txtSixthNum">Give Sixth Number</label>
               <input type="text" name="txtSixthNum" id="txtSixthNum"
               value="<?php echo $num6; ?>">
          </div>
           <div class="row">
               <label for="txtSixthNum">The Result</label>
               <input type="text" name="txtResult" id="txtResult"
               value="<?php echo $result; ?>">
          </div>
          <div classs="row">
               <button type="submit" name="submit" 
               id="btnCompute">Compute</button>
               <button type="submit" name="clear"
                id="btnClear">Clear</button>
          </div>
     </form>
</body>
</html>





Time Difference in VB.NET

  In this tutorial, I will show you how to write a program to ask the user to give a two time hours and then the program will compute the difference of the two time hours  in Microsoft 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 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

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim dFrom As DateTime
        Dim dTo As DateTime

        Dim sDateFrom As String = Trim(TextBox1.Text)
        Dim sDateTo As String = Trim(TextBox2.Text)

        If DateTime.TryParse(sDateFrom, dFrom) AndAlso DateTime.TryParse(sDateTo, dTo) Then
            Dim TS As TimeSpan = dTo - dFrom
            Dim hour As Integer = TS.Hours
            Dim mins As Integer = TS.Minutes
            Dim secs As Integer = TS.Seconds
            Dim timeDiff As String = ((hour.ToString("00") & ":") + mins.ToString("00") & ":") + secs.ToString("00")
            TextBox3.Text = timeDiff
        End If

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox3.Text = ""
        TextBox1.Focus()

    End Sub
End Class

Inches to Centimeter in C++

In this tutorial, I will show you how to write a program to ask the user to give a value in inches and then the program will convert it into a centimeter value 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 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

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

#include <iostream>

int main()
{
    float inches=0.00,centimeter=0.00;
    
    std::cout << "\n\n";
    std::cout << "\tInches to Centimeter in C++";
std::cout <<"\n\n";
    std::cout <<"\tGive value in Inches : ";
    std::cin>>inches;
 
centimeter =(inches*2.54);
 
    std::cout << "\n\n";
    std::cout << "\tThe centimeter value is " << 
            centimeter <<".";
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n\n";
}

Text Color and Delay in C++ Using Dev C++

Text Color and Delay in C++ Using Dev C++

 I wrote this program to demonstrate how to use text color and delay in C++ using Dev C++ integrated development environment.

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

#include <iostream>

#include <windows.h>


using namespace std;


int main()

{

    HANDLE colors=GetStdHandle(STD_OUTPUT_HANDLE);


    string text;

    int a=0;

    text = "Master in Information Technology";

    cout << "\n\n";

    cout << "\tText Color and Delay in C++ Using Dev C++";

cout <<"\n\n";

    cout <<"\t";

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

    {

        a>9 ? a=0 : a++;


        if(a==0)

        {

            SetConsoleTextAttribute(colors,1);

        }else

        {

            SetConsoleTextAttribute(colors,a);

        }

        cout<<text.at(i);

        Sleep(100);

    }

    cout << "\n\n";

    cout << "\tEnd of Program";

    cout << "\n\n";

}

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';

       

}


}