Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Bonus Calculator

TDD training kata inspired by trainigng provided by Industrial Logic.

Individual Bonus

Your task is to write a program that will calculate the bonus a salesperson can get. To calculate the bonus, you need to know the salesperson's total sales amount, their quota, their commission percentage and any tax that must be deducted.

Examples:

Sales Quota Commission Percentage Tax Percentage Resulting Value
12000 11000 10 10 90.0
13000 15000 10 10 0.0
15000 15000 10 10 0.0

Team Bonus

A member of a sales team is entitled to a bonus if their team's total sales exceeds their team's quota.

Examples:

Sales Quota Commission Percentage Team Members Resulting Value
12000 11000 10 4 25.0
12000 11000 50 5 100.0
13000 15000 10 4 0.0
12000 12000 10 4 0.0
12000 11000 10 0 0.0

About

TDD training kata inspired by trainigng provided by Industrial Logic.

Resources

Stars

1 star

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors

Languages