Skip to content

mirisinger/design-pattern-vending-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vending Machine Project

This project simulates the activity of a vending machine for snacks and drinks. It uses five types of Design Patterns.

Design Patterns

  • Singleton Pattern is used to ensure that there is only one instance of the vending machine.
  • Mediator Pattern is used to encapsulates interactions between the various parts of the machine.
  • Builder Pattern is used to create types of drinks step-by-step according to customer requirements.
  • Decorator Pattern is used to intended for adding optional extras to the purchased products.
  • Template method Pattern is used to select the purchase report print format. The project also includes a UML diagram that shows the relationships between the different classes in the project. The diagram is available in the docs folder.

The project is made with WinForm technology. It can be run on Windows 10 or later.

To Run the Project

  • Open a command prompt and navigate to the project directory.
  • Run the following command: dotnet run
  • The project will start up and you will be able to interact with the vending machine.

UML Diagram

The following UML diagram shows the relationships between the different classes in the project:

Vending Machine UML Diagram

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages