Monday, August 19, 2019

Factorials in LISP

A simple program that I wrote using LISP to ask the user to give a number and then the program will compute the factorial value of the given number.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

factorial.lisp

(setf fact 1)
(defun facto(n)
    ( loop for x from 2 to n
           do(setq fact (* x fact))
           )
    (write fact)
    (princ ".")
    )

(terpri)
(princ "Factorial a Number in LISP ")
(terpri)
(terpri)
(princ "Created By Mr. Jake R. Pomperada")
(terpri)
(terpri)
(princ "Give a Number : ")
(setq a (read))
(terpri)
(princ "The factorial value is ")
(facto  a)



Difference Between Two Numbers in LISP

A simple program that I wrote using LISP to ask the user to give two numbers and then the program find the difference between two numbers and display the results on the screen.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

difference.lisp


(defun difference()
(terpri)
(princ "Difference Between Two Numbers in LISP ")
(terpri)
(terpri)
(princ "Enter First Value  : ")
(setq a (read))
(princ "Enter Second Value : ")
(setq b (read))
(terpri)
(setq product (- a b ))
(princ "The difference is  ")
(write product))
(difference)



Addition of Three Numbers in LISP

Here is a sample program that will ask the user to give three numbers and then the program will compute the sum of the two numbers and display the results on the screen using LISP as our programming language.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

add.lisp


(defun Addition()
(terpri)
(princ "Additon of Three Numbers in LISP ")
(terpri)
(terpri)
(princ "Enter First Value  : ")
(setq a (read))
(princ "Enter Second Value : ")
(setq b (read))
(princ "Enter Third Value  : ")
(setq c (read))
(terpri)
(setq sum  (+ a b c ))
(princ "The total sum is  ")
(write sum))
(Addition)



Hello World in LISP

Here is a simple hello world program that I wrote using LISP (List Processing) programming language.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

hello.lisp

(print "Hello World !!! in Lisp")

Header Tags in HTML

Int this article I would like to share with you how to use header tags <h1> in your HTML documents. Header tags are very useful in any HTML documents it is being used as title header of a headline in the documents and it can be also used as subheader title in the documents.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Sample Program Output


Program Listing

index.htm

<!DOCTYPE html> 
<html> 
    <head> 
        <title>Header Tag Example</title> 
    </head> 
    <style>
     body { 
          background-color: lightgreen;
          font-family:arial;
          }
     </style>
    <body> 
        <article> 
            <header> 
                <h1>This is the heading tag in HTML</h1> 
                <h4>This is the sub-heading tag.</h4> 
                <p>This is the paragraph. Working on HTML is fun and it develops my skills.</p> 
            </header> 
        </article> 
    </body> 
</html>     

Login and Registration System in Visual Basic NET and Microsoft Access

In this article I would like to share with you work of my close friend, business partner and fellow software engineer Mr. Larry Dave Emol he wrote this application entitled "Login and Registration System in Visual Basic NET and Microsoft Access". The code is very simple and easy to understand I hope you will find his work useful.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com





Sample Program Output

Program Listing

Public Class Form1
   
    Private Sub Logins()
        Try

            query = "SELECT * FROM tbluser WHERE USERNAME = '" & txtUser.Text & "' AND PASSWORD = '" & txtPwd.Text & "'"
            cmd = New OleDb.OleDbCommand(query, conn)
            dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
            If dr.Read = True Then
                Dim fx As New Form2
                Me.Hide()
                fx.Show()
            Else
                MsgBox("Incorrect username or password!", MsgBoxStyle.Critical, "Login")
                txtPwd.Focus()
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        Finally

        End Try
    End Sub


    Private Sub btnLogin_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
        Logins()
    End Sub

    Private Sub btncancel_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncancel.Click
        If MsgBox("Are you sure you want to close?", MsgBoxStyle.YesNo, "Close Window") = MsgBoxResult.Yes Then
            End
        End If
        txtUser.Focus()
    End Sub

    Private Sub txtPwd_GotFocus1(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtPwd.GotFocus
        AcceptButton = btnLogin
    End Sub

    Private Sub txtUser_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtUser.GotFocus
        AcceptButton = btnLogin
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        connect()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        If (txtid.Text <> vbNullString And txtfn.Text <> vbNullString And _
               txtmn.Text <> vbNullString And txtln.Text <> vbNullString And _
               txtun.Text <> vbNullString And txtp.Text <> vbNullString And _
               txtrp.Text <> vbNullString) Then


            If Me.txtp.Text = Me.txtrp.Text = False Then
                MsgBox("Password didn't match!")
                txtp.Text = ""
                txtrp.Text = ""
            Else
                Dim DS As DataSet = New DataSet
                Dim DA As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter

                DA.SelectCommand = New OleDb.OleDbCommand("SELECT * FROM tbluser WHERE ID='" & txtid.Text & "'", conn)
                DS.Clear()
                DA.Fill(DS)

                If DS.Tables(0).Rows.Count = 0 Then
                    query = "INSERT INTO tbluser VALUES ('" & Me.txtid.Text & "','" & txtfn.Text & "','" & txtmn.Text & "','" & txtln.Text & "','" & _
                                txtun.Text & "','" & txtp.Text & "')"
                    cmd = New OleDb.OleDbCommand(query, conn)
                    cmd.ExecuteNonQuery()
                    cmd.Dispose()

                    MsgBox("New Information Added", MsgBoxStyle.Information + MsgBoxStyle.OkOnly, "Success")
                    Me.txtfn.Text = ""
                    Me.txtmn.Text = ""
                    Me.txtln.Text = ""
                    Me.txtun.Text = ""
                    Me.txtp.Text = ""
                    Me.txtrp.Text = ""
                Else
                    MsgBox("The ID Number entered is already found? Please check information." & vbCrLf & vbCrLf & "If you think this is an error, " & _
                    "Please inform the Administrator.", MsgBoxStyle.Critical + MsgBoxStyle.OkOnly, "Error: Duplicate ID Number found")
                    txtid.Focus()
                    Exit Sub
                End If

            End If
        Else
            MsgBox("Some fields are left blank. Please fill-up all information.", MsgBoxStyle.Critical + MsgBoxStyle.OkOnly, "Error: Blank Fields found")
            txtid.Focus()
        End If
    End Sub
End Class

MODULE
-Codes for database connection and Variable Declarations 


Module Module1
    Public conn As New OleDb.OleDbConnection
    Public query As String
    Public DA As OleDb.OleDbDataAdapter
    Public DS As DataSet
    Public cmd As OleDb.OleDbCommand
    Public dr As OleDb.OleDbDataReader

    Sub connect()
        conn = New OleDb.OleDbConnection
        conn.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & Application.StartupPath & _
       "\data.mdb;user id=admin;jet oledb:database password=987"

        Try
            If conn.State = ConnectionState.Closed Then
                conn.Open()
                'MsgBox("Connection Success")
            End If
        Catch ex As Exception
            MsgBox("Error Connection" & Err.Description)
        End Try
    End Sub
End Module






Sunday, August 18, 2019

Leap Year Checker in Perl

A simple script that I wrote using Perl programming language to ask the user to give a year and then the program will check and determine if the given year is a leap year or not a leap year.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

year_level.pl

print "\n";
print "\tLeap year in Perl";
print "\n\n";
print "\tCreated By Mr. Jake R. Pomperada";
print "\n\n";
print "\tGive a Year : ";
chomp ($year = <>);

 if( (0 == $year % 4) && (0 != $year % 100) || (0 == $year % 400) )
 {
  print "\n";
  print "\tGive year $year is a LEAP year.";
 }
 else {
  print "\n";
  print "\tGive year $year is a NOT a LEAP year.";
 }
print "\n\n";
print "\tEnd of Program";
print "\n";

Year Level Checker Using Perl

A simple Perl script that will ask the user to give a number the correspond to the year level of a student in high school for example 1 for freshmen, 2 for sophomore, 3 for junior, 4 for seniors and other values it will display invalid year level.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Output

year.pl






Product of Two Numbers in Perl

Here is a simple program that I wrote using Perl to ask the user to give two numbers and then the program will compute the product of the two numbers.

I am currently accepting programming work, 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

product.pl

print "\n";
print "\tProduct of Two Numbes in Perl";
print "\n\n";
print "\tCreated By Mr. Jake R. Pomperada";
print "\n\n";
print "\tEnter first  value : ";
chomp ($a = <>);
print "\tEnter second value : ";
chomp ($b = <>);

$product = ($a * $b);

print "\n";
print "\tThe product of $a and $b is $product.";
print "\n\n";
print "\tEnd of Program";
print "\n";