Banner Ad

    A    L    W    A    Y    S           D    E    S    I    R    E           T    O           L    E    A    R    N           S    O    M    E    T    H    I    N    G           U    S    E    F    U    L   

Technology and business

technology and business are becoming inextricably interwoven. I don't think anybody can talk meaningfully about one without the talking about the other

Arthur C. Clarke

Any sufficiently advanced technology is indistinguishable from magic.

Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions.

Softwares

Defect-free software does not exist.

Technology is like a fish. The longer it stays on the shelf, the less desirable it becomes.

Wednesday, February 20, 2013

Algorithm Simulator

Objective:

The objective of this assignment is to develop a simulator for at least two algorithms that you are familiar with

You can use any programming language for the simulator development. The simulator should work as a e-learning tool for beginners to the algorithm field. User should be able to upload input values to the system and it should simulate each line execution of the algorithm.

etc..................

Click here (.pdf) to download  assignment


2nd year 2nd semester (SLIIT)  we had been ask to create software to simulate Algorithms for Design and Algorithms course unit.
In this case i had chosen following 3 Algorithms  to simulate
1.) Bubble Sort
2.)Insertion Sort
3.)Selection Sort

language   :  Java
IDE  used :  Netbeans
Mainly i  used java swing and threads to develop this software 

Click here (Swing project) to download the software with source code



Main Window



                      This how initial window look  like and you have to enter 10 digits to load array





After load data successfully system will give a massage
Now you can see how does this Algorithm works





Insertion Sort simulator



Bubble Sort Simulator



Selection Sort simulator 



And you can also see execution time of particular Algorithms
in the text box you have to give array size then the system will generate random array
Array size should be 10,000-150,000
time of execution is shown in a status bar so we can compare Algorithms and make our conclusion
Actually in this case insertion sort is the fastest
Finally we can get some statistic about these 3 algorithms form this software






                                     This software is for educational purpose only








Room reservation system

1st year 2nd semester (University of Sri Jayawardenapura Computer Programming – Laboratory)
For our vacation  we had been given to make a software to reserve rooms and Halls.
In this case it is not specified whether we have to do GUI base application or console one but i have chosen to make GUI base application to do given assignment

Abstract
Final Assignment
Start Date : 4th January 2013
Due Date : 5th February 2013
“Coral Rest” is a hotel situated in Hikkaduwa which provides services to Sri Lankans. This hotel has 50 bedrooms which include 10 single rooms, 25 double rooms and 15 triple rooms and 5 reception halls.
Room numbers 1 to 10 are single rooms, numbers 11 to 35 are double rooms and numbers 36 to 50 are triple rooms.
A customer could request for any number of rooms for one or more days. According to the customer’s request they allocate the first available room(s).
etc........................

Click here( .pdf) to view full problem specification

Most important thing is we have to handle data in text file, so in this system all data and information handle in Text file at a glance it really look tough work but when you get in to it its very simple

Click here (project)  to download the software with source code
Programming language   : java
IDE :   Netbeans

Screen shots and details about the system



Main window Interface




This is the main window when user  going to see first
It contains links to
v  Reserve room
v  Reserve reception Hall
v  Check room bill
v  Hand over reception hall and calculate charges
v  List of occupant bedrooms
v  List of vacant bedrooms
v  List of occupied reception halls
v  Exit from the software

 

Reserve Room




IF user wants to reserve room he has to enter
1.      NIC
2.      Number of days
3.      Date : Date format must be (DD/MM/YYYY)
4.      And Room type will be given by the system user has to choose one
5.      Room category will be given by the system user has to choose one

If reservation can be done system will popup massage “Reservation Successful”




When rooms not available



IF there’s no single room’s available system will popup massage telling
“Reservation cannot be done, Single rooms not available”

IF there’s no double room’s available system will popup massage telling
“Reservation cannot be done, Double rooms not available”

IF there’s no Triple room’s available system will popup massage telling
“Reservation cannot be done, Triple rooms not available”



Reserve Hall


 

User has to enter
1.      NIC
2.      Date (Date format must be DD/MM/YYYY)
3.      Capacity of the hall will be given by the system user has to choose one

Text Area will automatically updated with user activities
After clicking reserve button,
IF all the data insertion going well system will popup massage “Reservation Successful”


When user going to book already reserved Hall



IF user going to book already reserved Hall
He will popup massage “Already reserved” (In this case hall name and date is compared in order to check availability)

 

Room Bill



All the room numbers customer involved will loaded to combo box automatically
Whenever user choose user room number from the combo box all the details of the particular room will be displays in the text area,
If user wants update particular room he has to press Update this room button
then room array will be reset accordingly

 


After updating the room



After updating the Room number system will popup massage “Room now available update of data successful”
“Room.txt” will updated accordingly

 

 

 Hand over the reception hall



Data of the hall will be automatically load into combo box, data include hall name and date together
Whenever user select particular item from the combo box
details of the hall will be generated in the Text Area including total payable





 Room Numbers Auto loading function to combo box



Rooms numbers automatically loaded in to combo box




Updating the hall



After Updating hall user system will notify “Hall now available update is successful”
Hall.txt will be updated accordingly




 List of occupant bedrooms



Details of occupied bed rooms will be displayed here including all the details appropriately




List of vacant bedrooms



List of vacant bedrooms will be displays here; user can see the available bed rooms here




 List of occupied reception Halls



List of all the occupied reception halls including reserved date will be display here





Related Posts Plugin for WordPress, Blogger...

your comments