Thursday, April 23, 2020

Seconds to Hours,Minutes and Seconds Converter


Create and design a program that will ask the user to input a number in seconds and then, the program will convert its days, hours, minutes, and seconds equivalent and
display the result on the screen.

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.unlimitedbooksph.com/



Program Listing


print()
print("\tSeconds to Hours,Minutes and Seconds Converter");
print()
time = float(input('\tHow many seconds : '))
day = time // (24 * 3600)
time = time % (24 * 3600)
hour = time // 3600
time %= 3600
minutes = time // 60
time %= 60
seconds = time
print();
print("\t===== DISPLAY RESULT =====");
print();
print("\tDays:%d Hours:%d Minutes: %d Seconds :%d" % (day, hour, minutes, seconds))
print();
print("\tEND OF PROGRAM");
print("\n\n");

Find Power of a Number in Python


Write a program to ask the user to input an integer value and exponent value then, the program will compute the power value and display the result on the screen.

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.unlimitedbooksph.com/



Program Listing


import math
print("@====================================@")
print("     Find Power of a Number           ")
print("@====================================@")
print("")
number = int(input("Enter any Positive Integer : "))
exponent = int(input("Enter Exponent Value : "))
print("")

power = math.pow(number, exponent)

print("The Result of {0} Power {1} = {2}".format(number, exponent, power))
print("")
print("===== THE END OF PROGRAM =====     ")


Loan Interest Solver in Python


Write a program that will ask the user to input principal amount loan, the number of years the loan to be paid, and the percentage interest per year. The program will compute the yearly interest rate of the loan and display the result on the screen.

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.unlimitedbooksph.com/



Program Listing



print("@====================================@")
print("       Loan Interest Solver           ")
print("@====================================@")
print("")
principal=float(input("Enter Principal Amount PHP : "))
time=float(input("Enter Number of Year : "))
rate=float(input("Enter Percent Rate % : "))
 solve_interest = (principal * time * rate) / 100
 print("")
print("The Interest is PHP %.2f" %solve_interest)
print("")
print("===== THE END OF PROGRAM =====     ")

Swap of Two Numbers in Python


Write a program that will ask the user to input two numbers and then, swap the arrangement of the two numbers and display the result on the screen.

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.unlimitedbooksph.com/



Program Listing


print("@=====================================@")
print("        Swap of Two Numbers            ")
print("@=====================================@")
print("");
x = int(input("Enter First Value  : "))
y = int(input("Enter Second Value : "))
print("");
print("BEFORE SWAPPING")
print("");
print('The value of x before swapping: {}'.format(x))
print('The value of y before swapping: {}'.format(y))
temp = x
x = y
y = temp
print("");
print("AFTER SWAPPING")
print("");
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
print("")
print("===== THE END OF PROGRAM =====     ")

Area of the Circle Solver in Python


Write a program that will ask the user to input a radius of the circle and then, the program will compute the area and circumference of the circle and display the result on the screen.

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.unlimitedbooksph.com/



Program Listing

print("@=====================================@")

print("      Area of the Circle Solver        ")
print("@====================================@")
print("")
PI = 3.14
radius = float(input('Enter the radius of the circle : '))
area = PI * radius * radius
circumference = 2 * PI * radius
print("")
print("Area Of a Circle = %.2f" %area)
print("Circumference Of a Circle = %.2f" %circumference)
print("")
print("===== THE END OF PROGRAM =====     ")


Sum of Three Numbers in Python

I wrote this simple program to ask the user to give three numbers and then the program will compute the sum of three given numbers and display the results on the screen using Python 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.unlimitedbooksph.com/



Program Listing


print("@=====================================@")
print("        Sum of Three Numbers          ")
print("@====================================@")
print("");
a = int(input("Enter First Value  : "))
b = int(input("Enter Second Value : "))
c = int(input("Enter Third Value  : "))

# Add Three numbers
sum = (a+b+c)

# Display the sum of three numbers
print("")
print('The sum of {0},{1} and {2} is {3}'.format(a,b,c,sum),'.')
print("")
print("===== THE END OF PROGRAM =====     ")

Fahrenheit to Celsius Converter in Python

I wrote this simple program to ask the user to give temperature in Fahrenheit and it will convert it into Celsius equivalent in Python 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.unlimitedbooksph.com/



Program Listing


print("@=====================================@")
print("  Fahrenheit to Celsius Converter     ")
print("@====================================@")
print("");
Fahrenheit = int(input("Enter a temperature in Fahrenheit: "))

Celsius = (Fahrenheit - 32) * 5.0/9.0

print("")
print ("Temperature Value is ", Fahrenheit);
print("")
print("Fahrenheit Equivalent is %.2f " % round(Celsius,2),"\u00b0C")
print("")
print("===== THE END OF PROGRAM =====     ")
print("")

Difference of Two Numbers in Perl

I wrote this program to ask the user to give two numbers and then the program will compute the difference of two numbers 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.unlimitedbooksph.com/




Sample Program Output


Program Listing

# difference.pl
# Author     : Jake Rodriguez Pomperada,MAED-IT,MIT
# Date       : April 24, 2020   Thursday  2:38 PM
# Location   : Bacolod City,Negros Occidental
# Email      : jakerpomperada@gmail.com
# Websites   : http://www.jakerpomperada.com
#              http://www.jakerpomperada.blogspot.com
print "\n\n";
print "\tDifference of Two Numbers in Perl";
print "\n\n";
print "\tEnter First Value  : ";
chomp($a =<>);
print "\tEnter Second Value : ";
chomp($b =<>);
$difference = ($a - $b);
print "\n";
print "\tThe difference between $a and $b is $difference.";
print "\n\n";
print "\tEnd of Program";

print "\n\n";

Wednesday, April 22, 2020

Product of Two Numbers in Python

I wrote this program to ask the user to give two numbers and then the program will compute the product of two numbers and display the results on the screen using Python as my 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.unlimitedbooksph.com/


Program Listing

print("\tProduct of Two Numbers")
print()
a = int(input("\tEnter First Value    :  "))
b = int(input("\tEnter Second Value   :  "))

product = (a*b)

print("\tThe product of {0} and {1} is {2}".format(a,b,product))
print()







What is a Variable in Python?

What is a Variable in Python?

A variable is simply a name the programmer uses to refer to the computer storage location. The term variables are used because the value stored in the variable may change or vary. The computer keeps track of the actual memory address that corresponds to each name the programmer assigns.

Variables and constants are objects that a program manipulates. A variable is the name of the memory location, which stores a value. Variables can be compared to empty containers - They can be filled by the user or programmer with values. To use a variable, it must be defined by giving its type and identifier. The type of variable shows the kind of value the variable will store. The identifier of a variable is also the name of the variable. Consider the following examples below.

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.unlimitedbooksph.com/

Variable Assignment in Python

Variable Assignment

Think of a variable as a name attached to a particular object. In Python, variables need not be declared or defined in advance, as in the case of any other programming languages. To create a variable, you just assign it a value and then, start using it. The assignment operator is done with a single equals sign (=).
>>> score = 85

This is read or interpreted as “score is assigned the value 85”. Once this is done, the score can be used in a statement or expression and its value will be substituted.
>>> print(score)
85

Later, if you change the value of score and use it again, the new value will be substituted instead.
>>> score = 65
>>> print(score)
65
>>> score
65

Python also allows chained assignment, which makes it possible to assign the same value to several variables simultaneously.
>>> x = y = z = 500
>>> print(x,y,z)
500 500 500

The chained assignment above assigns  500  to the variables x, y, and z simultaneously.

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.unlimitedbooksph.com/





Identifiers in Python



Identifiers

An identifier is a name given to a variable, function, class, or module. Identifiers may be one or more characters in the following format:

Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore (_). Names, like myCountry, other_1, and good_morning - all are valid examples. A Python identifier can begin with an alphabet (A - Z, a – z, and _).

 An identifier cannot start with a digit but is allowed everywhere else. 1plus is invalid,  but plus1 is perfectly fine.

Keywords cannot be used as identifiers.

One cannot use spaces and special symbols, like !, @, #, $, %, and etc. as identifiers.

 An identifier can be of any length.


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.unlimitedbooksph.com/




Case Sensitivity in Python

Case Sensitivity

         In Python, variable names (as with all identifiers) are case sensitive. Therefore, the following are two different variables:

planet = "Earth"
Planet = "Saturn"

So printing these two variables will result in two different values being displayed:
print(planet, Planet)

RESULT

Earth Saturn

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.unlimitedbooksph.com/


Rules in Declaring a Variable in Python

Rules in Declaring a Variable in Python

To declare a variable its identifier, you need to know what data type it is going to be of and what its name would be. The variable name has constraints on what you can name it. The following are the rules for naming variables:

must begin with a letter (a - z; A - B) or underscore (_)
other characters can be letters, numbers, or _
Variable names are case-sensitive. For example, computer and Computer are different.
can be any (reasonable) length
There are some reserved words, which you cannot use as a variable name because Python uses them for other things.
The variable should not start with a number.

Also, follow these guidelines while naming a variable, as having a consistent naming convention helps in avoiding confusion and can reduce programming errors.

Python variables use lowercase letters with words separated by underscores as
necessary to improve readability, like this: whats_up and how_are_you. Although this is not strictly enforced, it is considered a best practice to adhere to this convention.
Avoid naming a variable where the first character is an underscore. While this
is legal in Python, it can limit the interoperability of your code with applications
built by using other programming languages.
Ensure variable names are descriptive and clear enough. This allows other programmers to have an idea about what the variable is representing.


Here are some examples of acceptable variable names:
username a xyz123 J_1978
_temp Myname88 retval qty_price
aDDress ID_Num midterm_grade wage_emp

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.unlimitedbooksph.com/


Input and Output in Python

Here is a sample code that I wrote for my book in Python programming that shows how to ask user an input and variable declaration. I hope you will learn on this code snippets.

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.unlimitedbooksph.com/

Program Listing



# variables.py
# Written By Jake R. Pomperada
# Tools : PyCharm 2018.3.5 Community Edition
# March 14, 2019     Thursday   8:21 AM
# Bacolod City, Negros Occidental

print()
print("\tBacolod Software Inc. Employee's Information System")
print()

full_name =input("\tGive Employee's Name             : ")
age = int(input("\tGive Employee's Age              : "))
position=input("\tGive Employee's Position         : ")
wage= input("\tWhat is Employee's Wage          : ")
wage2 = float(wage)
yearly_salary=input("\tWhat is Employee's Yearly Salary : ")
yearly_salary2 = float(yearly_salary)
gender=input("\tWhat is Employee's Gender        : ")

print()
print("\t ===== DISPLAY RESULT =====")
print()
print("\t Employee's Name           :",full_name.upper())
print("\t Employee's Age            : {0}".format(age))
print("\t Employee's Position       :",position.upper())
print("\t Employee's Wage           : PHP %.2f" % round(wage2,2))
print("\t Employee's Yearly Salary  : PHP %.2lf" % round(yearly_salary2,2))
print("\t Employee's Gender         :",gender.upper())
print()
print("\t ===== END OF PROGRAM =====")
print()

Two-Dimensional Array Example No.Two in Perl

I wrote this program to show and demonstrate how to declare and use a two-dimensional array using the 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.unlimitedbooksph.com/

Program Listing


two_dimensional.pl

# two_dimensional_example_two.pl
# Author    : Jake R. Pomperada,MAED-IT,MIT
# Date      : April 12, 2020   Sunday  9:12 AM
# Location  : Bacolod City, Negros Occidental
# Email     : jakerpomperada@gmail.com
# Websites  : http://www.jakerpomperada.com
#             http://www.jakerpomperada.blogspot.com

# A two-dimensional array consisting of 4 rows and
# 4 columns.

@array=(
       [1,2,3,4],
       [2,4,6,8],
       [3,5,6,8],
       [4,5,6,7],
       [5,6,7,8],
     );

printf("\n");
printf("\tTwo-Dimensional Array Example No.Two in Perl");
printf("\n\n");
# Display array elements values 
# of two-dimensional array

foreach my $row ( @array ) {
    printf("\t");
    print("@$row\n");
}

printf("\n\n");
printf("\tEnd of Program");

printf("\n\n");