Basically, I will put some introduction about each PL that I've learned and also some source code of what i have ever done before. This source code is not the complete solution to all things. I have lost most of my source code when my PC crashed last year.


Home  | Email me  | Guessbook  | About me  | Friends and Family   | Bug Reports   
C   | C++   | Java  | Shell Script  | Perl Script  | OpenGL  | Povray  | Visual Basic  | Lex and Yacc  | HTML  | JavaScript

C Programming Language
C Language is a structured language. I has some similarities of other structured language such as Algol, Pascal and Modula-2. In my studies in Curtin, I have use C language to do most of my assignment. These include Othello, some network stuff and also the customer-teller system. I will put some of my previous assignment work here. Just click on the link below to download it. It runs perfectly in Mandrake Linux version 9.0(Linux Operating System). I am not sure whether it is compatible to the Visual C or any other C compiler used in Windows Operating System. Here are some of my assignment using C language:
  1. Artificial Machine and Intelligence 251 (AMI 251) is one of the units that I've done. My assignment is to create a game called Othello. The requirement for this assignment is to use minimax algorithm. However, I use the heuristic algorithm that will look for a move that will look ahead one step so that the computer will make a move that will lead to no move to the opponent. Click on the link below for codes:

  2. Computer Communication 352 (CC 352), first assignment is about handling the customer request from various computer. I have learn how to link several computer together and to serve a client's request from my server. Also, I have learned to use the socket connection in a network system. The system is call the "My Remote System Infor Client-Server".

  3. Second assignment of CC352 is also about the client-server system. This assignment is about spooling the printing system. In this system, the server will act as a printing server that will print the requested files or removed the request. Client can also view the content of the printer queue. This server is called The Server Printing System.From these two assignment, I've learn how to use fork, semaphore and also socket connection.

  4. Foundation of Computer Studies 351 (FCS 351) is studies of the computer system. My assignment for this unit is about creating a three teller machine to handle the customer that arrive at the counter. The arrival of customer is made in ways that they arrive randomly. I use fork() to create three teller and a producer that will handle the customer. All the teller communicates via semaphore. For the source code, click here

Go Down

C++ Programming Language
C++ is an object oriented language. It is based on C and Simula'67. However, C++ consist of classes and is a superset of C. The design goal for C++ is to have a better C, efficient and support data abstraction. Most of all, it support object oriented programming.

(Download not available at the moment)

Go Up | Go Down

Java Programming Language
Java is also an object oriented programming. It is created by the Sun Microsystem Company. Java is a powerful programming tool to handle information hiding and data abstraction.

(Download not available at the moment)

Go Up | Go Down

Perl Script
Perl is a scripting language and is more portable. A scripts written in PERL are not easy to interpret. PERL reads in the whole script, parses its syntax, compiles and later executes the result. PERL was designed with the idea that programmers may have different ways of approaching and solving a problem. PERL also enables object oriented programming. During my first year in Curtin, one of my assignment is to use Perl language for creating a webpages with CGI tools.

An example of the Perl codes are as below. Try run it (may not compatible with other OS other than Linux):

  1. The first example of code would scan for all image files in a html file.

  2. The second example is about creating, deleting, renaming or listing files in a directory specified by the user. Check it out

  3. Another example of forking, where the system will fork as many child as required and the parent will wait for all child to exit before terminating itself. Click here for the forking function for codes in perl language
Go Up | Go Down

Shell Script
The first shell created was bourne shell. Other types of shell are C shell, korn shell, extended c shell and lots more. Korn shell has been introduced in the mid 1980s. Shell script are languages that are special purpose rather than general purpose. Shell programs are not compiled but is executable. The error handling in shell scripts rely on trapping the error signals from the OS. I have done some basic C shell as my assignment work. I have 7 example of coding in shell. Click on the link filename to download:
  1. Example 1

  2. Example 2

  3. Example 3, or shorter code click here

  4. Example 4

  5. Example 5, or shorter code click here

  6. Example 6

  7. Example 7,or shorter code, click here

Go Up | Go Down

Povray Graphic Tool
This is a graphic tool to create images. If you like to play with 3D plane (x,y,z), this is a very nice tool to play with. I've done my assignment using this language. My assignment is about creating an underwater environment. It will generate pictures that seems to be moving as I have set the time. Note that the pictures takes up a lot of space and also you need special software to run this program.

Povray example: Creating an underwater pictures:

Go Up | Go Down

OpenGL Graphics Tool
For my second assignment in studying computer graphics, I have learn to create a 3D dimension of a plane that will change shape while moving in the plane. This language is based on C language, however, you need to add special tools in order to run this program.

Click below to download:

Go Up | Go Down

Visual Basic 6
This is a very friendly language. Anyone without programming background can learn it. I have done my final year project in advanced diploma using visual basic. My project is about creating a wholesales system for a company in Kuching. I have not save a copy of the code into another storage devices and have lost everything when my computer hardisk crashes. So, I can put the code for download into this website. However, I will try to create another simpler progam using visual basic when I have time. Please check this website from time to time.

(Download not available at the moment)

Go Up | Go Down

Lex and Yacc
Lex and yacc is a programming language to create another language. Yacc is a language to define the new program and lex is where we specify all the valid command. Basically, Yacc is a compiler that are written in a form similar to BNF (Backus-Naur Form).

Click on the link below to download example of Lex and Yacc programming:

Go Up | Go Down

HTML
HTML stands for Hyper Text Markup Language is a tool use to create website. It is nice easy to create a website using HTML rather than using JavaScript. I have created this website using HTML code. You can obtain my code for this website by clicking on the source code in the View section on top of the browser.
Go Up | Go Down

JavaScript
Take note that JavaScript and Java programming language is different!! Java is an object oriented programming while JavaScript is not. Mostly, JavaScript is used to create website.

I don't have any example of code for JavaScript programming but will try to put some JavaScript code in creating this website. So, please check this website from time to time.

Go Up


Home  | Email me  | Guessbook  | About me  | Friends and Family   | Bug Reports   
C   | C++   | Java  | Shell Script  | Perl Script  | OpenGL  | Povray  | Visual Basic  | Lex and Yacc  | HTML  | JavaScript

Hosted by www.Geocities.ws

1