Java Celestial Volume Calculator: Earth and Sun Volumes Comparison
This Java program calculates and displays information about the volumes of the Earth and the Sun. It also show the ratio of their volumes.
Read MorePosted by M. Saqib | Sep 9, 2008 | Java: Java Programming Concepts |
This Java program calculates and displays information about the volumes of the Earth and the Sun. It also show the ratio of their volumes.
Read MorePosted by M. Saqib | Sep 9, 2008 | Java: Java Programming Concepts |
The following Java program shows the Zodiac sign corresponding to a given date. This little program can be used to find your Zodiac sign if you input your date of birth.
Read MorePosted by M. Saqib | Sep 9, 2008 | Java: Java Programming Concepts |
The Blackjack game written in Java provides a graphical user interface (GUI) for players to enjoy a simplified version of the classic card game. Upon starting the game, players are dealt an initial set of two cards each, and the goal is to build a hand with a total value as close to 21 as possible without exceeding it. The game features a deck of standard playing cards, including numbered cards, face cards (King, Queen, Jack), and Aces, each contributing their respective values to the hand.
Read MorePosted by M. Saqib | Sep 9, 2008 | Java: Java Programming Concepts |
The Java code implements a simple graphical application that visually represents and counts blobs within a grid by using recursion. A blob is a group of adjacent filled squares in the grid. The application uses Java Swing for creating the graphical user interface (GUI) components. It includes buttons for generating a new set of blobs, counting the number of blobs, and a grid where users can click to get information about the blob size at that specific position. This Java code uses recursion in the getBlobSize method to calculate the size of a blob.
Read MorePosted by M. Saqib | Sep 9, 2008 | Java: Java Programming Concepts |
This is a Java source code for a simple graphical application that demonstrates how to use various types of borders in Swing, a Java GUI toolkit. The program defines a class BorderDemo that extends JApplet, a Swing component used for embedding a Java application in a web page or other container.
Read MorePosted by M. Saqib | Sep 9, 2008 | Java: Java Programming Concepts |
This Java Code supports two-way chatting between users. It implements a client for the ConnectionBroker server, which can set up a relayed connection between a pair of such clients. There are really two functions: The user can register with the server as a client who is willing to accept a connection, or the user can make a connection with one of the clients who is waiting on the server. The code retrieves and displays a list of waiting clients when it starts. There is a Refresh button that the user can click to refresh this list (since the list of waiting clients can change from time to time).
Read MorePosted by M. Saqib | Sep 9, 2008 | C++ Source Code: C++ Programming Concepts |
This is a simple C++ program to make a car race game. It uses object oriented approach to generate different objects in the game such as using Car, Obstacle and Timer classes.
Read MorePosted by M. Saqib | Sep 9, 2008 | C++ Source Code: C++ Programming Concepts |
This is a very basic C++ program that demonstrates data protection in a very simple way. Data protection in Object Oriented Programming is controlling access to all attributes is one of the most important concepts of object-oriented design
Read More