Coder Social home page Coder Social logo

calculator-cin's Introduction

Java Calculator

Gemaakt door Renz van Kalmthout en Alinda Klap. https://github.com/Alinda-SH/Calculator

Introductie

Dit is een in Java geprogrammeerde calculator met de opties plus en min. Dit betekent dat de applicatie plus- en minsommen kan uitvoeren. De calculator accepteerd drie verschillende manieren van input:

  1. twee losse getallen (vb: getal 1 = 5 en getal 2 = 7)
  2. een som met getallen (vb: 9-5)
  3. een som met woorden (vb: acht plus drie)

Design Patterns

Creational Pattern:

Het creational pattern in deze applicatie is een builder. De builder is gebruikt om de drie verschillende calculators (de drie verschillende inputs) goed te kunnen ordenen. De builder bestaat uit de bestanden Builder, Calculator, CalculatorBuilder1, CalculatorBuilder2 en Director.

Structural Pattern:

Het structural pattern in deze applicatie is een adapter. De adapter wordt gebruikt om van woorden naar cijfers te gaan, dit is nodig bij optie 3 van input. De adapter is te vinden in het bestand WordToNumberAdapter.

Behavioral Pattern:

Het behavioral pattern in deze applicatie is een strategy. De strategy is de basis van de calculator. De strategy wisseld tussen optellen en aftrekken en bestaat uit de bestanden Strategy, Context, Addition en Substraction.

Samenwerking

Om deze applicatie te maken hebben Renz en Alinda samen gewerkt. De adapter is gemaakt door Renz, de builder is gemaakt door Alinda en de strategy is gemaakt door ze allebei.

Renz heeft de Teams opname terug gekeken.

calculator-cin's People

Contributors

alinda-sh avatar

Watchers

 avatar

calculator-cin's Issues

unittest

As a user, I want to unittest so that I can test the code

comments

As a user, I want to comments added to the code so that I can beter understand the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.