VB, asp, java, sourcecode, c++, c, VB.NET

 
Please Vote for us
Click here to Vote!
Best Way to get ur books
Choose from Categories

Rapidshare Links

IT/Computer Resources

Publishers Index



Medical Books

Novels

Management/Business Books

Religious

Computer Language Books

Graphics/Animation books

Electronic Resources

Computer/OS Books

Science Books

Magazines

Miscellaneous

Complete projects to download

More To Come
Java Projects
Wednesday, June 21, 2006

ISAP is an Product developed to Web enable some the SAP Material Management Modules like Purchasing - Purchase Requisition , Purchase Order , Purchase Requisition Release,Purchase Requisition Reset Release operation over the Web. This product is to the leading application development tool for web-enabling SAP R/3. designed strictly for Internet technologies, right now ISAP leverages only fior Apache Tomcat Web Server only and allows developers to build e-Business applications that support real-time connectivity to SAP R/3 via Java, Macromedia ColdFusion, Microsoft Active Server Pages, and XML with a click of a button. With ISAP, companies can optimize the value of SAP R/3, and can do so with significantly reduced development time and cost. Available today from Me(dotcomramesh@rediffmail.com) ISAP is a must see for any company looking to incorporate SAP R/3 into their e-Business strategy. I used following BAPI for my development and i developed the Middleware Bean interfaces for the Respective BAPIS


http://www.planetsourcecode.com/vb/scripts/ShowZip.asp?lngWId=2&lngCodeId=3209&strZipAccessCode=tp%2FA32095810

Copy and paste it in your download manager
posted by Zaara @ 9:17 AM  
Source Code to Solve SuDoKu - Java
Friday, June 16, 2006
Sudoku (Japanese: 数独, sūdoku), also known as Number Place, is a logic-based placement puzzle. The aim of the canonical puzzle is to enter a numerical digit from 1 through 9 in each cell of a 9×9 grid made up of 3×3 subgrids (called "regions"), starting with various digits given in some cells (the "givens"). Each row, column, and region must contain only one instance of each numeral. Completing the puzzle requires patience and logical ability. Although first published in a U. S. puzzle magazine in 1979, Sudoku initially caught on in Japan in 1986 and attained international popularity in 2005.

Basic SudoKu Image...


To know more about SuDoKu, visit the following link..
http://en.wikipedia.org/wiki/Sudoku

Download API & Java Source code of SuDoKu here...

/******************************************************/
Program to Solve Given Basic SuDoKu
Krishnakanth. S
sonikrishnakanth@gmail.com
/******************************************************/
Output Screen

import java.io.*;
class SuDoku
{
private int numbs[][];
private int numCount[];
private boolean numFlags[];
private static int no_of_iterations=0;
private static BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
public String readInput() throws Exception{
String input = new String();
input = br.readLine();
return input;
}
public int getUserInput() throws Exception{
int input;
try{
input = Integer.parseInt( readInput() );
}
catch( Exception e ){
input = -1;
}
return input;
}
public SuDoku(){
numbs = new int[9][9];
numCount = new int[9];
numFlags = new boolean[9];

for( int i=0; i < 9; i++ ){
for( int j=0; j < 9; j++ ){
numbs[i][j] = 0;
}
numCount[i]=0;
numFlags[i] = true;
}
}
private void getNumCount(){
for( int i=0; i < 9; i++ ){
for( int j=0; j < 9; j++ ){
if ( numbs[i][j] != 0 ){
numCount[ numbs[i][j] - 1 ]++;
}
}
}
}
private boolean isSuDokuFilled(){
for( int i=0; i < 9; i++ )
numFlags[i] = true;
for( int i=0; i < 9; i++ ){
for( int j=0; j < 9; j++ ){
if ( numbs[i][j] == 0 )
{
numFlags[i] = false;
}
}
}
for ( int i=0; i < 9; i++ ){
if ( numFlags[i] == false ){
return false;
}
}
return true;
}
private int getHighCountNumber(){
int maxIndex = 0;
int temp=-1;
for( int i=0; i < 9; i++ ){
if( numCount[i] > temp &&amp;amp;amp; numCount[i] != 9 ){
temp = numCount[i];
maxIndex = i;
}
}
return maxIndex;
}
public void fillBox( int i, int j, int value ){

if( !( i>=1 && j>=1) ){
System.out.println( "Invalid Row And Column" );
return;
}
if( value <=0 || value>=10 ){
return;
}
if( numbs[i-1][j-1] != 0 ){
System.out.println( "Previous Value " + numbs[i][j] + " is Replaced By : " + value );
}
numbs[i-1][j-1] = value;
}
public void displaySudo(){
for( int i=0; i < 9; i++ ){
if( i%3 == 0 )
System.out.println();
for( int j=0; j < 9; j++ ){
if( (j%3) == 0 )
System.out.print( "\t" );
System.out.print( numbs[i][j] + " " );
}
System.out.println();
}
}
public int getNoOfIterations(){
return no_of_iterations;
}
public void fillValues( int number ){
no_of_iterations++;
boolean flag = false;
int row=0;
int col=0;
int newRow = 0;
int newCol = 0;
int rowCnt = 0;
int colCnt = 0;
int numsInBoxes[][][] = new int[9][3][3];
int numRows[][] = new int[9][9];
int numColumns[][] = new int[9][9];
boolean numInBox[] = new boolean[9];
boolean numInRow[] = new boolean[9];
boolean numInCol[] = new boolean[9];
for ( int i=0; i < 9; i++ ){
if( i%3 == 0 &&amp;amp;amp; i != 0 ){
row += 3;
col=0;
}
newRow = 0;
newCol = 0;
for( int j=col*3; j < ((col*3)+3); j++ ){
for( int k=row; k < row+3; k++ ){
numsInBoxes[i][newRow++][newCol] = numbs[k][j];
}
newRow = 0;
newCol++;
}
col++;
numInBox[i] = false;
numInRow[i] = false;
numInCol[i] = false;
}
for( int i=0; i < 9; i++ ){
for( int j=0; j < 9; j++ ){
numRows[i][j] = numbs[i][j];
numColumns[j][i] = numbs[j][i];
}
}
for ( int i=0; i < 9; i++ ){
for( int j=0; j < 3; j++ ){
for( int k=0; k < 3; k++ ){
if( numsInBoxes[i][j][k] == number ){
numInBox[i] = true;
}
}
}
}
for( int i=0; i < 9; i++ ){
for( int j=0; j < 9; j++ ){
if( numRows[i][j] == number )
numInRow[i] = true;
}
}
for( int i=0; i < 9; i++ ){
for( int j=0; j < 9; j++ ){
if( numColumns[j][i] == number )
numInCol[i] = true;
}
}
for( int i=0; i < 9; i++ ){
int rowsEmpty[] = new int[9];
int rowIndex = 0;
int colsEmpty[] = new int[9];
int colIndex = 0;
for( int aa=0; aa < 9; aa++ ){
rowsEmpty[aa] = -1;
colsEmpty[aa] = -1;
}
if( numInBox[i] ){
}
else{
for( int ro=0; ro < 3; ro++ ){
for( int co=0; co < 3; co++ ){
if( numsInBoxes[i][ro][co] == 0 ){
int oriRow = ro;
int oriCol = co;
if( i == 3 || i == 4 || i == 5 ){
oriRow += 3;
}
else{
if( i == 6 || i == 7 || i == 8 ){
oriRow += 6;
}
}
if( i == 1 || i == 4 || i == 7 ){
oriCol += 3;
}
if( i == 2 || i == 5 || i == 8 ){
oriCol += 6;
}
rowsEmpty[rowIndex++] = oriRow;
colsEmpty[colIndex++] = oriCol;
}
}
}
for ( int kk=0; kk < rowsEmpty.length; kk++ )
{
if( rowsEmpty[kk] != -1 ){
if( numInRow[ rowsEmpty[kk] ] ){
rowsEmpty[kk] = -1;
colsEmpty[kk] = -1;
}
}
if( colsEmpty[kk] != -1 ){
if( numInCol[ colsEmpty[kk] ] ){
rowsEmpty[kk] = -1;
colsEmpty[kk] = -1;
}
}
}
int count = 0;
int preRow = -1;
int preCol = -1;
for ( int kk=0; kk < rowsEmpty.length; kk++ )
{
if( rowsEmpty[kk] != -1 && colsEmpty[kk] != -1 ){
preRow = rowsEmpty[kk];
preCol = colsEmpty[kk];
count++;
}
}
if( count == 1 )
numbs[preRow][preCol] = number;
}
}
}
public void completeSudoku(){
getNumCount();
while( !isSuDokuFilled() ){
for( int ad=1; ad <=9; ad++ )
fillValues( ad );
if( no_of_iterations >= 1500 ){
System.out.println( "\nIts Very Complicated SuDoKu " );
break;
}
}
}
public static void main(String[] args)
{
SuDoku s = new SuDoku();
int row, col, value;

boolean inputEntry = true;

System.out.println( "Enter the values in Sudoku ,, Format : Row < Enter> Column < Enter> Value < Enter>" );

while( inputEntry ){
try{
System.out.print( "Row : " );
row = s.getUserInput();
System.out.print( "Column : " );
col = s.getUserInput();
System.out.print( "Value : " );
value = s.getUserInput();

if( row >= 1 && row <= 9 &&amp;amp;amp; col >= 1 && col <= 9 &&amp;amp;amp; value >= 1 && value <= 9 )
s.fillBox( row, col, value );
else
System.out.println( "Invalid Entry" );

System.out.print( "Do You Want To Enter More Elements (Y/N) : " );

String choice = s.readInput();

if( choice.startsWith( "n" ) || choice.startsWith( "N" ) )
inputEntry = false;
}catch( Exception e ){}
}
String clear = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
System.out.println( clear );

System.out.println( "\n\n\tQuestion ??? " );
s.displaySudo();

s.completeSudoku();

if( !(s.getNoOfIterations() >= 1500) ){
System.out.println( "\nRequired " + s.getNoOfIterations() + " Iterations to Solve \n\n" );
System.out.println( "\tSolution " );
s.displaySudo();
}
}
}
posted by Zaara @ 11:43 AM  
Things That Java Does Not Have (Help)
The inventors of Java were C/C++ programmers, and they made conscious decisions to leave out most of the C/C++ features that get programmers into trouble. Not you of course, you are a great programmer and you never make mistakes and your code is wonderful. It's your dumb, lazy, careless coworkers I'm talking about here.

Java has no global variables or functions

Of course you've heard that global variables are evil, but maybe you never really bought into it. You made a variable global "for now" and never got back to making it local. Or you have a variable (probably named something like "DEBUG") that's referenced just about everywhere, so it needed to be global.

Every Java variable is part of some class, so you'll have to change your ways, and you'll feel a lot better about yourself. Looking for the abs() function? It must be in the Math class. Where is "stdin" defined? It's a public static field in the "System" class. Trying to find "atoi()"? Umm...ok, there it is: Integer.parseInt().

Java has no pointer and address operators

That's right, no more "*person" and no more "&person". How about we just use "person" everywhere? Really! Things are much simpler that way.

Java has no "struct" or "union"

A class is a bunch of variables and methods ("method" is just the object-oriented term for "function"). So why do we need a "struct"? It's just a class that happens to have no methods. And a union to save data of one type or another at a single location? That's what subclasses are for. If you don't know what a subclass is yet, don't worry: it's a basic OO concept, and you'll learn it as you learn Java.

Java has no pre-processor and no macros

What do you use your pre-processor for? Let's see...
  • You define your "structs" there, but structs are gone now.
  • You define TRUE and FALSE, but Java has the boolean type built-in.
  • You define some simple function-like macros that are really hard to read and should probably just be functions, but you wanted to save a few milliseconds at runtime when your application ran on a 80286 processor. You're past that now.
  • You have lots of "#ifdefs" to handle various compilers, various Operating Systems, and various hardware. Java takes care of all those inconsistencies for you. "Write Once, Run Anywhere", as they say.

Java does not have "unsigned" types

Was it really worth the two seconds of effort for you to type "unsigned" when you knew your int should never be negative? Was it really worth the savings of two bytes of runtime memory out of the 20 million bytes that your program uses? It's possible, but I doubt it.

Java has no bitfields

Again, do we really need to have the ability to specify a particular number of bits that you need to save a few bits in memory? If you need a one-bit value, use the "boolean" primitive type in Java. If you have a two-bit field, shouldn't you really be using an "enum" anyway and clearly specify what those values are? Please, go back to concentrating on your application and don't worry excessively about wasted bits.

Java has no operator overloading

Ah, yes, operator overloading. The previous developer was so cute to have written:
x = person1 + person2;
The problem is, you don't know what it means to "add two people together". Are you adding their ages? Are they getting married or something perhaps more intimate? In fact, now that you think about it, does "+" really mean much of anything except to add two numbers? OK, ok, let's assume it means to concatenate two Strings together, but that's it. No operator overloading. Just say:
 "person1.marry(person2)"
...using an appropriate method name.

Java has no comma operator

Do we really need this operator in a language? Nah.

Java has no goto statement

You knew this was coming! The "Gotos Considered Harmful" discussion has been going for 35 years now. We're all grownups here. We all know you can write nice code without gotos, and in the very rare case where the code might be a little nicer where we need to break out of a particular nested loop, we can do it. Goto is dead. Long live goto.

Java has no function pointers

The syntax for function pointers is just plain ugly. You can do the same thing in Java, in a cleaner way, using Reflection. For example:
 Method method = Person.class.getMethod("getAddress", null);
// invoke the "getAddress()" method on object "joe"
Object address = method.invoke(joe, null);

Java has no enums

Now how am I going to put a positive spin on Java's lack of a "enum" type? Well, I can't. I wish Java had an enum. But of course, you can make do by defining your own class, and get all the compile-time type-checking that you'd like:
class MarriageStatus {
public static final MarriageStatus SINGLE = new MarriageStatus();
public static final MarriageStatus MARRIED = new MarriageStatus();
public static final MarriageStatus DIVORCED = new MarriageStatus();
}

Java has no "varargs"

There's no need for this "varargs" stuff. If you have a set of fields that you tend to pass around together, put them together into a class and pass an instance of the class around. If you have a function that works on a list of objects (and the list can be any length) then just pass a List object.

Java does not allow multiple inheritence

It's surprising but true: multiple inheritence is way overrated. Sure, you can think of examples where it seems like you'd want multiple inheritence, but in the real world, it's very rare that you want to inherit behaviour from more than one superclass. More often, multiple inheritence is used where a Java interface would be better suited. Say I'm the database guy, and I write a bunch of functions that you call to access the database. How do we formally agree on what functions I provide? I know what you're thinking: I write a superclass that lists all the functions, and then I subclass it and you create an instance and call the methods. That's how it's usually done in C++, but that's not a good way to do it. You shouldn't care what my class is a subclass of, all you should care about is that I have implemented a certain set of methods. That's what an interface is: a list of methods that can be called. In Java, we write an interface (which is just a list of method signatures). I implement the interface, and you call the methods. Trust me, you'll be pleasantly surprised that you don't really need multiple inheritence in the few places where you think you do.
posted by Zaara @ 11:40 AM  
The FriendShip Calculator


Welcome to this great invention of Doctor Friend!

We all know that a name can tell a lot about a person. Names are not randomly chosen: they all have a meaning.
Doctor Friend knew this so he made another great invention just for the lonely you!

Sometimes you'd like to know if a relationship with someone could work out. Therefore Doctor Friend himself designed this great machine for you. With The Friendship Calculator you can calculate the probability of a successful relationship between two people. The Friendship Calculator is an affective way to get an impression of what the chances are on a relationship between two people.

This is just a fun application. Dont take it seriously.

Note: This is a funny logic in this testing if this example has caused any problems, please excuse me its only meant for fun!

Download API & Java Source Code For Friendship Calc here....

/**************************************************************************/
Java Program - Friendship Calculator
Author@ Krishnakanth Soni


Posted By shahid Siddique */**************************************************************************/

Output Screen

import java.util.*;

class FriendShip
{
private String name1;
private String name2;

public void setFirstName( String name1 ){
this.name1 = name1.toUpperCase();
}

public void setSecondName( String name2 ){
this.name2 = name2.toUpperCase();
}

public void setNames( String name1, String name2 ){
this.name1 = name1.toUpperCase();
this.name2 = name2.toUpperCase();
}

private Vector getCount(){
Vector list = new Vector();
String friendShip = "FRIENDSHIP";
String name1 = this.name1;
String name2 = this.name2;
for( int i=0; i<name1.length(); i++ ){
String temp = name1.charAt(i) + "";

if( list.contains(temp) ){
int indexOfElement = list.indexOf( temp );
int prevCount = Integer.parseInt( list.get(++indexOfElement).toString() );
prevCount++;
String newCount = (prevCount) + "";
list.set( indexOfElement, newCount );
continue;
}

list.add( temp );
list.add( "1" );
}

for( int i=0; i<name2.length(); i++ ){
String temp = name2.charAt(i) + "";

if( list.contains(temp) ){
int indexOfElement = list.indexOf( temp );
int prevCount = Integer.parseInt( list.get(++indexOfElement).toString() );
prevCount++;
String newCount = (prevCount) + "";
list.set( indexOfElement, newCount );
continue;
}

list.add( temp );
list.add( "1" );
}

for( int i=0; i<friendShip.length(); i++ ){
String temp = friendShip.charAt(i) + "";

if( list.contains(temp) ){
int indexOfElement = list.indexOf( temp );
int prevCount = Integer.parseInt( list.get(++indexOfElement).toString() );
prevCount++;
String newCount = (prevCount) + "";
list.set( indexOfElement, newCount );
continue;
}

list.add( temp );
list.add( "1" );
}

Vector result = new Vector();

for( int i=1; i<list.size(); i+=2 ){
result.add( list.get(i) );
}

//System.out.println( result );
return result;
}

public int getFriendShipPer(){
Vector count = getCount();
if( count.size() == 1 ){
String result = count.get(0).toString() + "";
return Integer.parseInt(result);
}

if( count.size() == 2 ){
String result = count.get(0).toString() + count.get(1).toString();
return Integer.parseInt(result);
}

do{
Vector sub = new Vector();
int size = count.size() / 2;
//System.out.println( count.size() / 2 );
for( int i=0; i<size; i++ ){
String newC = ( Integer.parseInt( count.get(i).toString() ) + Integer.parseInt( count.get( count.size() - 1 - i ).toString() ) ) + "";

if( newC.length() == 2 )
{
sub.add( (newC.charAt(0) + "") );
sub.add( (newC.charAt(1) + "") );
}else{
sub.add( newC );
}
}

if( (size*2) != count.size() )
sub.add( count.get(size) );

count = new Vector();
count = sub;
//System.out.println( count );
}while( count.size() != 2 );

String result = count.get(0).toString() + count.get(1).toString();
return Integer.parseInt(result);
}

public int getFriendShipPer( String name1, String name2 ){
String temp1 = this.name1;
String temp2 = this.name2;

setNames( name1, name2 );
int fPercentage = getFriendShipPer();
setNames( temp1, temp2 );

return fPercentage;
}

public String toString(){
String result = "[ Friendship Percentage Between " + this.name1 + " And " + this.name2 + " is " + getFriendShipPer() + "% ]";
return result;
}

public static void main(String[] args)
{
//System.out.println("Hello World!");
FriendShip fs = new FriendShip();
if( args.length == 2 ){
fs.setNames( args[0], args[1] );
System.out.println( "\n" + fs.toString() + "\n" );
System.exit(0);
}else{
System.out.println( "\nUse With Proper usage, Find a sample FREINDSHIP Below\n java FriendShip name1 name2 \n" );
}
fs.setNames( "krishna", "radha" );
System.out.println( "\n" + fs.toString() + "\n" );
}
}


posted by Zaara @ 11:33 AM  
The Love Calculator !!!!
import java.util.*;

class Love
{
private String name1;
private String name2;

public void setFirstName( String name1 ){
this.name1 = name1.toUpperCase();
}

public void setSecondName( String name2 ){
this.name2 = name2.toUpperCase();
}

public void setNames( String name1, String name2 ){
this.name1 = name1.toUpperCase();
this.name2 = name2.toUpperCase();
}

private Vector getCount(){
Vector list = new Vector();
String love = "LOVE";
String name1 = this.name1;
String name2 = this.name2;
for( int i=0; iString temp = name1.charAt(i) + "";

if( list.contains(temp) ){
int indexOfElement = list.indexOf( temp );
int prevCount = Integer.parseInt( list.get(++indexOfElement).toString() );
prevCount++;
String newCount = (prevCount) + "";
list.set( indexOfElement, newCount );
continue;
}

list.add( temp );
list.add( "1" );
}

for( int i=0; iString temp = name2.charAt(i) + "";

if( list.contains(temp) ){
int indexOfElement = list.indexOf( temp );
int prevCount = Integer.parseInt( list.get(++indexOfElement).toString() );
prevCount++;
String newCount = (prevCount) + "";
list.set( indexOfElement, newCount );
continue;
}

list.add( temp );
list.add( "1" );
}

for( int i=0; iString temp = love.charAt(i) + "";

if( list.contains(temp) ){
int indexOfElement = list.indexOf( temp );
int prevCount = Integer.parseInt( list.get(++indexOfElement).toString() );
prevCount++;
String newCount = (prevCount) + "";
list.set( indexOfElement, newCount );
continue;
}

list.add( temp );
list.add( "1" );
}

Vector result = new Vector();

for( int i=1; iresult.add( list.get(i) );
}

//System.out.println( result );
return result;
}

public int getLovePer(){
Vector count = getCount();
if( count.size() == 1 ){
String result = count.get(0).toString() + "";
return Integer.parseInt(result);
}

if( count.size() == 2 ){
String result = count.get(0).toString() + count.get(1).toString();
return Integer.parseInt(result);
}

do{
Vector sub = new Vector();
int size = count.size() / 2;
//System.out.println( count.size() / 2 );
for( int i=0; iString newC = ( Integer.parseInt( count.get(i).toString() ) + Integer.parseInt( count.get( count.size() - 1 - i ).toString() ) ) + "";

if( newC.length() == 2 )
{
sub.add( (newC.charAt(0) + "") );
sub.add( (newC.charAt(1) + "") );
}else{
sub.add( newC );
}
}

if( (size*2) != count.size() )
sub.add( count.get(size) );

count = new Vector();
count = sub;
//System.out.println( count );
}while( count.size() != 2 );

String result = count.get(0).toString() + count.get(1).toString();
return Integer.parseInt(result);
}

public int getLovePer( String name1, String name2 ){
String temp1 = this.name1;
String temp2 = this.name2;

setNames( name1, name2 );
int lPercentage = getLovePer();
setNames( temp1, temp2 );

return lPercentage;
}

public String toString(){
String result = "[ Love Percentage Between " + this.name1 + " And " + this.name2 + " is " + getLovePer() + "% ]";
return result;
}

public static void main(String[] args)
{
//System.out.println("Hello World!");
Love love = new Love();
if( args.length == 2 ){
love.setNames( args[0], args[1] );
System.out.println( "\n" + love + "\n" );
System.exit(0);
}else{
System.out.println( "\nUse With Proper usage, Find a sample FREINDSHIP Below\n java FriendShip name1 name2 \n" );
}
love.setNames( "krishna", "radha" );
System.out.println( "\n" + love + "\n" );
}
}


Download API & Java Source Code For Love Calc here....
posted by Zaara @ 11:27 AM  
Housie, Tambola, Bingo Source Code - ( Digitalized )


Housie is a gambling game played in New Zealand, Australia, and Northern Britain (Southern Britain call it Bingo), where players mark off numbers on a ticket as they are randomly called out. It is very similar to the American game Bingo, however the tickets and the calling are slightly different.

A typical housie ticket is shown to the right. It contains fifteen numbers, arranged in nine columns by three rows. Each column contains either one, two, or very rarely three, numbers. The first column contains numbers from 1 to 9, the second column numbers from 11 to 19, the third 20 to 29 and so on up until the last column, which contains numbers from 80 to 90, the 90 being placed in this column as well). When players first come to the venue (often a church hall, rugby club or other place with sufficient tables and chairs) they must buy tickets or book of tickets. A book usually contains fifty tickets which are played over the course of the night. Players generally play between one and six books. At many venues, special "Super Housie" tickets, usually with much larger prizes, are also played at various times throughout the session. The game is presided over by a caller, whose job it is to call out the numbers and check winning tickets. He will announce the prize or prizes for each game before starting. The two ways of winning a prize are:
  • Full House - covering all fifteen numbers on the card.
  • Line - covering a horizontal line of five numbers on the card. In bonus (Super Housie) games, often three lines may be claimed - top, middle and bottom.

The caller will then say "Eyes down" to indicate that he is about to start. He then begins to call numbers as they are randomly selected, either by an electronic device or by drawing counters from a bag. The calling is generally very fast, with generally one number called per second, can be customized ( 5 seconds ).

As each number is called, players check to see if that number appears on their tickets. If it does, they will mark it.When all the numbers required to win a prize have been marked off, the player calls out "Line" or "House" depending on the prize, and an official will come and call out the numbers on the ticket. The caller will check to see if each number has been called, and if it has, he will say "House correct - please pay out". if not correct, he will say "Bogus..", and ticket is no more useful.

Business of Housie:

In New Zealand and Australia, housie is often used a fundraiser by churches, sports teams, and other groups, and raffles are sold before the game.

Housie or Bingo is an expanding and highly profitable business in the UK, with many companies competing for the customers' money.

These been.

  • Gala Bingo Clubs
  • Mecca Bingo Clubs

As well as offering the familiar Housie/Bingo played by marking numbered books, most large clubs have their tables modified for the playing of cash housie. (Coin slots.) This is highly profitable for the operator, with a typical "take" of fifty percent of the stake.

Caller Slang:

When calling, the caller will usually say both digits on their own first, and then the number itself, for example, three-two, thirty-two. Some callers will use many of these slang terms, others just a few. However, "Kelly's Eye", "Legs Eleven" and "Top of the Shop" are often used, even if none of the others are.

  • Number 1 is "Kelly's Eye".
  • A number between 1 and 9 is called "Number 1, on it's own".
  • Number 10 is "One-oh, Dowling Street".
  • Number 11 is "All the ones, legs eleven".
  • Number 12 is "One-two, just the doz".
  • Any number ending in a zero (20, 30, 40 etc) is called "Two-oh, blind twenty".
  • Any number consisting of two identical numerals (22, 33, 44 etc) is "Twenty-two, all the twos".
  • Number 45 is "Halfway there".
  • Number 69 is "Dinner For Two Sixty Nine"
  • Number 88 is "Two Fat Ladies Eighty Eight
  • Number 90 is "Top of the Shop".
Reference: http://en.wikipedia.org/wiki/Housie

Now, my Work of Getting Housie Going:

Following are some of the outputs of the Thamboa Program, Have a look of it...

Download Free Java Source Code For Thambola here....

Caller's Board

Displaying Finished Numbers

Generating Tickets

Currently working on making this Thambola Game available online ...


Give feedback to improve :)
posted by Zaara @ 11:25 AM  
New Clock Field in Java !!
Visit http://source-codes.blogspot.com/ for more programmes like, Thambola, Housie, Love Calculator, Friendship Calculator, FLAMES, Animations, Digital Number, Sudoku.java, Clock Field. - Java.



This is new Java Field just like other, TextField, labels or any UI objects. This Clock field extends the JLabel component and has all the functionality of a label with added functionality of displaying the time in different fashions like

HH:MM:SS AM/PM LOCALE
HH:MM AM/PM
HH:MM:SS AM/PM
HH:MM ( 24hr Clock )
HH:MM:SS ( 24hr Clock with Seconds )

As it is extended from JLabel, we can change the font, size of the label, background, foreground and etc. etc.

Its usage is also very simple like JLabel, creating an object of ClockField and adding it to the Panel in the UI, and setting its bounds ( to place it at our convinient place ).

To start the clock tickering, just call the function "showClock" of ClockField.

Now it Starts...

Download the ClockField.java and Test.java Source code for free here..

To Test the Program, Read the ReadMe.txt given with Sourcecode.

Below are some screen shots depicting the above explanation :P

Different Clock Styles
HH:MM:SS AM/PM LOCALE Started.All Different Styles of Displaying Started...

Give Feedback for Improvement.

posted by Zaara @ 11:11 AM  
c++ Programs
Generic Console programs

Fraction
Example program to add and reduce fractions.



Fraction
A Fraction class that has the ability to add, subtract, multiply, divide and show various statistics of the fraction.



Triangle
Small program for beginners demonstrating the use of loops and iostream + iomanip libraries.



Master String
This is a collection of functions, and classes that will aid you in very explicit string manipulation.



Encrypt
Encrypts/Decrypts a piece of text using vigenere algorithm.



Rectangle
A simple program demonstrating tokenizing by drawing a rectangle.



Bynary convert
A simple program that converts a string into its binary representation.






Windows programs


Winnie
A small program that shows one of the fundamentals of Windows programming: How to create a window.



SDI Frame
A basic framework for Single-Document-Interface applications.



BMP Loader
Example on how to load a BMP File.


GIF View
Example on how to load and display animated GIF and BMP Files.



CWinTcpSocket
C++ Winsock wrapper class.



Master Library
Header file containing a lot of C++ functions. Over 6,000 lines of code with code ranging from DirectX to Winsock. Good resource for windows C++ programming (Visual C++ project files).


MasterKong 2D Level editor
A 2D DirectX video game which plays around with a few different concepts. Contains graphics,sounds,tilemap,ai,projectiles, level editor and more (Visual C++ project files).



Win32 Example
Basic intro Windows API, with multiple windows (Visual C++ project files, using C).



Win32 Example (II)
Basic intro Windows API, controls, menu (Visual C++ project files).
Jared Bru


URL Downloader
This is a simple application that allows you to download a file from a web page (Visual C++ project files).




Basic Direct 3D 8
Basic intro Direct3D8, sets up the window and draws a few things (Visual C++/DirectX project files).



Tank 3.0 Beta
Beta version of a direct3d game that the author is programming at the

HWPrint
Example program to demonstrate printing using Win32 API.




MS-DOS programs

Notepad
Text editor.
posted by Zaara @ 10:43 AM  
Programming Blog
tHIS BLOG i HAVE CREATED FOR PROGRAMMING AND I WILL POST ALL MY PROGRAMMS WHICH WILL BE HIGH LEVEL ....
posted by Zaara @ 10:27 AM  
Affilates
Free projects
Powered by

Free Blogger Templates

BLOGGER

© 2005 VB, asp, java, sourcecode, c++, c, VB.NET by Shahid Siddique