Categories
Perl

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

Triangle 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 Triangle 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.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/

Program Listing

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

void main(){
	int gd = DETECT ,gm;
	initgraph(&gd,&gm,"c:\\turboc3\\bgi");
	line(300,150,210,300);
	line(300,150,390,300);
	line(210,300,390,300);
     getch();
}
Categories
PHP

Foreach Statement in PHP

 I wrote this program to show how to use foreach statement using PHP 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/

<?php
$grades[]=80;
$grades[]=81;
$grades[]=82;
$grades[]=83;
$grades[]=84;
$grades[]=85;

echo "<h4>Foreach Statement in PHP </h4>";
foreach($grades as $result){
  echo "Student Grade :  $result<br>";
}
echo "<p>End of Program</p>";
echo "<br>";
?>
Categories
C

Addition of Three Numbers in C

A simple program to ask the user to give three numbers and then the program will add the sum of three numbers and display the results on the screen using 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/

Sample Program Output
#include <stdio.h>

int main() 
 {
	
  int a=0,b=0,c=0;
  int sum=0;
   
   system("COLOR F0");
   printf("\n\n");
   printf("\tAddition of Three Numbers");
   printf("\n\n");
   printf("\tGive Three Numbers : ");
   scanf("%d%d%d",&a,&b,&c);
 
   sum = (a+b+c);
  
   printf("\n");
   printf("\tThe total sum of %d, %d and %d is %d.",a,b,c,sum);
   printf("\n\n");
   printf("\tEnd of Program");
   printf("\n\n");
  
}
Categories
C++

Addition of Two Numbers Using Two Dimensional Array in C++

I wrote this simple program to ask the user to give two numbers and then the program will solve the sum of two numbers using two-dimensional arrays in 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

// Addition of two numbers using two dimensional array
// November 1, 2018  Thursday
// Author: Mr. Jake R. Pomperada,MAED-IT
// www.jakerpomperada.com
// jakerpomperada@gmail.com
// jakerpomperada@jakerpomperada.com
// Product of Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
	int a[1][1];
	char reply;
	int sum=0;
	
do {

	cout <<"\n\n";
cout << "Addition of Two Numbers Using Two Dimensional Array in C++";
	cout <<"\n\n";
	cout << "Enter first number : ";
	cin >> a[0][0];
	cout <<"Enter second number : ";
	cin >> a[0][1];
	
	sum = (a[0][0]) + (a[0][1]);
	
	cout <<"\n\n";
	cout << "The total sum is " << sum <<".";
	cout <<"\n\n";
	cout <<"Do you want to continue? Y/N : ";
	cin >> reply;
} while(toupper(reply)=='Y');
	cout <<"\n\n";
	cout <<"\tEnd of Program";
	cout <<"\n\n";
}
Categories
JavaScript

Feet To Inches Converter Vice Versa in JavaScript

A simple program that I wrote using JavaScript programming language to ask value in feet or inches and it will convert it into feet or inches equivalent.

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

Sample Program Output
<hmtl>
<head>
  <title>Feet To Inches Converter  Vice Versa in JavaScript</title>
 </head>
 <style>
   body {
    font-family:arial;
    size:12px;
  }
 </style>
<body onload="init()">
  <p>Feet To Inches Converter Vice Versa in JavaScript</p>
  <table cellspacing="6">
    <tr valign="top">
      <td><input id="feet" size="20" onfocus="reset()" /><br />Feet</td>
      <td><input type="button" value="Ok" onclick="convert()" title="Click here to convert" /></td>
      <td><input id="inches" size="20" onfocus="reset()" /><br />Inches</td>
      <td><input type="button" value="Clear All" onclick="reset()" title="Click here to clear the text box." /></td>
    </tr>
  </table>
  <script>
  
  var feet, inches;

function init(){
  feet = document.getElementById('feet');
  inches = document.getElementById('inches');
}

function reset(){
  feet.value = "";
  inches.value = "";
}

function convert(){
  var f = feet.value.replace(/ /, "");
  if (f){
    inches.value = f * 12;
  }
  
  var i = inches.value.replace(/ /, "");
  if (i){
    feet.value = i / 12;
  }
}

</script>
</body>
</html>
Categories
C

Automatic Teller Machine Simulation in C

A simple program that I wrote using a C programming language to simulate the Automatic Teller Machine operation.

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
#include <stdio.h>
#include <conio.h>

int main()

{
int bill500=0, bill200=0, bill100=0, total_balance=0;
int withdraw=0, money_left=0;
int reciv500=0, reciv200=0, reciv100=0;
char withdraw_again[2] = "N";

	     printf("\n\n");
         printf("\t Automatic Teller Machine Simulation in C");
		 printf("\n\n");
		 printf("\tHow many P500 bills: ");
		 scanf("%d", &bill500);
		 printf("\tHow many PHP 200 bills: ");
		 scanf("%d", &bill200);
		 printf("\tHow many PHP 100 bills: ");
		 scanf("%d", &bill100);
		 total_balance = 	(bill500 * 500) + (bill200 * 200) +  (bill100 * 100) ;

		 printf("\tTotal Balance: PHP %d", total_balance);

	 do

	 {
		 printf("\n");
		 printf("\n");

		 printf("\tEnter amount to withdraw: PHP ");
		 scanf("%d", &withdraw);
		 money_left = withdraw ;

		 if  (withdraw > total_balance)
				{
				printf("\tWithdraw amount greater than total balance.  ");
				printf("\n");
				}
		 if (withdraw < total_balance)
		 {
		 if  (money_left >= 500 )
				{
				 reciv500 = int(money_left / 500);
				 if (reciv500 > bill500 ) reciv500 = bill500;

				 money_left = money_left - (reciv500 * 500);
				 bill500 = bill500 - reciv500;
				}

		 if (money_left >= 200 )
			 {
				 reciv200 = int(money_left / 200);
				 if (reciv200 > bill200 ) reciv200 = bill200;
				 money_left = money_left - (reciv200 * 200);
				 bill200 = bill200 - reciv200;
			 }

		 if (money_left >= 100 )
			  {
				 reciv100 = int(money_left / 100);
				 if (reciv100 > bill100 ) reciv100 = bill100;
				 money_left = money_left - (reciv100 * 100);
				 bill100 = bill100 - reciv100;
				}

				printf("\n");
				printf("\n");
				printf("\tYou will receive:");
				printf("\n");
				printf("\t%d  PHP 500 bill", reciv500);
				printf("\n");
				printf("\t%d  PHP 200 bill", reciv200);
				printf("\n");
				printf("\t%d  PHP 100 bill", reciv100);
				printf("\n");


				total_balance = total_balance - withdraw;

				printf("\tYour current balance is: PHP %d", total_balance);

				printf("\n");
				printf("\n");
				printf("\tYou only have balance of:");
				printf("\n");
				printf("\t%d  PHP 500 bill", bill500);
				printf("\n");
				printf("\t%d  PHP 200 bill", bill200);
				printf("\n");
				printf("\t%d  PHP 100 bill", bill100);
				printf("\n");
 				printf("\n\n");
				printf("\tAnother Withdraw Again ? Y/N : ");
				scanf("%s", &withdraw_again);

		 }

	 }  while (withdraw_again == "Y" || withdraw_again == "y" );
     printf("\n\n");
     printf("\tEnd of Program");
     printf("\n\n");
}
Categories
Perl

Age Checker in Perl

A simple program that I wrote to ask the user to give his or her age and then the program will check and determine if the user is still a minor, adult or already a senior citizen 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
# age.pl
# Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
# Date    : March 25, 2020  12:11 PM
# Website : http://www.jakerpomperada.com
# Email   : jakerpomperada@gmail.com

print "\n\n";
print "\tAge Checker in Perl";
print "\n\n";
print "\tEnter your Age : ";
chomp($age=<>);

if ($age < 18) {
    print "\n";
    print "\tAt the age of $age years old. Your are still a Minor.";
}

if ($age >=18  && $age < 60) {
print "\n";
print "\tAt the age of $age years old. You are already an Adult.";
}

if ($age >=60) {
print "\n";
print "\tAt the age of $age years old. You are already an Senior Citizen.";
}

print "\n\n";
print "\tEnd of the Program";
print "\n\n";