RFP Create Inventory Tracking System for Containter Store PowerPoint PPT Presentation

presentation player overlay
1 / 20
About This Presentation
Transcript and Presenter's Notes

Title: RFP Create Inventory Tracking System for Containter Store


1
O
YEAH!!! SOONERS!
U
2
Group Project Presentation
  • Traci Sobel
  • Matt Meziere
  • Ankur Dalal
  • Deb Anderson

3
GUI to Track elfa Salesfor Container Stores
4
Problem
  • Problem elfa storage systems are The Container
    Stores hottest new item
  • can barely keep it stocked
  • need new system that tracks
  • revenue
  • items sold
  • daily
  • needs regional and local store information

5
GUI for elfa Merchandise Blowout Events
  • GUI for daily sales will track
  • region number
  • merchandise line (ccloset, ooffice, sshelving,
    etc.) by number of units
  • daily sales total for each line
  • Entries will be daily cumulative
  • Output will breakdown sales by
  • Regional sales total - total sales regardless of
    line
  • Regional units total - total units regardless of
    line
  • Total sales per line
  • Total units per line

6
Pseudocode for elfa Merchandise Blowout Events
  • Start
  • Input sale_data ( region_number,
    merchandise_line, sale_price, items_sold )
  • Add sale_price to appropriate regional_sales_total
    (by region)
  • Add sale_price to appropriate merchandise_line_tot
    al (by line)
  • Add items-sold to appropriate total_line_count
    (by line)
  • Add items-sold to appropriate total_region_line_c
    ount (by region)
  • Display Output ( each regional_sales_total, each
    total_line_count, each total_regional_line_count,
    each merchandise_line_total
  • Loop to Input until no-more-entries
  • End

7
Program FlowChart
8
Sample Input/Output
9
Sample Input/Output
10
Screen Shots
11
Screen Shots
12
Source Code
regionList.setToolTipText ("Regions that the user
can enter store values for.")
regionList.setBorder (new javax.swing.border.LineB
order(java.awt.Color.black))
regionList.setVisibleRowCount (4)
regionList.setSelectionMode (javax.swing.ListSelec
tionModel.SINGLE_SELECTION)
getContentPane ().add (regionList,
java.awt.BorderLayout.CENTER)
listButton.setToolTipText ("Click once you have
selected a region") listButton.setText
("Proceed") listButton.addMouseListener
(new java.awt.event.MouseAdapter ()
public void mouseClicked (java.awt.event.MouseEven
t evt) listButtonMouseClicked
(evt) )
getContentPane ().add (listButton,
java.awt.BorderLayout.EAST)
//GEN-ENDinitComponents private void
listButtonMouseClicked (java.awt.event.MouseEvent
evt) //GEN-FIRSTevent_listButtonMouseClicked
/ Call the next frame to open up and
allow the user to edit that Regions
stores / String selection
(String)regionList.getSelectedValue() if
(selection.equals("Denver")) new
StoreInput (stores, 0).show () else if
(selection.equals("Arlington")) new
StoreInput (stores, 1).show () else if
(selection.equals("Denton")) new
StoreInput (stores, 2).show () else if
(selection.equals("Norman")) new
StoreInput (stores, 3).show () else if
(selection.equals("Albany")) new
StoreInput (stores, 4).show ()
System.out.println(selection)
//GEN-LASTevent_listButtonMouseClicked /
Exit the Application / private void
exitForm(java.awt.event.WindowEvent evt)
//GEN-FIRSTevent_exitForm System.exit
(0) //GEN-LASTevent_exitForm
/ RegionSelector.java Created on
December 2, 2000, 129 PM / import
javax.swing. / _at_author Ankur Dalal,
Matt Mezeire, Tracy Sobel, Deborah Anderson
_at_version 1.0 / public class RegionSelector
extends javax.swing.JFrame / Creates new
form RegionSelector / public
RegionSelector() initComponents ()
pack () / This method is called
from within the constructor to initialize
the form. WARNING Do NOT modify this
code. The content of this method is always
regenerated by the FormEditor. /
private void initComponents () //GEN-BEGINinitCo
mponents regionLabel new
javax.swing.JLabel () regionList new
JList(storeNames) listButton new
javax.swing.JButton () addWindowListener
(new java.awt.event.WindowAdapter ()
public void windowClosing (java.awt.event.WindowE
vent evt) exitForm (evt)
)
regionLabel.setText ("Region")
getContentPane ().add (regionLabel,
java.awt.BorderLayout.WEST)
13
Source Code
/ StoreInput.java Created on December
2, 2000, 456 PM / / _at_author Deborah
Anderson _at_version 1.0 / public class
StoreInput extends javax.swing.JFrame /
Creates new form StoreInput / public
StoreInput() initComponents ()
pack () / Creates new form
StoreInput / public StoreInput(Store
_stores, int _storeNumber) stores
_stores storeNumber _storeNumber
initData() initComponents ()
pack () / This method is
called from within the constructor to
initialize the form. WARNING Do NOT
modify this code. The content of this method is
always regenerated by the FormEditor.
/ private void initComponents ()
//GEN-BEGINinitComponents closetLabel
new javax.swing.JLabel () kitchenLabel
new javax.swing.JLabel () officeLabel
new javax.swing.JLabel () garageLabel
new javax.swing.JLabel () shelvingLabel
new javax.swing.JLabel () laundryLabel
new javax.swing.JLabel () closetSold
new javax.swing.JTextField(closetUnitsString)
kitchenSold new javax.swing.JTextField(kitc
henUnitsString)
/ _at_param args the command line arguments
/ public static void main (String args)
initStores() new
RegionSelector ().show () private
static void initStores ()
/ Stores for the regions / Store
denver new Store( 0, 0, "Colorado ", "Denver"
) Store arlington new Store( 1, 1,
"Dallas", "Arlington" ) Store denton
new Store( 1, 2, "Dallas", "Denton" )
Store norman new Store( 2, 3, "Oklahoma",
"Norman" ) Store albany new Store( 3,
4, "New York", "Albany" )
/ Insert the separate regions into a
region array / stores0 denver
stores1 arlington stores2
denton stores3 norman
stores4 albany // Variables
declaration - do not modify//GEN-BEGINvariables
private javax.swing.JLabel regionLabel
private javax.swing.JList regionList private
javax.swing.JButton listButton // End of
variables declaration//GEN-ENDvariables
// Varaibles to be modified private static
Store stores new Store5 /
Initialize String array storeNames to the names
of the regions / private String
storeNames "Denver",
"Arlington", "Denton", "Norman", "Albany"
14
Source Code
getContentPane ().add (closetLabel, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(10, 30, 190, 20)) kitchenLabel.setPrefe
rredSize (new java.awt.Dimension(200, 16))
kitchenLabel.setMinimumSize (new
java.awt.Dimension(200, 16))
kitchenLabel.setText ("Kitchen Units --------
Units Sold") kitchenLabel.setMaximumSize
(new java.awt.Dimension(200, 16))
getContentPane ().add (kitchenLabel, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(10, 60, 170, 20)) officeLabel.setText
("Home Office Units ------ Units Sold")
getContentPane ().add (officeLabel, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(10, 90, -1, -1)) garageLabel.setPreferr
edSize (new java.awt.Dimension(200, 16))
garageLabel.setText ("Garage Units -----------
Units Sold") getContentPane ().add
(garageLabel, new org.netbeans.lib.awtextra.Absolu
teConstraints (10, 120, -1, -1))
shelvingLabel.setPreferredSize (new
java.awt.Dimension(200, 16))
shelvingLabel.setText ("Shelving Units ----------
Units Sold") getContentPane ().add
(shelvingLabel, new org.netbeans.lib.awtextra.Abso
luteConstraints (10, 150, -1, -1))
laundryLabel.setText ("Bath Laundry Units --
Units Sold") getContentPane ().add
(laundryLabel, new org.netbeans.lib.awtextra.Absol
uteConstraints (10, 180, -1, -1))
closetSold.setPreferredSize (new
java.awt.Dimension(40, 20))
getContentPane ().add (closetSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(210, 30, -1, -1)) kitchenSold.setPrefer
redSize (new java.awt.Dimension(40, 20))
officeSold new javax.swing.JTextField(officeUnit
sString) garageSold new
javax.swing.JTextField(garageUnitsString)
shelvingSold new javax.swing.JTextField(shelvin
gUnitsString) laundrySold new
javax.swing.JTextField(laundryUnitsString)
retailValue new javax.swing.JLabel ()
jLabel8 new javax.swing.JLabel ()
jLabel9 new javax.swing.JLabel ()
jLabel10 new javax.swing.JLabel ()
jLabel11 new javax.swing.JLabel ()
jLabel12 new javax.swing.JLabel ()
closetValue new javax.swing.JTextField(closetPri
ceString) kitchenValue new
javax.swing.JTextField(kitchenPriceString)
officeValue new javax.swing.JTextField(officeP
riceString) garageValue new
javax.swing.JTextField(garagePriceString)
shelvingValue new javax.swing.JTextField(shelvi
ngPriceString) laundryValue new
javax.swing.JTextField(laundryPriceString)
line1 new javax.swing.JLabel ()
line2 new javax.swing.JLabel () line3
new javax.swing.JLabel ()
regionalUnitsLabel new javax.swing.JLabel ()
regionalUnitsSold new javax.swing.JTextFie
ld(totalRegionalUnitsString)
totalUnitsSold new javax.swing.JTextField(totalU
nitsString) regionalSalesLabel new
javax.swing.JLabel () regionalSales
new javax.swing.JTextField(totalRegionalPriceStrin
g) totalSales new javax.swing.JTextFiel
d(totalPriceString) totalUnitsLabel
new javax.swing.JLabel ()
totalSalesLabel new javax.swing.JLabel ()
updateLabel new javax.swing.JLabel ()
updateButton new javax.swing.JButton ()
titleLabel new javax.swing.JLabel
(storeName) getContentPane ().setLayout
(new org.netbeans.lib.awtextra.AbsoluteLayout
()) addWindowListener (new
java.awt.event.WindowAdapter ()
public void windowClosing (java.awt.event.WindowEv
ent evt) exitForm (evt)
) closetLabel.setPreferre
dSize (new java.awt.Dimension(200, 16))
closetLabel.setMinimumSize (new
java.awt.Dimension(200, 16))
closetLabel.setText ("Closet Units -------------
Units Sold") closetLabel.setMaximumSize
(new java.awt.Dimension(118, 16))
15
Source Code
(390, 90, -1, -1)) garageValue.setPrefer
redSize (new java.awt.Dimension(60, 20))
getContentPane ().add (garageValue, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 120, -1, -1)) shelvingValue.setPref
erredSize (new java.awt.Dimension(60, 20))
getContentPane ().add (shelvingValue, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 150, -1, -1)) laundryValue.setPrefe
rredSize (new java.awt.Dimension(60, 20))
getContentPane ().add (laundryValue, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 180, -1, -1)) line1.setPreferredSiz
e (new java.awt.Dimension(450, 16))
line1.setText ("----------------------------------
--------------------------------------------------
--------------------------------------------------
------------------") getContentPane
().add (line1, new org.netbeans.lib.awtextra.Absol
uteConstraints (10, 210, -1, -1))
line2.setPreferredSize (new java.awt.Dimension(450
, 16)) line2.setText ("------------------
--------------------------------------------------
--------------------------------------------------
----------------------------------")
getContentPane ().add (line2, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(10, 260, -1, -1)) line3.setPreferredSize
(new java.awt.Dimension(450, 16))
line3.setText ("----------------------------------
--------------------------------------------------
--------------------------------------------------
------------------") getContentPane
().add (line3, new org.netbeans.lib.awtextra.Absol
uteConstraints (10, 300, -1, -1))
regionalUnitsLabel.setText ("Total Regional Units
Sold") getContentPane ().add
(regionalUnitsLabel, new org.netbeans.lib.awtextra
.AbsoluteConstraints (40, 230, -1, -1))
regionalUnitsSold.setPreferredSize (new
java.awt.Dimension(40, 20))
regionalUnitsSold.setEditable (false)
getContentPane ().add (regionalUnitsSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(200, 230, -1, -1)) totalUnitsSold.setPre
ferredSize (new java.awt.Dimension(40, 20))
totalUnitsSold.setEditable (false)
getContentPane ().add (totalUnitsSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(200, 280, -1, -1)) regionalSalesLabel.se
tText ("Total Regional Sales")
getContentPane ().add (regionalSalesLabel, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(260, 230, -1, -1)) regionalSales.setPre
ferredSize (new java.awt.Dimension(60, 20))
regionalSales.setEditable (false)
getContentPane ().add (regionalSales, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 230, -1, -1))
getContentPane ().add (kitchenSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(210, 60, -1, -1)) officeSold.setPreferre
dSize (new java.awt.Dimension(40, 20))
getContentPane ().add (officeSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(210, 90, -1, -1)) garageSold.setPreferr
edSize (new java.awt.Dimension(40, 20))
getContentPane ().add (garageSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(210, 120, -1, -1)) shelvingSold.setPrefe
rredSize (new java.awt.Dimension(40, 20))
getContentPane ().add (shelvingSold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(210, 150, -1, -1)) laundrySold.setPrefer
redSize (new java.awt.Dimension(40, 20))
getContentPane ().add (laundrySold, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(210, 180, -1, -1)) retailValue.setText
("Retail Value Sold") getContentPane
().add (retailValue, new org.netbeans.lib.awtextra
.AbsoluteConstraints (290, 150, -1, -1))
jLabel8.setText ("Retail Value Sold")
getContentPane ().add (jLabel8, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(290, 180, -1, -1)) jLabel9.setText
("Retail Value Sold") getContentPane
().add (jLabel9, new org.netbeans.lib.awtextra.Abs
oluteConstraints (290, 120, -1, -1))
jLabel10.setText ("Retail Value Sold")
getContentPane ().add (jLabel10, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(290, 90, -1, -1)) jLabel11.setText ("Retail
Value Sold") getContentPane ().add
(jLabel11, new org.netbeans.lib.awtextra.AbsoluteC
onstraints (290, 30, -1, -1))
jLabel12.setText ("Retail Value Sold")
getContentPane ().add (jLabel12, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(290, 60, -1, -1)) closetValue.setPreferr
edSize (new java.awt.Dimension(60, 20))
getContentPane ().add (closetValue, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 30, -1, -1)) kitchenValue.setPrefer
redSize (new java.awt.Dimension(60, 20))
getContentPane ().add (kitchenValue, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 60, -1, -1)) officeValue.setPreferr
edSize (new java.awt.Dimension(60, 20))
getContentPane ().add (officeValue, new
org.netbeans.lib.awtextra.AbsoluteConstraints
16
Source Code
this.dispose() //GEN-LASTevent_updateButtonMo
useClicked / Exit the Form / private
void exitForm(java.awt.event.WindowEvent evt)
//GEN-FIRSTevent_exitForm
this.dispose() //GEN-LASTevent_exitForm
private void initData() storeName
storesstoreNumber.getStoreName()
/ Units String generation /
closetUnitsString Integer.toString(storesstoreN
umber.closetQuantity())
kitchenUnitsString Integer.toString(storesstore
Number.kitchenQuantity())
officeUnitsString Integer.toString(storesstoreN
umber.officeQuantity())
garageUnitsString Integer.toString(storesstoreN
umber.garageQuantity())
shelvingUnitsString Integer.toString(storesstor
eNumber.shelvesQuantity())
laundryUnitsString Integer.toString(storesstore
Number.laundryQuantity()) int
regionalUnitsCount 0 for (int i 0 i
lt 5 i) if (storesi.getRegionID()
storesstoreNumber.getRegionID())
regionalUnitsCount storesi.totalQuantit
y() totalRegionalUnitsString
Integer.toString(regionalUnitsCount)
int totalUnitsCount 0 for (int i
0 i lt 5 i) totalUnitsCount
storesi.totalQuantity()
totalUnitsString Integer.toString(totalUnitsCoun
t) / Price String Generation
/ closetPriceString Double.toString(sto
resstoreNumber.getClosetPrice())
kitchenPriceString Double.toString(storesstoreN
umber.getKitchenPrice())
officePriceString Double.toString(storesstoreNu
mber.getOfficePrice())
garagePriceString Double.toString(storesstoreNu
mber.getGaragePrice())
shelvingPriceString Double.toString(storesstore
Number.getShelvesPrice())
laundryPriceString Double.toString(storesstoreN
umber.getLaundryPrice())
double regionalPriceCount 0.0 for (int
i 0 i lt 5 i) if
(storesi.getRegionID() storesstoreNumber.ge
tRegionID()) regionalPriceCount
storesi.getTotalPrice()
totalRegionalPriceString
Double.toString(regionalPriceCount)
totalSales.setPreferredSize (new
java.awt.Dimension(60, 20))
totalSales.setEditable (false)
getContentPane ().add (totalSales, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 280, -1, -1)) totalUnitsLabel.setTe
xt ("Total Units Sold") getContentPane
().add (totalUnitsLabel, new org.netbeans.lib.awte
xtra.AbsoluteConstraints (80, 280, -1, -1))
totalSalesLabel.setText ("Total Sales")
getContentPane ().add (totalSalesLabel, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(280, 280, -1, -1)) updateLabel.setText
("If you changed any quantities, please press the
update button") getContentPane ().add
(updateLabel, new org.netbeans.lib.awtextra.Absolu
teConstraints (10, 330, -1, -1))
updateButton.setText ("Update")
updateButton.addMouseListener (new
java.awt.event.MouseAdapter ()
public void mouseClicked (java.awt.event.MouseEven
t evt) updateButtonMouseClicked
(evt) )
getContentPane ().add (updateButton, new
org.netbeans.lib.awtextra.AbsoluteConstraints
(390, 320, 80, 30)) getContentPane
().add (titleLabel, new org.netbeans.lib.awtextra.
AbsoluteConstraints (220, 0, -1, -1))
//GEN-ENDinitComponents private void
updateButtonMouseClicked (java.awt.event.MouseEven
t evt) //GEN-FIRSTevent_updateButtonMouseClicked
setData() initData() new
StoreInput(stores, storeNumber).show()
17
Source Code
System.out.println(storeNumber
storesstoreNumber.getRegionName())
// Variables declaration - do not
modify//GEN-BEGINvariables private
javax.swing.JLabel closetLabel private
javax.swing.JLabel kitchenLabel private
javax.swing.JLabel officeLabel private
javax.swing.JLabel garageLabel private
javax.swing.JLabel shelvingLabel private
javax.swing.JLabel laundryLabel private
javax.swing.JTextField closetSold private
javax.swing.JTextField kitchenSold private
javax.swing.JTextField officeSold private
javax.swing.JTextField garageSold private
javax.swing.JTextField shelvingSold private
javax.swing.JTextField laundrySold private
javax.swing.JLabel retailValue private
javax.swing.JLabel jLabel8 private
javax.swing.JLabel jLabel9 private
javax.swing.JLabel jLabel10 private
javax.swing.JLabel jLabel11 private
javax.swing.JLabel jLabel12 private
javax.swing.JTextField closetValue private
javax.swing.JTextField kitchenValue private
javax.swing.JTextField officeValue private
javax.swing.JTextField garageValue private
javax.swing.JTextField shelvingValue private
javax.swing.JTextField laundryValue private
javax.swing.JLabel line1 private
javax.swing.JLabel line2 private
javax.swing.JLabel line3 private
javax.swing.JLabel regionalUnitsLabel
private javax.swing.JTextField regionalUnitsSold
private javax.swing.JTextField
totalUnitsSold private javax.swing.JLabel
regionalSalesLabel private
javax.swing.JTextField regionalSales private
javax.swing.JTextField totalSales private
javax.swing.JLabel totalUnitsLabel private
javax.swing.JLabel totalSalesLabel private
javax.swing.JLabel updateLabel private
javax.swing.JButton updateButton private
javax.swing.JLabel titleLabel // End of
variables declaration//GEN-ENDvariables
double totalPriceCount 0.0 for
(int i 0 i lt 5 i)
totalPriceCount storesi.getTotalPrice()
totalPriceString
Double.toString(totalPriceCount)
private void setData() int
closetUnitsInt Integer.parseInt(closetSold.getTe
xt().trim()) int kitchenUnitsInt
Integer.parseInt(kitchenSold.getText().trim())
int officeUnitsInt Integer.parseInt(office
Sold.getText().trim()) int
garageUnitsInt Integer.parseInt(garageSold.getTe
xt().trim()) int shelvingUnitsInt
Integer.parseInt(shelvingSold.getText().trim())
int laundryUnitsInt Integer.parseInt(laun
drySold.getText().trim()) /
Store Unit Assignment /
storesstoreNumber.buyCloset(closetUnitsInt)
storesstoreNumber.buyKitchen(kitchenUnitsIn
t) storesstoreNumber.buyOffice(officeUn
itsInt) storesstoreNumber.buyGarage(gar
ageUnitsInt) storesstoreNumber.buyShelv
es(shelvingUnitsInt) storesstoreNumber.
buyLaundry(laundryUnitsInt) double
closetPriceDouble Double.parseDouble(closetValue
.getText().trim()) double
kitchenPriceDouble Double.parseDouble(kitchenVal
ue.getText().trim()) double
officePriceDouble Double.parseDouble(officeValue
.getText().trim()) double
garagePriceDouble Double.parseDouble(garageValue
.getText().trim()) double
shelvingPriceDouble Double.parseDouble(shelvingV
alue.getText().trim()) double
laundryPriceDouble Double.parseDouble(laundryVal
ue.getText().trim()) / Store
Unit Assignment / storesstoreNumber.set
ClosetPrice(closetPriceDouble)
storesstoreNumber.setKitchenPrice(kitchenPriceDo
uble) storesstoreNumber.setOfficePrice(
officePriceDouble) storesstoreNumber.se
tGaragePrice(garagePriceDouble)
storesstoreNumber.setShelvesPrice(shelvingPriceD
ouble) storesstoreNumber.setLaundryPric
e(laundryPriceDouble)
18
Source Code
/ Store.java Created on November 28,
2000, 1049 AM / / _at_author Deborah
Anderson _at_version 1.0 / public class Store
/ Variables / private int storeID
//Id for the store private int
regionID //Id for the region the store
is in private String regionName private
String storeName //store name
/ Creates new Store / public Store()
/ Creates new Store /
public Store( int _regionID, int _storeID,
String _regionName, String _storeName )
regionID _regionID storeID
_storeID storeName _storeName
regionName _regionName
closetTotal 0 kitchenTotal 0
garageTotal 0 shelvesTotal 0
officeTotal 0 laundryTotal 0
closetPrice 0.0
kitchenPrice 0.0 garagePrice 0.0
shelvesPrice 0.0 officePrice
0.0 laundryPrice 0.0
/ Regional variables / / Unit Strings
/ private static String closetUnitsString
private static String kitchenUnitsString
private static String officeUnitsString
private static String garageUnitsString
private static String shelvingUnitsString
private static String laundryUnitsString
private static String totalRegionalUnitsString
private static String totalUnitsString
/ Price Strings / private static String
closetPriceString private static String
kitchenPriceString private static String
officePriceString private static String
garagePriceString private static String
shelvingPriceString private static String
laundryPriceString private static String
totalRegionalPriceString private static
String totalPriceString private static
String storeName private Store stores
//regions private int storeNumber //store
to be updated private int regionNumber
//region containing store to be updated
private int totalSold
19
Source Code
/ Sets the price of Kitchen products /
protected void setKitchenPrice ( double _amount
) kitchenPrice _amount
/ Sets the price of Shelves products /
protected void setShelvesPrice ( double _amount )
shelvesPrice _amount
/ Sets the price of Total products /
protected void setOfficePrice ( double _amount )
officePrice _amount
/ Sets the price of Laundry products /
protected void setLaundryPrice ( double _amount )
laundryPrice _amount
/ Returns the amount of Closet products being
bought / protected int closetQuantity ( )
return closetTotal /
Returns the amount of Garage products being
bought / protected int garageQuantity (
) return garageTotal
/ Returns the amount of Kitchen products being
bought / protected int kitchenQuantity ( )
return kitchenTotal
/ Sets the amount of Closet products to buy /
protected void buyCloset ( int _amount )
closetTotal _amount /
Sets the amount of Garage products to buy /
protected void buyGarage ( int _amount )
garageTotal _amount / Sets
the amount of Kitchen products to buy /
protected void buyKitchen ( int _amount )
kitchenTotal _amount / Sets
the amount of Shelves products to buy /
protected void buyShelves ( int _amount )
shelvesTotal _amount / Sets
the amount of Total products to buy /
protected void buyOffice ( int _amount )
officeTotal _amount / Sets
the amount of Laundry products to buy /
protected void buyLaundry ( int _amount )
laundryTotal _amount /
Sets the price of Closet products /
protected void setClosetPrice ( double _amount )
closetPrice _amount
/ Sets the price of Garage products /
protected void setGaragePrice ( double _amount )
garagePrice _amount
20
Source Code
/ Gets the price of Total products /
protected double getOfficePrice ()
return officePrice / Gets the
price of Laundry products / protected double
getLaundryPrice () return
laundryPrice / Gets the price of
Laundry products / protected double
getTotalPrice () return closetTotal
closetPrice kitchenTotal kitchenPrice
officeTotal officePrice garageTotal
garagePrice shelvesTotal
shelvesPrice laundryTotal laundryPrice
/ Returns the name of the Store /
protected String getStoreName () return
storeName / Returns the name of
the Region / protected String getRegionName
() return regionName /
Returns the ID of the Store / protected int
getStoreID () return storeID
/ Returns the ID of the Region /
protected int getRegionID () return
regionID //Total amount of
merchandise sold private int closetTotal
private int kitchenTotal private int
garageTotal private int shelvesTotal
private int officeTotal private int
laundryTotal //Price of merchandise
sold private double closetPrice private
double kitchenPrice private double
garagePrice private double shelvesPrice
private double officePrice private double
laundryPrice
/ Returns the amount of Shelves products being
bought / protected int shelvesQuantity ( )
return shelvesTotal /
Returns the amount of Office products being
bought / protected int officeQuantity ( )
return officeTotal /
Returns the amount of Laundry products being
bought / protected int laundryQuantity ( )
return laundryTotal /
Returns the total amount of products being bought
/ protected int totalQuantity ( )
return closetTotal kitchenTotal officeTotal
garageTotal shelvesTotal
laundryTotal / Gets the price
of Closet products / protected double
getClosetPrice () return closetPrice
/ Gets the price of Garage
products / protected double getGaragePrice
() return garagePrice
/ Gets the price of Kitchen products /
protected double getKitchenPrice ()
return kitchenPrice / Gets the
price of Shelves products / protected double
getShelvesPrice () return
shelvesPrice
Write a Comment
User Comments (0)
About PowerShow.com