Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rstraub/unusual-spending-kata-kotlin
Unusual Spending Kata in Kotlin
https://github.com/rstraub/unusual-spending-kata-kotlin
Last synced: 3 days ago
JSON representation
Unusual Spending Kata in Kotlin
- Host: GitHub
- URL: https://github.com/rstraub/unusual-spending-kata-kotlin
- Owner: rstraub
- Created: 2024-02-19T13:15:13.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-22T13:08:11.000Z (12 months ago)
- Last Synced: 2024-12-03T03:15:04.830Z (2 months ago)
- Language: Kotlin
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unusual Spending Kata Kotlin
Based on [this kata](https://kata-log.rocks/unusual-spending-kata).
## Description
You work at a credit card company, and for a new feature, they want to start providing alerts to users when their spending in any particular category is higher than usual.
Each payment has an amount, description, and category.
A category is a collection of payments like “entertainment”, “restaurants”, and “golf.”For a given user, fetch the payments for the current month and the previous month.
Compare the total amount paid for each month, per category.
A category should be marked for unusual spending when the customer spent at least 50% more this month compared to last month.
To notify the customer, compose an e-mail message listing these categories, looking somewhat like this:```
Hello card user!We have detected unusually high spending on your card in these categories:
* You spent $148 on groceries
* You spent $928 on travelLove,
The Credit Card Company
```## Points of Attention
- Pay particular attention to how you generate feedback. Are you generating enough?
- Are you solving the problem in small enough increments?