Questions tagged [finance]

Finance is for anything related to currency, payment systems, credit card number validation, etc.

Filter by
Sorted by
Tagged with
54
votes
11answers
12k 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 ...
7
votes
1answer
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
1answer
418 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? ...
23
votes
7answers
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 ...
6
votes
1answer
54k views

Bank ATM program in Python

For homework, I have to code a program in Python that effectively simulates a bank ATM. ...
15
votes
3answers
16k 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 ...
11
votes
2answers
305 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 ...
6
votes
3answers
182 views

Thread-safe retirement account class

Are these classes properly guarded for thread safety? Do you see any issues with any of the classes? ...
5
votes
2answers
2k 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? ...
1
vote
1answer
141 views

SalesTax challenge

This is the same problem, but I decided to do it using F#. I'm just interested in how I can improve it. ...
15
votes
8answers
4k 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 ...
6
votes
1answer
71 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 ...
6
votes
1answer
865 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
2answers
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
2answers
2k 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 ...
4
votes
2answers
2k views

Credit card checking

I am practicing test-driven development in Python. Feedback about both the tests and the code is appreciated. I'm using luhn algorithm and regex to check credit card numbers for validity. Here are ...
4
votes
1answer
975 views

Luhn algorithm MS-SQL

This a solution Luhn algorithm for credit validation. This algorithm is a basic one inspired by wikipedia. I mean no check for length, type, and so on. You can enhance the base code as you want it to ...
4
votes
2answers
880 views

Python tuition calculator 2.0

Here is my program that calculates tuition cost for the next five years. I have had some review on it so far, but I am seeking more. Please keep in mind I am new to programming, so I may require a few ...
3
votes
2answers
332 views

Asking a user to take money from a checking account and move it to a savings account - follow-up

I made a few changes to this: Asking a user to take money from a checking account and move it to a savings account The changes I made were: improved the names of methods and variables to better ...
3
votes
2answers
86 views

Model class representing a financial calculator

Here is my Model class's new header file: ...
2
votes
1answer
86 views

Road tax data parser

I'm making a data parser for road tax data (costs) which parses a JSON file with all weird variable names, which the customer gave me. The costs are different on each vehicle type. The costs at some ...