https://github.com/git-mastery/double-take
https://github.com/git-mastery/double-take
git-commit problem-set
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/git-mastery/double-take
- Owner: git-mastery
- Created: 2025-02-11T06:52:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-20T17:01:30.000Z (10 months ago)
- Last Synced: 2025-04-20T18:22:15.833Z (10 months ago)
- Topics: git-commit, problem-set
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `double-take`
You are trying to be more judicious in your expense tracking and have starting tracking your expenses on your computer.
> [!NOTE]
> There are two parts to this exercise! Read carefully!
## Part 1
You have designed a custom file format to track your monthly expenses. It is time for you to add your expenses for February 2025.
The process begins by creating a new file (format: `yyyy-MM.csv`) that will store all transactions for February 2025. The file needs to follow the same structure as previous months' records, including columns for Date (format: `yyyy-MM-dd`), Description, Amount.
This is what some of the records for January 2025 looks like (file also included):
```csv
Date,Description,Amount
2025-01-01,Opening Balance,0
2025-01-03,Salary Credit,3000
2025-01-10,Electricity Bill,-180,6700
```
Specifically, in February 2025, there were three expenses:
| Date | Description | Amount |
| --------------- | ------------------- | ------ |
| 3 February 2025 | Grocery store | -55.35 |
| 3 February 2025 | Haircut | -14.00 |
| 5 February 2025 | Dinner with friends | -50.25 |
### Task
Please add the above entries for your February 2025 expenses. Please name the file `2025-02.csv`. Feel free to add more entries for fun!
### Hints
Hint 1
Have you named the new expense file `2025-02.csv`?
Hint 2
Have you added the three expenses above?
Hint 3
Add the file `2025-02.csv` with the following content:
```csv
Date,Description,Amount
2025-02-03,Grocery store,-55.35
2025-02-03,Haircut,-14.00
2025-02-05,Dinner with friends,-50.25
```
## Part 2
As you were filling in your expenses for February 2025, you look back to the expenses logged for January 2025 and you notice that there are several erroneous entries.
Specifically, you realize that the "Description" for some of the entries are listed as "Unknown Transaction". That's not good for tracking!
### Task
Can you go through the expenses from January 2025 and find the erroneous entries and correct them? (Any other values work!)
### Hints
Hint 1
Have you taken a look at the `2025-01.csv` file?
Hint 2
These are the entries that need to be fixed:
- 2025-01-06: -250
- 2025-01-12: -500
- 2025-01-17: -1000
- 2025-01-23: -350
## Learning outcomes
- [ ] Apply `git add` and `git commit`
## Submission
To submit your progress, run the `submit.sh` script found in this repository:
```bash
bash submit.sh
```