Got a tricky question? Receive an answer from students like you! Try us!

Java Program ShopKeeper - Essay Example

Only on StudentShare
Author : millermay


This java project is made by using Java2SDK 1.4.2 but the program can be interpreted by any version of J2SDK from 1.2 to higher. The project contains following classes, which are described briefly along with their functionality.
1. Item class: This class is capable of holding item name, quantity, price and have setter setter and getter methods for storing and retrieving correct data in these instance variables…

Extract of sample
Java Program ShopKeeper

Some utility methods like getStockValue() and getNeededItems() are also there to return the over all value of the stock and the list of needed items respectively.
3. ShopKeeper class: This class gives the overall graphical user interface to the client so that the client can access both StockTake and Item classes in order to manipulate Items. This class uses some more user-defined classes to construct the GUI. The classes are:
Download paper

Related Essays

ARM Processors
These chips or this technology, in particular, is used by multiple manufacturers to develop specialized microprocessors. "The ARM chip has become one of the most used CPU designs in the world, found in everything from hard drives, to mobile phones, to routers, to calculators, to children's toys. Today it accounts for over 75% of all 32-bit embedded CPU's" ("ARM Processing", np). Prominent companies using this technology include: Texas Instruments, Nintendo, Philips, Sharp, and IBM.…
4 pages (1004 words)
Object Database Management System
There are two most important factors that lead users to implement object database technology. Firstly, relational databases turn out to be cumbersome to use with composite data. Secondly, data is usually operated by application software written using object-oriented programming languages such as C+, Java, Delphi and C#, and the code required translating between this demonstration of the data and the tuples of a relational database can be dreary to write, and prolonged to execute. This variance between the models used to represent information in the application programs and the database is…
9 pages (2259 words)
Java programs
The application then turns to user mode. It asks the number of tickets purchased. Based on the number entered it asks for the ticket numbers. Another file called 'UserFile.txt' is created that holds all the numbers entered by the user. The numbers are then checked against the winning number and appropriate results are announced. The application then asks if another user wants to try his own. The loop continues until 'n' is typed indicating end of application.
2 pages (502 words)
Internet Chat System
It has methods that allow read and write byte streams through the socket. TCP/IP server applications rely on a networking class provided by Java, This class takes most of the work out of establishing a server. ServerSocket allows you to bind a port and wait for clients to connect, setting up a complete Socket object at that time. After communications are complete with the client, the server must close the streams and then close the Socket instance.…
18 pages (4518 words)
Java Programming
Here we have used the access specifier as public which tells us that the class can be accessed anywhere in the program. In the same line we have used the concept of Inheritance, which is the process by which one object acquires the properties of another object. By the use of extends keyword we inherit all the functionality provided in the class JFrame, which is used to create a frame using Swings. Further we implement the interface ActionListener using the implements keyword. By interface we mean that we can specify what a class must do, but now how it does it. Here we have implemented the…
6 pages (1506 words)
Java Programming Essay
In the second screenshot, a loop has been created so that the car object drawn in the first task is repeatedly produced in a line. Also a rectangle is drawn to indicate the presence of road below the cars.…
4 pages (1004 words)