Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program is done by Java. Can someone help me with this? You are going to write parts of a merchandise inventory system. But first,

This program is done by Java. Can someone help me with this?

image text in transcribedimage text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

You are going to write parts of a merchandise inventory system. But first, a little bit of background. Computerized inventory systems are an every-day part of current business technology. Without these inventory systems, global trade simply could not exist due to the continued demands of day-to-day activities that businesses are required to fulfill. Inventory systems allow for the tracking and recording of materials and goods within a company. Some of the benefits of a computerized inventory system are: Real-time tracking of available goods for sale Tracking of corporate assets A feature that helps a company decide when and how much to reorder Accounting for losses due to thefts and damages . . As previously mentioned, the inventory system will track merchandise, therefore making this a merchandise inventory system. A merchandise inventory system tracks goods that a retailing or wholesaling company intends to resell for a profit". This is different from a manufacturing inventory system (AKA production inventory system) that tracks finished goods, goods in process, raw materials, and parts and components that will go into the end product". Requirements You are to create a program that reflects the details in diagram 1. Inventoryitem - Date IPD -long SKU String desc -String name double purchase Price - long serial VersionUID - String type java interfaces Sellable Rental String comments Condition condition After Condition conditionBefore Date date long rental - long serialVersionUID + boolean is Sellable() + void setSellable(book + Date detec.com ) + boolean equals(Object) + String getDesco) Date getIPDC) String getName() + double getPurchasePrice) long getSKUO + String getType() + int hashCode() + void setDesc(String desc) + void setiPD(Date IPD) + void setName(String name) void setPurchasePrice(double purchasePrice) void setSKU(long SKU) + void setType(String type) + String toString() + boolean equals(Object o) + String getComments() + Condition getCondition After + Condition getConditionBefore() ware getRental) + int hashCode() + void setComments(String comments) + void setCondition After(Condition conditionAfter) + void setConditionBefore(Condition conditionBefore) + void setRentall(long rental) + String toString() Salesitem double sale Price long salesID - boolean sellable long serial VersionUID - boolean sold + double getSalePrice + long getSalesIDO) + boolean isSellable() boolean is Soldo void setSale Price/double salePrice) + void set SalesID(long salesID) void setSellable(boolean state) void set Sold(boolean sold) + String toString() Rentalltem - Condition current Condition - Rentall items - long rental - double rentalPrice - boolean sellable - long serialVersionUID - boolean sold + Condition getCurrent Condition() + Rental getitems() + long getRental + double getRentalPrice) + boolean isSellable() is Soldo + void setCurrent Condition(Condition current Condition) + void setitems(Rentall items) + void setRentallD(long rentalib) + void setRentalPrice(double rentalPrice) void setSellable(boolean state) + void set Sold(boolean sold) + String toString() + boolean iese java enum Condition AVERAGE POOR EXCELLENT GREAT DAMAGED + . Your job is to: Write code that represents the Figure 1 UML diagram and all classes, interfaces, and data structures found within Also in addition to Figure 1 (and not shown in the UML diagram), ensure that the Inventory class implements the java.lang.Comparable interface. The comparison requirements are as follows: o Inventoryltem uses the SKU attribute Rentalltem uses the rentalld attribute Salesitem uses the salesID attribute Satisfy all unit tests (those will be given to you later in the week) - for now start writing the classes Other information: Items in inventory that can be sold Items that can be rented Items that can be sold after being rented (i.e. used items) . Pertaining to items that can be sold, your Java code will need to record: Sale ID Purchase price (the price the item was purchased at) Sales price (the markup price when selling the unit to customers) Whether the item has been sold or not O . Pertaining to items that can be rented, your Java code will need to record: Rental ID Purchase price (the price the item was purchased at) Rental price (the markup price when renting the unit to customers) Current condition of item (e.g. new, slightly used, used, damaged) . O . Other information about inventory items: Stock Keeping Unit (SKU) Name of item Description of item Type of item Invoice purchase date (IPD) Other general details: Ensure that your Java classes conform to Java bean requirements (i.e. getters, setters, default constructor, serialVersionUID attribute, toString, equals, and hashCode methods) Ensure that all of the classes and interfaces implement java.io.Serializable You are going to write parts of a merchandise inventory system. But first, a little bit of background. Computerized inventory systems are an every-day part of current business technology. Without these inventory systems, global trade simply could not exist due to the continued demands of day-to-day activities that businesses are required to fulfill. Inventory systems allow for the tracking and recording of materials and goods within a company. Some of the benefits of a computerized inventory system are: Real-time tracking of available goods for sale Tracking of corporate assets A feature that helps a company decide when and how much to reorder Accounting for losses due to thefts and damages . . As previously mentioned, the inventory system will track merchandise, therefore making this a merchandise inventory system. A merchandise inventory system tracks goods that a retailing or wholesaling company intends to resell for a profit". This is different from a manufacturing inventory system (AKA production inventory system) that tracks finished goods, goods in process, raw materials, and parts and components that will go into the end product". Requirements You are to create a program that reflects the details in diagram 1. Inventoryitem - Date IPD -long SKU String desc -String name double purchase Price - long serial VersionUID - String type java interfaces Sellable Rental String comments Condition condition After Condition conditionBefore Date date long rental - long serialVersionUID + boolean is Sellable() + void setSellable(book + Date detec.com ) + boolean equals(Object) + String getDesco) Date getIPDC) String getName() + double getPurchasePrice) long getSKUO + String getType() + int hashCode() + void setDesc(String desc) + void setiPD(Date IPD) + void setName(String name) void setPurchasePrice(double purchasePrice) void setSKU(long SKU) + void setType(String type) + String toString() + boolean equals(Object o) + String getComments() + Condition getCondition After + Condition getConditionBefore() ware getRental) + int hashCode() + void setComments(String comments) + void setCondition After(Condition conditionAfter) + void setConditionBefore(Condition conditionBefore) + void setRentall(long rental) + String toString() Salesitem double sale Price long salesID - boolean sellable long serial VersionUID - boolean sold + double getSalePrice + long getSalesIDO) + boolean isSellable() boolean is Soldo void setSale Price/double salePrice) + void set SalesID(long salesID) void setSellable(boolean state) void set Sold(boolean sold) + String toString() Rentalltem - Condition current Condition - Rentall items - long rental - double rentalPrice - boolean sellable - long serialVersionUID - boolean sold + Condition getCurrent Condition() + Rental getitems() + long getRental + double getRentalPrice) + boolean isSellable() is Soldo + void setCurrent Condition(Condition current Condition) + void setitems(Rentall items) + void setRentallD(long rentalib) + void setRentalPrice(double rentalPrice) void setSellable(boolean state) + void set Sold(boolean sold) + String toString() + boolean iese java enum Condition AVERAGE POOR EXCELLENT GREAT DAMAGED + . Your job is to: Write code that represents the Figure 1 UML diagram and all classes, interfaces, and data structures found within Also in addition to Figure 1 (and not shown in the UML diagram), ensure that the Inventory class implements the java.lang.Comparable interface. The comparison requirements are as follows: o Inventoryltem uses the SKU attribute Rentalltem uses the rentalld attribute Salesitem uses the salesID attribute Satisfy all unit tests (those will be given to you later in the week) - for now start writing the classes Other information: Items in inventory that can be sold Items that can be rented Items that can be sold after being rented (i.e. used items) . Pertaining to items that can be sold, your Java code will need to record: Sale ID Purchase price (the price the item was purchased at) Sales price (the markup price when selling the unit to customers) Whether the item has been sold or not O . Pertaining to items that can be rented, your Java code will need to record: Rental ID Purchase price (the price the item was purchased at) Rental price (the markup price when renting the unit to customers) Current condition of item (e.g. new, slightly used, used, damaged) . O . Other information about inventory items: Stock Keeping Unit (SKU) Name of item Description of item Type of item Invoice purchase date (IPD) Other general details: Ensure that your Java classes conform to Java bean requirements (i.e. getters, setters, default constructor, serialVersionUID attribute, toString, equals, and hashCode methods) Ensure that all of the classes and interfaces implement java.io.Serializable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

What must a creditor do to become a secured party?

Answered: 1 week ago

Question

When should the last word in a title be capitalized?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago