Skip to content

bosco-ferrao/java-8-shop-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shop

Java 8 application

Installation required

  • Java 8

Step 1: Shopping cart

You are building a checkout system for a shop which only sells apples and oranges.

Apples cost 60p and oranges cost 25p.

Build a checkout system which takes a list of items scanned at the till and outputs the total cost

For example: [ Apple, Apple, Orange, Apple ] => £2.05

Namely:CheckoutSystemWithoutOffer.java

Step 2: Simple offers

The shop decides to introduce two new offers

buy one, get one free on Apples

3 for the price of 2 on Oranges

Namely:CheckoutSystemWithOffer.java

How to build

Navigate to project root directory and use the following tasks

to build: gradle build will build the project jar

to test: gradle test compiles the project and run the tests

About

java-8-shop-example offers also done

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages