Skip to content

CheckoutSystem to scan, validate and calculate the total price of the basket by applying the discounts

Notifications You must be signed in to change notification settings

narendravijayarao/shopping-checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopping-checkout

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 • Make reasonable assumptions about the inputs to your solution; for example, many candidates take a list of strings as input

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 • Update your checkout functions acBuy one

CheckoutSystem will scan, validate and calculate the total price of the basket by applying the discounts

About

CheckoutSystem to scan, validate and calculate the total price of the basket by applying the discounts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages