Monday, April 6, 2020

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();
}

Draw a Cup 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 cup 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

cup.c

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main(){
int gd = DETECT ,gm;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");

fillellipse(260,150,100,30);
fillellipse(255,335,80,10);

ellipse(190,230,100,280,40,90);
ellipse(260,230,0,360,100,110);

outtextxy(250,230,"CUP");
getch();
}


Moving Car after Progressbar 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 moving car after Progressbar in Cusing 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

cars.c

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

void main(){
int gd = DETECT ,gm;

int i;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
for(i=1; i<200; i++){
  setcolor(GREEN);
  outtextxy(50,180,"Loading...");
  line(50+i,200,50+i,220);
  delay(10);
}
if(i==200){
for(i=0; i<=600; i+=20)
{
setcolor(WHITE);
line(0,300,640,300);
circle(100+i,285,15);
circle(200+i,285,15);
circle(100+i,285,5);
circle(200+i,285,5);
setcolor(GREEN);
line(65+i,285,85+i,285);
line(115+i,285,185+i,285);
line(215+i,285,235+i,285);
line(65+i,285,65+i,260);
line(235+i,285,235+i,260);

line(65+i,260,100+i,255);
line(235+i,260,200+i,255);
line(100+i,255,115+i,235);
line(200+i,255,185+i,235);
line(115+i,235,185+i,235);

line(179+i,238,152+i,238);
line(152+i,255,152+i,238);
line(152+i,255,177+i,255);
line(177+i,239,177+i,255);

delay(200);
cleardevice();
}

}
getch();
}


Draw a Circle 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 a circle 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

circle.c

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main(){
int gd = DETECT ,gm;
   int x=300;
int y=200;
int radius =100;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
circle(x,y,radius);
getch();

}

Draw a Rectangle 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 a rectangle 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


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

void main(){
int gd = DETECT ,gm;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
rectangle(100,100,200,200);
getch();
}



Rainbow 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 a rainbow 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

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

void main()
{
int gd=DETECT,gm;
        int x,y,i;
initgraph(&gdriver,&gmode,"C:\\Turboc3\\BGI");
x=getmaxx()/2;
y=getmaxy()/2;
for(i=30;i<200;i++)
{
delay(100);
setcolor(i/10);
arc(x,y,0,180,i-10);
}
getch();
}

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 a 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>

void main(){
int gd = DETECT ,gm;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
//ground
line(10,300,500,300);
line(10,302,500,302);
//home
setcolor(GREEN);
rectangle(50,150,200,298);
//door
setcolor(RED);
rectangle(55,185,110,295);
//windows
setcolor(BLUE);
rectangle(140,200,180,240);
line(140,220,180,220);
line(160,200,160,240);
//roof
setcolor(5);
line(30,150,220,150);
line(115,50,220,150);
line(115,50,28,150);
//text
setcolor(6);
settextstyle(1,HORIZ_DIR,5);
outtextxy(300,200,"MY HOME");
        getch();
}






Draw a Laptop 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 a laptop 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

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

void main(){
int gd = DETECT ,gm;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");

rectangle(150,100,300,200);
line(150,200,180,300);
line(300,200,350,300);
line(180,300,350,300);

outtextxy(200,140,"WELCOME");
rectangle(240,275,280,295);

outtextxy(190,220,"[] [] [] []");
outtextxy(200,240,"[] [] [] []");
outtextxy(210,260,"[] [] [] []");
getch();
}