Skip to content

baandreu/marketKata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Run market.php and use the user interface to emulate a product insert.

  • Interface must allow to add single products: "banana"
  • Or multiple products in a row: "banana, apple, ..."

Available Products

  • banana
  • manzana
  • apple
  • apfel
  • cherry

Product Prices

  • banana - 150
  • manzana - 100
  • apple - 100
  • apfel - 100
  • cherry - 75

Discounts

  • Every 5 products: -200
  • Every 4 apples: -100
  • Every 3 manzanas: -100
  • Every 2 apfels: -150
  • Every 2 cherries: -20
  • Every 2 bananas: free banana

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages