GithubHelp home page GithubHelp logo

mfahsi / shopping-cart-scala Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24 KB

simple shooping cart pricing service for apples and oranges in scala with sbt and maven build configurations

License: MIT License

Scala 100.00%

shopping-cart-scala's Introduction

shopping-cart-scala

simple shooping cart pricing service for apples and oranges in scala. builds with sbt or maven.

  • Inputs are space separated strings from possible values : "Apple" or "Orange".
  • the price list is configured in application.conf file; Apples cost 60p and oranges cost 25p.

##Environment set up [tested]##

  • Java 1.8.0_25
  • scala 2.11.6
  • Maven 3.3.3 or Sbt 0.13

##Running instructions ## the jar executable, run with basket content as main argument : "Apple" or "Orange".

for example : ~\shopping-cart-scala>scala -cp target/cart-0.1.0.jar com.mf.shop.CartCheckoutApp Apple Orange Orange Orange

console output will be : started with prices : Map(Apple -> 0.6, Orange -> 0.25) elements in your Cart : Apple,Orange,Orange,Orange Output : PricedCart total=1.35 for items {Orange x 3 -> 0.75,Apple x 1 -> 0.6}

shopping-cart-scala's People

Contributors

mfahsi avatar

Watchers

 avatar

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.