Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Assignment 2 Description A consortium of shops in a large city has established an agreement with local independent van and taxi drivers to deliver products from city shops to customer destinations

Assignment 2 Description A consortium of shops in a large city has established an agreement with local independent van and taxi drivers to deliver products from city shops to customer destinations

Computer Science

Assignment 2

  1. Description

A consortium of shops in a large city has established an agreement with local independent van and taxi drivers to deliver products from city shops to customer destinations.

 

In this assignment, you will implement a notification system to send notifications about delivery requests to drivers. When a store gets a product delivery order should be created at store and a delivery request should be broadcasted to all drivers.

 

    1. Implementation Details

Your implementation should include the following functionalities:

  • Your implementation should include classes for Shop, Delivery Request and Driver.
  • For testing purpose create a Shop object, a delivery request and at least 5 driver objects.
  • For test purposes send out a single delivery request and notify all drivers regarding the delivery request.

 

Note: In this assignment, you should apply “at least one” of the design patterns out of Observer Pattern, Strategy Pattern, Factory Method Pattern, Abstract Factory Method Pattern, Singleton Pattern, Decorator Pattern.

We do not mention which one of the design patterns is suitable for this scenario. This would be your task as a software engineer to find it out.

 

Note: The given application scenario can be implemented in different ways and with different implementation details. There is not only one single correct design and implementation for the above application scenario. Each software developer might consider different assumptions and design the software based on them. In this assignment you are free to have your own detail assumptions and implement the details in your own way based on your own ideas. You should document your assumptions very well in your README.md file of your project and consider them in your UML diagrams.

 

  1. Tasks
    1. Task 1 - Implementation Description

Provide a description of how you would implement this application considering software design principles. Describe what are your main software design concepts regarding this application.

 

For example, describe:

  • How flexible is your implementation, e.g., how you add or remove in future new drink types?
  • How is the simplicity and understandability of your implementation?
  • How you avoided duplicated code?

 

In case that you have used any design patterns, describe which design pattern you have applied and why.

 

Write your description in a README.md file, use Markdown format https://spec.commonmark.org/current/ and add the README.md file to the root folder of your project.

 

We recommend writing this description after you finished the other tasks in this assignment.

 

 

    1. Task 2 - UML Class Diagram

Create a class model for your application, containing 5-8 of the most important classes. It should encompass the functionality of the use case application described above. Show only non-obvious and key methods.

 

    1. Task 3 - Implement your solution in Java
  • Provide a zip file that includes your implementation package.

The zip file should include a README.md file that describes how to compile and run your implementation. Create a Zip file from the root of your working directory so that it includes all subdirectories of your project. Remove the binary files before creating the zip files.

  • Your zip file should not be larger than 10MB, include only source files of your project but not the binaries that you generated.
  • Document your code very well. The best way to write documentation inside your code is to write the code while you are implementing the project and not postpone it to later time.
  • Each class should have a description before the implementation
  • You should use the Google Java Style Guide (https://google.github.io/styleguide/javaguide.html)
  • We should be able to compile your solution using “mvn compile” command.
  • You should implement JUnit tests for your implementation.

 

Option 1

Low Cost Option
Download this past answer in few clicks

22.99 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE