Skip to content

BelixRogner/itemis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itemis coding challenge

usage

  • run TaxApp.py
  • enter one line/product at a time
  • press enter (don't give any input) to print the receipt

unit tests

  • run tests.py

assumptions

  • each product has to have its own line fitting this regex (case insensitive): "^(\d+) (.*) at ([-+]?\d+).(\d{2})$"
  • the input price is meant for the quantity of 1
  • multiple whitespaces should be ignored in the product name
  • an imported product has the substring "imported" (case insensitive)
  • if a product is imported it should be the first part in the receipt (after the quantity)
  • round up to the nearest 0.05 means: round n up to the nearest 0.05, which is >= n

About

itemis coding challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages