In: Computer Science
Java Problem 3: The Snake Box Factory
Overview Dear Respectable Software Engineer,
Here at the world renowned Snake Box Factory, we pride ourselves on our ability to deliver the highest quality, custom sized, cardboard boxes to our customers. Our boxes are filled with the highest quality, custom-ordered snakes. We service thousands of accounts worldwide and have a solid 98% satisfaction rating with customers. However, the entire ordering process is currently written on cardboard, which is transported between departments via carrier snake. We thought this would be a good way to show confidence in the quality and usefulness of our product. But as our business continues to grow, we’re realizing this was a bad idea. We believe it’s time for a more conventional and digitized approach to our operations. Would you be able to help us develop the software we need to make this happen?
Sincerely,
President George Johnson, The Snake Box Factory
Tasks:
Read the scenario found in the overview and consider what objects could be modeled as part of creating a software solution. Identify 3 objects from this scenario (remember, objects can be either tangible or abstract. List 3 properties and 3 behaviors belonging to each object.
Write your solution as a document rather than a .java file.
We can create a software solution for the above case by separating the above functionalities in three objects as below.
1) The Snake Box Factory
The factory will produce the Snake Boxes. The factory could be abstract, so that it can be extended to other product types.
Properties:
a)Create a List of Orders
b)Product Type
c)Pricing
Behaviors:
a) Fill boxes with custom-ordered snakes
b)Ship to the customer.
c)Create billing
2) The Snake Box
Properties:
a)Quantity
b)Name/Names of products
c)Price per product
d)delivery information
Behaviors:
a)Encapsulate the box contents from others.
b)Assure Safety of products (protect from manipulation)
c)Maintain its integrity and Tracking details from place to place.
3)Customer
Properties
a)Name
b)Location
c)Payment Details
d)Contact Details
Behaviors:
a)Order for products
b)Provide feedback to the factory(company)
c)Complete payment procedure
ps-Along with these, we can also add the managers of the factory as an object.