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


For Loop in Perl

Here is a simple program that I wrote in Perl to show how to declare and use For loop statement. I am learning Perl for my new book project that I am working right now in my spare time.

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.comMy 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_example_one.pl
# Display a series of numbers from 1 to 10 using For Loop Statement
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 5, 2020   Sunday  2:09 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com

;
print("\n");
print("\tFor Loop Example No. 1 in Perl");
print("\n\n");
print("\t");
for ($a=1; $a<=10; $a=$a+1) {
    print(" $a ");
}
print("\n\n");
print("\tEnd of Program");
print("\n\n");



Update a Record in MySQL using PHPMyAdmin

Search a Record in SQL Using PHPMyAdmin

Insert a Record in MySQL Using PHPMyAdmin

Delete a Database in MySQL Using PHPMyAdmin

Delete a Database in MySQL Using PHPMyAdmin

Delete a Database in MySQL Using PHPMyAdmin

Create an SQL Dumb File Using PHPMyAdmin

Draw Heart Image in C

A simple program written by my friend and fellow software engineer Sir Ernel Fadriquilan. thank you very much Sir Ernel for sharing your code to us. This code will draw heart image using C language and using Turbo C for DOS compiler.

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

heart.c

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int i,b;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
for(i=1; i<50; i++){
  b=1;
  while(!kbhit()){
    for(i=1; i<=20; i++)
       settextstyle(3,0,5);
       setcolor(RED);
       outtextxy(270,230,"LOVE");
       arc(280,250,400,2000,50);
       arc(355,250,700,500,50);
       line(320,350,235,270);
       line(320,350,400,270);
       b++;

       delay(8);
       cleardevice();

       if(b==70){
break;
}
       }
  }

getch();
}

Draw a Book Image in C

A simple program written by my friend and fellow software engineer Sir Ernel Fadriquilan. thank you very much Sir Ernel for sharing your code to us. This code will draw book image using C language and using Turbo C for DOS compiler.

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

book.c

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main(){
int gd = DETECT ,gm;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
line(270,130,270,350);
line(272,130,272,350);
line(270,130,420,100);
line(270,130,120,100);
line(270,350,120,300);
line(270,350,420,300);
line(120,100,120,300);
line(420,100,420,300);
line(440,115,440,320);
line(420,100,440,115);
line(420,300,440,320);
line(271,350,271,375);
line(271,375,440,320);
line(271,375,130,330);
line(120,300,130,330);

outtextxy(140,150,"\n C \n");
outtextxy(140,170,"\n Language \n");

outtextxy(290,150,"WELCOME to");
outtextxy(290,160,"c programming");

getch();
}