Question

In: Computer Science

Case Study Hershee’s Chocolates makes an assortment of chocolate candy and candy novelties. The company has...

Case Study

Hershee’s Chocolates makes an assortment of chocolate candy and candy novelties. The company has six in-city stores, five stores in major metropolitan airports, and a small mail order branch. Hershee’s has a small, computerized information system that tracks inventory in its plant, helps schedule production, and so on, but this system is not tied directly into any of its retail outlets. The mail order system is handled manually.

Recently, several Hershee’s stores experienced a rash of complaints from mail order customers that the candy was spoiled upon arrival, that it did not come when promised, or that it never arrived; the company also received several letters complaining that candy in various airports tasted stale. Hershee’s has been selling a new, low-carb, dietetic form of chocolate made with sugar-free, artificial sweetener. Sales have been brisk, but there have been problems shipping the wrong type of chocolate to an address with a diabetic person. There were a number of complaints and Hershee’s sent a number of free boxes of chocolate to ease the situation.

Management would like to sell products using the Web but only has a few Web pages with information about the company and an order form that could be printed. Web ordering does not exist. One of the senior executives would like to sell customized chocolates with the name of a person on each piece.

Although the production area has assured management that this could be easily done, there is no method to order customized chocolates. Another senior executive has mentioned that Hershee’s has partnered with several European chocolate manufacturers and will be importing chocolate from a variety of countries. At present, this must be done over the phone, with email, or by mail. The executive wants an internal website that will enable employees to order directly from the partner companies. All this has led a number of managers to request trend analysis. Too much inventory results in stale chocolate, whereas at other times there is a shortage of a certain kind of chocolate.

Seasonal and holiday variation trends would help Hershee’s maintain an adequate inventory. The inventory control manager has insisted that all changes must be implemented before the next holiday season. “The time for this to be complete is an absolute due date,” remarked Candy, a senior manager. “Make sure that everything works perfectly before the site goes public,” she continues, “I don’t want any customers receiving the wrong orders!” In addition, the order processing manager has mentioned that the system must be secure.

Construct an Ideal Object Model from the case study above.

Solutions

Expert Solution

Explanation :

Object Model :

  • An object model is a logical interface, software or system that is modeled through the use of object-oriented techniques. It enables the creation of an architectural software or system model prior to development or programming.
  • An object model is part of the object-oriented programming (OOP) lifecycle.
  • The object model visualizes the elements in a software application in terms of objects.
  • The object model encompasses the principles of abstraction, encapsulation, modularity, hierarchy, typing, concurrency, and persistence and these elements are brought together in a synergistic fashion.
  • The object model identifies the classes in the system and their relationship, as well as their attributes and operations.
  • It represents the static structure of the system.
  • The object model is represented graphically by a class diagram.

Features of Object Model :

An object model consists of the following important features:

  • Object Reference : Objects can be accessed via object references. To invoke a method in an object, the object reference and method name are given, together with any arguments.
  • Interfaces : An interface provides a definition of the signature of a set of methods without specifying their implementation. An object will provide a particular interface if its class contains code that implement the method of that interface. An interface also defines types that can be used to declare the type of variables or parameters and return values of methods.
  • Actions : An action in object-oriented programming (OOP) is initiated by an object invoking a method in another object. An invocation can include additional information needed to carry out the method. The receiver executes the appropriate method and then returns control to the invoking object, sometimes supplying a result.
  • Exceptions : Programs can encounter various errors and unexpected conditions of varying seriousness. During the execution of the method many different problems may be discovered. Exceptions provide a clean way to deal with error conditions without complicating the code. A block of code may be defined to throw an exception whenever particular unexpected conditions or errors arise. This means that control passes to another block of code that catches the exception.

Steps of Object Modelling :

The following steps are performed in constructing an object model:

  1. Read carefully, the problem statement.
  2. Locate the object classes by underlining nouns.
  3. Remove unnecessary and incorrect classes.
  4. Prepare a data dictionary.
  5. Locate associations between object classes.
  6. Remove unnecessary and incorrect attributes.
  7. Use inheritance to share common structure.
  8. Traverse access paths to identify deficiency.
  9. Remove unnecessary and incorrect associations.
  10. Locate attributes of the object classes.

In the light of the above discussions, the solution to the given case scenario is as follows:

The Solution :

The outline of an Ideal Object Model for Hershee's Chocolates is depicted in the diagram below:

CUSTOMER EMPLOYEE

customer_id ( pk ) employee_id ( pk )

custmer _name custmer _name

address emp _branch

place_order ( )     place_order ( )

      

  ORDER

TRANSACTION    order_id ( pk )

transaction _id ( pk )      for_customer_id

cust_id    by_employee_id

order_id    address

delivery _id    delivery_time

payment_id    delivery_id

get_payment ( )    payment_id

deliver ( ) inherits inherits

CUSTOMISED_ORDER IMPORT_ORDER

customised_Name import_Partner

This concludes the design of the Ideal Object Model for the given scenario along with the necessary explanations.

Please do not forget to like the answer if it helps you. Thank you.


Related Solutions

Hershee Chocolates Candy Stores Hershee’s Chocolates makes an assortment of chocolate candy and candy novelties. The...
Hershee Chocolates Candy Stores Hershee’s Chocolates makes an assortment of chocolate candy and candy novelties. The company has six in-city stores, five stores in major metropolitan airports, and a small mail order branch. Hershee’s has a small, computerized information system that tracks inventory in its plant, helps schedule production, and so on, but this system is not tied directly into any of its retail outlets. The mail order system is handled manually. Recently, several Hershee’s stores experienced a rash of...
Matilda makes specialized chocolates. Her two best-selling chocolates, the chocolate heart and the chocolate flower, are...
Matilda makes specialized chocolates. Her two best-selling chocolates, the chocolate heart and the chocolate flower, are made by pouring milk chocolate into a mold. A heart requires 3.5 ounces of milk chocolate and earns a profit of 20 cents, while a flower requires 1.5 ounces of milk chocolate and earns a profit of 30 cents. If she has 663 ounces of milk chocolate available and she wants to make at least twice as many hearts as flowers, what is the...
The Yucki Candy Co. makes and sells boxes of chocolate candy. Yucki has fixed expenses of...
The Yucki Candy Co. makes and sells boxes of chocolate candy. Yucki has fixed expenses of $195,000 each month plus variable expenses of $6.00 per box of candy. Yucki sells each box of candy for $10.00. Compute the contribution margin of each box of candy. Compute the number of boxes of candy that Yucki must sell each month to break even. Round up to the nearest whole box. Compute the contribution margin ratio for a box of candy . Compute...
The sugar bear candy factory makes two types of chocolate candy bars milk chocolate and milk...
The sugar bear candy factory makes two types of chocolate candy bars milk chocolate and milk chocolate with almonds. In a typical day, 40% of the candy bars are being made of milk chocolate with almonds and the rest is plain milk chocolate. At the end of the day, a quality control expert randomly chooses 14 candy bars for inspection. a. What is the probability that fewer than 6 of the candy bars contained almonds? b.What is the probability that...
The Proportion Challenged Candy Co. makes and sells boxes of chocolate candy. Proportion has fixed expenses...
The Proportion Challenged Candy Co. makes and sells boxes of chocolate candy. Proportion has fixed expenses of $250,000 each month plus variable expenses of $5.25 per box of candy. Proportion sells each box of candy for $9.75. Compute the contribution margin of each box of candy. Compute the number of boxes of candy that Proportion must sell each month to break even. Round up to the nearest whole box. Compute the contribution margin ratio for a box of candy Compute...
B. The Yucki Candy Co. makes and sells boxes of chocolate candy. Yucki has fixed expenses...
B. The Yucki Candy Co. makes and sells boxes of chocolate candy. Yucki has fixed expenses of $195,000 each month plus variable expenses of $6.00 per box of candy. Yucki sells each box of candy for $10.00. • Compute the contribution margin of each box of candy. • Compute the number of boxes of candy that Yucki must sell each month to break even. Round up to the nearest whole box. • Compute the contribution margin ratio for a box...
#1 A candy company makes chocolates in two flavors, milk and dark. Brenda is a quality...
#1 A candy company makes chocolates in two flavors, milk and dark. Brenda is a quality control manager for the company who wants to make sure that each jumbo bag contains about the same number of chocolates, regardless of flavor. She collects two random samples of 15 bags of chocolates from each flavor and counts the number of chocolates in each bag. Assume that both flavors have a standard deviation of 9.5 chocolates per bag and that the number of...
Case Heavenly Chocolates Web Site Transactions . Heavenly Chocolates manufactures and sells quality chocolate products at...
Case Heavenly Chocolates Web Site Transactions . Heavenly Chocolates manufactures and sells quality chocolate products at its plant and retail store located in Saratoga Springs, New York. Two years ago, the company developed a Web site and began selling its products over the Internet. Web site sales have exceeded the company’s expectations, and management is now considering strategies to increase sales even further. To learn more about the Web site customers, a sample of 50 Heavenly Chocolate transactions was selected...
The Hershey Company makes candy for the retail consumer market. One product is the well-known, Chocolate...
The Hershey Company makes candy for the retail consumer market. One product is the well-known, Chocolate Kiss. It manufactures this product in the following departments: Melting, Molding, and Wrapping. In the Melting Department, the food ingredients including unsweetened chocolate are placed in large melting vats along with sugar in specific proportions. They are melted together in order to perfect this well-known candy. The result is a gooey-blend of melted chocolate. This mixture is transferred from the Melting Department to the...
The Lancaster Chocolates Company produces Chocolate. The first process is to refine the chocolate into syrup...
The Lancaster Chocolates Company produces Chocolate. The first process is to refine the chocolate into syrup in a joint costing process at a cost of $540,000. Then the Chocolate is split off into which produces three separate products: A Bars, B Bits, and C Grade Syrup (no further processing required.) A Bars for from the Syrup Department to be processed further in the molding department with a cost of $120,000. B Bits go from the Syrup Department to be processed...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT