CS 255 4-2 Assignment

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

CS255

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by MinisterMonkeyPerson767

Report
William Chatman II 2/4/2024 CS 255 4-2 Assignment Interpret the object model  for the new online storefront by responding to the following prompts: What are the different functions of the online storefront? How are they represented in this type of model? o There are 12 different functions within the object model, and they are all public functions meaning they can be accessed anywhere within the system. The 12 functions are spread amongst 7 classes. What are the different classes of “users” represented by this object model? What are the associations between these classes? o There are 2 different classes of users in this object model, and they are Customer and Administrator. Both classes have inheritance from the User class meaning that they both access the attributes and functions from the User class. How would the objects “use” their respective variables and functions? o There a many different objects that are built into the object model for use in the system and one thing they have in common is how they “use” their respective variables and functions. Object model systems require an input or a default value that it is set to and stored. When stored this allows those objects to be called so that those stored values can be referenced. Following the Customer object the customer must first register for an account which is stored as the User object and once they have an account, they can login and update their profile. Within the profile object that contains the customer’s name, address, email, billing information, shipping information and account balance. The Customer object is connected to the shopping cart object that stores the unique cart ID, product ID numbers, the quantity for each product ID and the date the product was added. Once the shopping cart is converted into an order the order object is created and stores the unique order ID number, date timestamp of creation, shipment data, customer name, customer ID, shipping status and shipping ID number. The order object is connected to the shipping info object and order details object. The shipping info object stores the shipping ID number, the shipping type, shipping cost and shipping region. The order details object stores the unique order ID number, product ID numbers, product names, the quantity for each product ID, cost for each product ID and subtotal of the order. Does this object model capture all of Hamp Crafts’ desired functionality? Why or why not?
o This object model doesn’t capture all of the desired functionality requested by Hamp Crafts’. There is one key functionality missing and that is the administrator class request to be able to provide customer support. In the current model the Administrator user can only update Catalogs and nothing with assisting customers with any of the objects associated with Customers. The above diagram uses a solid diamond shape to represent a form of aggregation. What type of aggregation does this represent? What does it imply about the relationship between the classes? Why is a solid diamond the appropriate choice here? o A solid diamond shape represents the composition aggregation type. This type of aggregation implies that there’s a partial relationship between the two classes linked by this aggregation type. The class that the solid diamond is apart of is called the whole classes, while the other classes is called the partial class. This means that the partial class cannot exist without the whole class. This type of aggregation is essential for Hamp Crafts’ object model because many of the models cannot exist without certain attributes being updated from other objects. For example, without the Customer object the Order object couldn’t function due to the customer’s name and ID attributes resulting in a null reference. Finally, think through the two different models you’ve explored for Hamp Crafts’ systems: a process model and an object model. Then compare these models by responding to the following prompts: How well do you think a process model describes the system? What information makes it easier to understand? What aspects of the system are more difficult to understand or are not represented? o I believe that a process model is extremely effective and simple in its representation of a system and how it should function. However, it doesn’t effectively represent how certain aspects of the system works together. How well do you think an object model describes the system? What information makes it easier to understand? What aspects of the system are more difficult to understand or are not represented? o I believe that a object model is more complex in its representation of a system and how it should function and clients may struggle to grasp if the model is fulfilling their specific requirements. Despite it being more complex it does provide an easy understanding of how certain aspects of the system works together.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help