Questions tagged [finance]
Finance is for anything related to currency, payment systems, credit card number validation, etc.
26
questions
60
votes
11
answers
14k
views
Sales tax calculator, rejected for being not OOP
I applied for an Application Developer position. They require all their applicants to complete 1 of 3 programming assignments. I picked one for sales tax calculation. It was quite simple.
Write ...
8
votes
1
answer
6k
views
Hypothetical SalesTax challenge
I have a small solution to the following hypothetical problem:
Basic sales tax is applicable at a rate of 10% on all goods, except
books, food, and medical products that are exempt. Import duty ...
8
votes
1
answer
512
views
SalesTax problem (C# version)
One year ago I published an F# solution of the same task and there is an old C# solution. But I think it's a simple task and require a simple solution.
What do you think?
...
4
votes
2
answers
2k
views
Fast OrderBook Implementation
I'm creating a simple yet fast OrderBook, that only adds orders and matches them (no cancelling or modifications, etc.). I'm using partial template specialization to reduce branching in the hotpath, ...
25
votes
7
answers
5k
views
Sales Tax Problem, rejected for not being up to their standards
I applied for a Junior .NET Developer Position recently, and I was asked to solve a problem (Sales Tax Program) and I was rejected for some reason. The question goes like this:
Basic sales tax is ...
15
votes
3
answers
24k
views
Basic Python OO bank account
I am learning Python and in particular learning about classes. Since I'm self teaching, I'd appreciate any feedback and constructive criticism.
I have a couple specific questions:
In Python you can ...
15
votes
8
answers
5k
views
Asking a user to take money from a checking account and move it to a savings account
I'm aiming to get this program right as I might show it at a job interview. The code below runs fine but I would like to know if there's anything that can be improved in terms of readability, good ...
12
votes
2
answers
362
views
Prorated refund calculator
I wrote this little piece of script for my workplace (insurance, etc.) to help our admins, as a light and simple file I can just email to my colleagues.
The purpose of it is to calculate a prorated ...
7
votes
2
answers
4k
views
Bank account model implementation in Django
There is a draft of my models.py. What can I do for code quality and readability increase?
...
7
votes
2
answers
2k
views
Bank Management System
I'm new to C++ and wrote this Bank Management System app. It's one of the projects that everyone does as a beginner. This app runs perfectly so far. I tried to use OOP and encapsulation in this app. ...
6
votes
1
answer
90k
views
Bank ATM program in Python
For homework, I have to code a program in Python that effectively simulates a bank ATM.
...
6
votes
2
answers
3k
views
Python tuition calculator
I'm a student learning Python, I made this calculator that will tell you the tuition for the next 5 years at an increase of 3% per year. How can I improve on this and did I do anything that isn't best ...
6
votes
1
answer
2k
views
Bank saving account class in Python (pandas)
I am setting up a kids bank account class to teach them how to save, and myself how to write a class in Python. The original idea was to create a pandas DataFrame that will show how the money gains ...
6
votes
2
answers
2k
views
Retrieving stock prices
It takes around 5-8 seconds for me to retrieve a previously-closed stock price and a dividend rate from US Yahoo! Finance. If I wanted to retrieve 10+ stock prices, it would take me more than a minute ...
6
votes
1
answer
80
views
Recommend Next Note Purchase
I have just started trying to learn Haskell and tried to think of a practical, but simple problem to try and solve. I have a strong background in C, but am just beginning to dip my toes in the world ...