Tuesday, April 14, 2020

Volume of Cylinder Solver in C

I wrote this program to explain how to calculate volume of cylinder using the C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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/


Program Listing


/* This program is used to explain how to calculate
volume of cylinder using C programming language */

/* Author : Jake Rodriguez Pomperada,MAED-IT,MIT */
/* Date   : April 13, 2020    9:00 AM  Monday */
/* Location : Bacolod City, Negros Occidental Philippines. */

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

int main()
{
    float r=0.00,h=0.00,v=0.00;
    printf("\tVolume of Cylinder Solver in C");
    printf("\n\n");
    printf("\tGive Radius & Height of Cylinder : ");
    scanf("%f%f",&r,&h);
    
    v = 3.14 * r * r * h;  /* Calculation of Volume */
    printf("\n\n");
    printf("\tThe Volume of Cylinder is %5.2f.",v);
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
    system("pause");

}    

Alert Box in JavaScript

Alert Box in JavaScript

I wrote this simple program using JavaScript to show how to declare and use alert box.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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/


Program Listing

index.htm

<html>
  <head>
  <title>Alert Box in JavaScript </title>
  </head>
<body>
  <h1> Alert Box Demo in JavaScript </h1>
  <script type="text/javascript">
  alert("Welcome to JavaScript Programming");
  </script>  
 </body>

</html>  

Average Grade Solver Using Array in Perl

I wrote this program to ask the user to give five grades and then the program will compute the average grade of the student in the subject and determine whether the student pass or fail in that subject using Perl programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

# average_grade_array.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 11, 2020   Saturday  2:49 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com

@$grades=(1..5);

 $a=0,$solve=0,$sum=0;

printf("\n");
printf("\t\tAverage Grade Solver Using Array in Perl");
printf("\n\n");
for ($a=0; $a<=4; $a+=1) {
    printf("\tEnter Grade No. %d : ",$a+1);
    chomp($grades[$a]=<STDIN>);
}       
printf("\n\n");
for ($a=0; $a<=4; $a+=1) {
       $sum+= $grades[$a];
       $solve=($sum/5);
     }
printf("\tThe average grades is %d. ",$solve);
printf("\n");
   if ($solve >=75) {
      printf("\n");
      printf("\tYou Passed the subject.");
    }
    else {
      printf("\n");
      printf("\tYou Failed the subject.");
    }
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");


Thursday, April 9, 2020

Fahrenheit To Celsius Converter in Perl

I wrote this simple program to ask the user to give temperature in Fahrenheit and then it will convert it into Celsius temperature equivalent using Perl programming language subroutine.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

# fahrenheit_celsius_subroutine.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 7, 2020   Tuesday  12:21 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com
print("\n");

sub Fahrenheit_To_Celsius
{
    $celsius = ($fahrenheit - 32) * 5 / 9;
}
sub  Convert_Celsius { 
    print("\tFahrenheit To Celsius Converter in Perl");
    print("\n\n");
    print("\tGive Temperature in Fahrenheit : ");
    chomp($fahrenheit=<STDIN>);
    
    &Fahrenheit_To_Celsius();
    
    print("\n");
    print "\t$fahrenheit degrees Fahrenheit is equivalent to ";
    printf("%.2f degrees Celsius.",$celsius);
    print("\n\n");
    print("\t\tEnd of Program");
    print("\n");
 } 

# Calling the Subroutine 
Convert_Celsius();  



Find factors of a number Using Subroutine in Perl

I wrote this program to ask the user to give a number and then the program will compute and find the factors of the given number by the user using subroutine in Perl.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

# factors_number_subroutine.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 8, 2020   Wednesday  2:55 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com

sub Factors {
    print("\n");
     printf("\tFactors of the Given Number are:\n");
     printf("\t");
  for ($i = 1; $i <= $Number; $i++)
   {
     if($Number % $i == 0)
        {
printf(" %d  ", $i);
}
   }
}

sub  Main { 
    
    $i=0, $Number=0; 

    print("\n");
    print("\tFind factors of a number Using Subroutine in Perl");
    print("\n");
    printf("\n\tEnter any number to Find Factors : ");
    chomp($Number=<STDIN>);
    
    # Calling the Factors Subroutine
    Factors();

    print("\n\n");
    print("\t\tEnd of Program");
    print("\n");
 } 

# Calling the Main Subroutine to execute the program
Main();  



Wednesday, April 8, 2020

Factorial Solver Using Subroutine in Perl

A simple program that I wrote to ask the user to give a number and then the program will compute the factorial value of the given number using subroutine in Perl programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

# factorial_subroutine.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 8, 2020   Wednesday 6:56 AM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com

sub Factorial {
  my ($n) = @_;
  return 1 if $n == 0;
  return Factorial($n-1) * $n;
}

sub  Start { 
    $a=0;
    print("\n\n");
    print("\tFactorial Solver Using Subroutine in Perl");
    print("\n\n");
    print("\tGive a Number : ");
    chomp($a=<STDIN>);

    # Calling the Subroutine Factorial
    $result = Factorial($a);
     
    print("\n");
    printf("\tThe factorial value of %d is %d.",$a,$result); 
    print("\n\n");
    print("\t\tEnd of Program");
    print("\n");
  

 } 

# Calling the Subroutine to start running the program
Start();


Cube of a Number Solver Using Subroutine

I wrote this program to ask the user to give a number and then the program will compute the cube value of the given number using subroutine using Perl programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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/


Program Listing

# cube_subroutine.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 8, 2020   Wednesday  4:07 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com


sub Cube_Solver {
     $Number_val = $_[0]; 
     $cube =   ($Number_val  *  $Number_val  *   $Number_val);
}

sub Main() {

    $Number_val=0; 
    print("\n");
    print("\tCube of a Number Solver Using Subroutine");
    print("\n\n");
  
    print("\tGive a Number  : ");
    chomp($Number_val=<STDIN>);

    Cube_Solver($Number_val);
    
    print("\n");
    printf("\tCube of a given number %d is = %d.",$Number_val,$cube); 
    print("\n\n");
    print("\t\tEnd of Program");
    print("\n\n");
}

# Calling the Main Subroutine to execute the program

 Main();

Addition of Three Numbers Using Subroutine in Perl

I wrote this simple program to ask the user to give three numbers and then the program will compute the sum of three numbers using subroutine in Perl programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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/


Program Listing

# pass_value_subroutine.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 7, 2020   Tuesday  11:34 AM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com
print("\n");

# Subroutine to add the two values given 
# by the user.

sub Sum_All {
   $sum = 0;

   foreach $item (@_) {
      $sum += $item;
   }
   printf("\n");
   printf("\tThe sum of %d, %d and %d is %d.",$num1,$num2,$num3,$sum);
   print("\n\n");
   print("\t\tEnd of Program");
   print("\n");
}

sub Addition { 
    print("\tAddition of Three Numbers Using Subroutine in Perl");
    print("\n\n");
    print("\tEnter First Value  : ");
    chomp($num1=<STDIN>);
    print("\tEnter Second Value : ");
    chomp($num2=<STDIN>);
    print("\tEnter Third Value  : ");
    chomp($num3=<STDIN>);
    
    $sum = Sum_All($num1,$num2,$num3);
 } 

# Calling the Subroutine 
Addition();  


Tuesday, April 7, 2020

Update a Table Using PHP and MySQL

Here is the code that I wrote to update a record in a table using PHP and MySQL.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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/


Program Listing

update.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Update Table in PHP and MySQL</title>
</head>

<body>
<?php
mysql_connect("localhost","root","");
mysql_select_db("students_records") or die("Unable to select database");

$size = count($_POST['address']);

$i = 0;
while ($i < $size) {
$address= $_POST['address'][$i];
$id = $_POST['id'][$i];

$query = "UPDATE students SET address = '$address' WHERE id = '$id' LIMIT 1";
mysql_query($query) or die ("Error in query: $query");
echo "$address<br /><br /><em>Updated!</em><br /><br />";
++$i;
}
?>
</body>

</html>


Monday, April 6, 2020

Odd and Even Numbers Using For Statement in Perl Post author

I wrote this program to display the list of odd and even numbers using for loop statement in Perl programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

# odd_even_numbers_for.pl
# It will display list of odd and even numbers using for loop statement
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 5, 2020   Sunday  2:26 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com
print("\n");
print("\tOdd and Even Numbers Using For Statement in Perl");
print("\n\n");
for ($i=0; $i <= 10; $i++) {
    if ($i % 2 == 0) {
    print "\t$i is an EVEN Number.";
    print "\n";
        }
    else {
  print "\t$i is an ODD Number.";
print "\n";
    }
}  
print("\n");
print("\t\t\tEnd of Program");
print("\n\n");