Monday, April 27, 2020

Summation Value of a Number in Python


Write a program that will ask the user a number and then the program will compute the sum of the numbers based on the given by the user 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("\tSummation Value of a Number");
print();
value = int(input("\tGive a Number : "));
print();
print("\t===== DISPLAY RESULT =====");
print();
sum = 0
for i in range(1, value + 1):
    sum += i
print("\tThe summation value of %d is %d." %(value,sum));
print();
print("\tEnd of Program");
print();

Fibonacci Series Using For Loop Statement in Python


Write a program that will ask the user to input a number and then, let the program print Fibonacci series using for loop statement.


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("\tFibonacci Series Using For Loop Statement")
print()
num = int(input("\tGive a number of digits you want in series (minimum 2): "))
first = 0
second = 1
print()
print("\tfibonacci series is:")
print()
print("\t",first,",", second, end=", ")
for i in range(2, num):
    next = first + second
    print(next, end=", ")
    first = second
    second = next
print("\n\n")
print("\tEND OF PROGRAM");

Prime Solver Using For Loop Statement in Python


Write a program that will ask the user to input a number and then, the program will check whether the given number by the user is a prime number or not using for loop statement.

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("\tPrime Solver Using For Loop Statement")
print()
num = int(input("\tGive a Number : "))
print()
for i in range(2, int(num/2)):
            if num % i  == 0:
                        print("\tThe given number {0} not a Prime Number.".format(num))
                        break
else:
            print("\tThe given number {0} is a Prime Number.".format(num))
print()
print("\tEND OF PROGRAM");

Even Numbers Using For Loop Statement in Python


Write a program that will ask the user to input a number and then, the program will generate a series of even numbers using for loop statement.


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("\tEven Numbers Using For Loop Statement");
print();
value = int(input("\tGive a Number : "))
print();
print("\tList of EVEN Numbers")
print();
for a in range(value):
 if(a % 2 == 0):
     print("\t%d" % a, end=" ");
print("\n");

Sunday, April 26, 2020

Color in HTML and CSS

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, for sharing your code to us.

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

<html>
<body>
<form>
<p><input type="button" Name="Red" value="Red" onclick='document.bgColor="red"'></p>
<p><input type="button" Name="Blue" value="Blue" onclick='document.bgColor="blue"'></p>
<p><input type="button" Name="Green" value="Green" onclick='document.bgColor="green"'></p>
<p><input type="button" Name="Black" value="Black" onclick='document.bgColor="black"'></p>
<p><input type="button" Name="White" value="White" onclick='document.bgColor="white"'></p>
<p><input type="button" Name="Yellow" value="Yellow" onclick='document.bgColor="yellow"'></p>
<p><input type="button" Name="Pink" value="Pink" onclick='document.bgColor="pink"'></p>
<p><input type="button" Name="Brown" value="Brown" onclick='document.bgColor="brown"'></p>
<p><input type="button" Name="Orange" value="Orange" onclick='document.bgColor="orange"'></p>
<p><input type="button" Name="Magenta" value="Magenta" onclick='document.bgColor="magenta"'></p>
<p><input type="button" Name="AppleGreen" value="AppleGreen" onclick='document.bgColor="applegreen"'></p>
<p><input type="button" Name="Cyan" value="Cyan" onclick='document.bgColor="cyan"'></p>
<p><input type="button" Name="Maroon" value="Maroon" onclick='document.bgColor="maroon"'></p>
<p><input type="button" Name="YellowGreen" value="YellowGreen" onclick='document.bgColor="yellowgreen"'></p>
</form>
</body>
</html>

Login Form in HTML and CSS

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, for sharing your code to us.

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

<!Doctype html>
<html>
  <style>
  .n1{
   position: absolute;
 top: 50px;
 left: 100px;
 border: 1px red solid;
 padding: 25px;
 background: black;
 color: red;
 text-align: center;
 height: 500px;
 }
 .n2{
 text-align: center;
 padding:25px;
 border: 1px green solid;
 border-radius: 20px;
 background: cyan;
 margin-top: 25px;
 height: 400px;
  
 }
 .login{
 background: none;
 border-bottom: 1px green solid;
 margin: 10px;
 font-size: 20px;
 }
 .user input{
 background: none;
 border: none;
 border-bottom: 1px green solid;
 margin: 5px;
 }
 .pass input{
 background: none;
 border: none;
 border-bottom: 1px green solid;
 margin: 5px;
 }
 .sub input{
 background: black;
 color: white;
 width: 100%;
 margin-top:10px; 
 }
 .rp{
 font-size: 15px;
 }
 .ex input {
 margin-top: 25px;
 }
  </style>
  <body>
 <div class="n1">
   <div class="n2">
 <div class="login">
 Log in
   </div>
   <div class="user">
 <input type="text" placeholder="Enter username">
   </div>
 <div class="pass">
   <input type="password" placeholder="Enter password">
 </div>
 <div class="rp">
 <input type="checkbox"> Remember password
    </div>
   <div class="sub">
 <input type="submit" value="Sign in">
 <div class="ex">
   <input type="submit" value="Sign up">
   <input type="submit" value="Forgot password">
 </div>
   </div>
   </div>
 </div>
  </body>
 </html>

unless-else Statement in Perl

I wrote this simple program in Perl programming language to demonstrate how to use unless-else statement.

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

# unless_else_example.pl
# Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
# Date    : April 26, 2020  Sunday  4:10 PM
# Email   : jakerpomperada@gmail.com
# Websites : http://www.jakerpomperada.com
#            http://www.jakerpomperada.blogspot.com

print "\n\n";
print "\tunless-else Statement Example ";
print "\n\n";
print "\tGive a Number : ";
chomp($num=<>);
print "\n"; 


unless($num>=200) {
   #This print statement would execute,
   #if the given condition is false
   printf "\tThe given number $num is less than 200.";
}
else {
   #This print statement would execute,
   #if the given condition is true
   printf "\tThe given number $num is greater than or equal to 200.";
}
print "\n\n";
print "\tEnd of the Program";

print "\n\n";

Linked List in Pascal

I wrote this program a long time ago using Turbo Pascal to show how to create a Linked List in Pascal 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

PROGRAM LinkedListDemo(INPUT, OUTPUT);
CONST
Header = '------------- Main Menu --------------';
Separator = '--------------------------------------';
TYPE
DataString = STRING[30];
ListPointer = ^ListRecord;
ListRecord = RECORD
DataField :DataString;
NextField :ListPointer
END;
VAR
FirstPointer :ListPointer;
{ --------------------------- Procedure BuildList -------------------------- }
PROCEDURE BuildList(VAR FirstPointer :ListPointer;
DataItem :DataString);
{Note: FirstPointer is passed using the VAR keyword because it will be updated
by this procedure.}
VAR
ToolPointer :ListPointer;
BEGIN
NEW(ToolPointer);
ToolPointer^.DataField := DataItem;
ToolPointer^.NextField := FirstPointer;
FirstPointer := ToolPointer
END;

{ -------------------------- Procedure ReadList ---------------------------- }
PROCEDURE ReadList(FirstPointer :ListPointer);
VAR
CurrentPointer :ListPointer;
BEGIN
CurrentPointer := FirstPointer;
WHILE CurrentPointer <> NIL DO
BEGIN
WRITELN(CurrentPointer^.DataField);
CurrentPointer := CurrentPointer^.NextField
END;
WRITELN
END;
{ -------------------------- Procedure GetData------------------------------ }
PROCEDURE GetData(VAR FirstPointer :ListPointer);
{Note: FirstPointer is passed using the VAR keyword because it will be updated
when passed to BuildList procedure.}
VAR
Name :DataString;
BEGIN
WRITELN('Enter the names to be added to the list,',
' when finished hit ENTER.');
{ Read the first data item }
READLN(Name);
{ Check for end-of-data }
WHILE LENGTH(Name) <> 0 DO
BEGIN
BuildList(FirstPointer, Name);
READLN(Name)
END
END;
{ ------------------------- Procedure DisplayInfo -------------------------- }
PROCEDURE DisplayInfo(FirstPointer :ListPointer);
BEGIN
WRITELN(Separator);
WRITELN('The contents of the list: ');
ReadList(FirstPointer);
WRITE('Hit any key to continue...');
READLN
END;
{ --------------------------- Procedure Menu ------------------------------- }
PROCEDURE Menu;
VAR
Option :INTEGER;

BEGIN
WRITELN(Header);
WRITELN('1. Store data in a list.');
WRITELN('2. Display the list.');
WRITELN('3. Exit.');
WRITELN(Separator);
WRITE('Make a choice and press a number: ');
READLN(Option);
CASE Option OF
1 : GetData(FirstPointer);
2 : DisplayInfo(FirstPointer);
3 : Exit
END;
Menu
END;
{ ----------------------------- Main Program ------------------------------- }
BEGIN
{ Initialize an empty list }
FirstPointer := NIL;
menu

END.



Friday, April 24, 2020

Arithmetic Operators in Perl

A simple program to demonstrate how to declare and use arithmetic operators 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.unlimitedbooksph.com/


Sample Program Output


Program Listing

arithmetic.pl

$a = 10;
$b = 2;

print("\n");
print ("\tArithmetic Operators in Perl");
print("\n\n");
print("\t\$a+\$b = ",$a+$b,"\n");
print("\t\$a-\$b = ",$a-$b,"\n");
print("\t\$a*\$b = ",$a*$b,"\n");
print("\t\$a/\$b = ",$a/$b,"\n");
print("\t\$a%\$b = ",$a%$b,"\n");
print("\t\$a**\$b = ",$a**$b,"\n");


Thursday, April 23, 2020

Day of the Week Checker Using Switcher in Python


Write a program that will ask the user to input a number that will represent the day of week 0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday, and 6 for Saturday.  Once the user gives the number that represents the day of the week, it will display the day 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


def week(i):
    switcher = {
        0: 'Sunday',
        1: 'Monday',
        2: 'Tuesday',
        3: 'Wednesday',
        4: 'Thursday',
        5: 'Friday',
        6: 'Saturday',
        }
    return switcher.get(i, "Invalid day of week")

print();
print("\tDay of the Week Checker");
print();
x= int(input("\tWhat is the day?  "));
print();
print("\tThe day is " ,week(x),'.');
print();
print("\tEND OF PROGRAM");