Nobody downloaded yet

Java Program ShopKeeper - Essay Example

Comments (0) Cite this document
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…
Download full paperFile format: .doc, available for editing
GRAB THE BEST PAPER97.1% of users find it useful
Java Program ShopKeeper
Read TextPreview

Extract of sample
"Java Program ShopKeeper"

Download file to see previous pages 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:
a. ShopKeeperDesktopManager class: This class helps to create multiple document interface environment.
b. InsertItemFrame class: This class makes a child window for insert Item information.
c. NeededItemFrame class: This class makes a child window for displaying the list of needed items whose quantity is zero.
Source codes of all the classes are given along with their file names.
import javax.swing.*;

public class Item
String iName;
int iQty;
double iPrice;
public Item(String iName)
public Item(String iName,int iQty,double iPrice)
public void setIName(String iName)
public String getIName()
return iName;
public void setIQty(int iQty)
if(iQty>=0) this.iQty=iQty;
else JOptionPane.showMessageDialog(null,"Qty cannot be -ve","Check Qty",JOptionPane.ERROR_MESSAGE);
public int getIQty()
return iQty;
public void setIPrice(double iPrice)
if(iPrice>0) this.iPrice=iPrice;
else JOptionPane.showMessageDialog(null,"Price cannot be -ve or zero","Check Price",JOptionPane.ERROR_MESSAGE);

public double getIPrice()
return iPrice;
public double getValue()
return iPrice*iQty;
public String toString()
return "[Item: "+iName+";Price: "+iPrice+";Quantity: "+iQty+";Value: "+getValue()+"]";
public class StockTake
Item itemsArray[];
int arrSize;
int itemCount;
public StockTake(int arrSize)
itemsArray=new Item[arrSize];
itemsArray=new Item[50];
public Item[] getItemsArray()
return itemsArray;
public boolean addItem(Item i)
if(itemCount ...Download file to see next pagesRead More
Cite this document
  • APA
  • MLA
(“Java Program ShopKeeper Essay Example | Topics and Well Written Essays - 1000 words”, n.d.)
Retrieved from
(Java Program ShopKeeper Essay Example | Topics and Well Written Essays - 1000 Words)
“Java Program ShopKeeper Essay Example | Topics and Well Written Essays - 1000 Words”, n.d.
  • Cited: 0 times
Comments (0)
Click to create a comment or rate a document
Java zone
The writer liked coffee, making him curious of what goes in the major plantations. The original habitat of coffee was in Ethiopia but since Nicaragua and other countries shares some similar conditions with
1 Pages(250 words)Essay
Java Technology
It was first known as oak, then Green and later Java, which was after the coffee that was consumed in bulk while in the process of developing the language. Gosling, Sheridan, and Naughton were the developers and required implementing a language that was similar
3 Pages(750 words)Essay
Java Programming
In the line no 28, I have defined a class which is the basis of encapsulation in JAVA. Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse. As we look at the line no 28 we find the syntax of the class as
6 Pages(1500 words)Essay
Java Programming Essay
The first objective of the task thus is in creating an object that is composite with some shapes available. The next objective is to enhance the code so that many composite objects can be included efficiently in terms of time and space. The last objective is to demonstrate the animation capabilities available through the package.
4 Pages(1000 words)Essay
Java Game Programming, any future
In a study conducted in US, it was found that more than 50 percentages of the developers prefer Java in developing applications and this figure is constantly rising. There are several reasons that could be cited for this advancement. Java is a widely used language due to its numerous advantages.
15 Pages(3750 words)Essay
Java programs
2 Pages(500 words)Essay
Java applets and JavaScript scripts
An applet is a java program that must be run from another program, which is acknowledged as its host program. Normally, web browsers such as Netscape’s Communicator or Microsoft Internet Explorer are used to run the applets. The expression
3 Pages(750 words)Essay
Java Card
The high connectivity that makes the world a global village has resulted in spontaneous emergence of electronic businesses which have opened up new avenues of commerce and access to a wider market. Technologies such as the smart card have significantly
11 Pages(2750 words)Essay
Java programing
These data elements are modeled as classes and they are active entities that can manipulate the data contained in themselves and in other classes. Finally, the system behavior is modeled after the interactions of these data items
1 Pages(250 words)Essay
Object programming on the other hand refers to a programming technique that is founded on the aspects of data structures which imbibe the data (Hughes, 2009). It is important to note and record that the data exist in
1 Pages(250 words)Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Let us find you another Essay on topic Java Program ShopKeeper for FREE!
logo footer
Contact us:
Contact Us Now
FREE Mobile Apps:
  • StudentShare App Store
  • StudentShare Google play
  • About StudentShare
  • Testimonials
  • FAQ
  • Blog
  • Free Essays
  • New Essays
  • Essays
  • Miscellaneous
  • The Newest Essay Topics
  • Index samples by all dates
Join us:
Contact Us