Questions tagged [finance]
Finance is for anything related to currency, payment systems, credit card number validation, etc.
265
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 ...
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 ...
25
votes
4
answers
18k
views
Validating Credit Card Numbers
This is one of the puzzles I was trying to solve, where the question is to validate the credit card number with following characteristics:
It must contain exactly 16 digits.
It must start ...
23
votes
3
answers
4k
views
Financial website scraper
I wrote the code that would scrape Finviz for tickers and href that attach to the ticker. I tested with multi-page as well as one page. I'm new to Python ...
23
votes
3
answers
3k
views
Isn't this Interest-ing?
This is the fifth project in my CS1 class. It's a bit more drab than my past projects, so my titles are getting worse unfortunately. :(
Write a program that ...
20
votes
3
answers
5k
views
Credit card verification: string conversion most optimal?
Below is some code which verifies a credit card number using the checksum as well as check if number of digits are appropriate as well if digits start with right numbers. I am not sure if converting ...
19
votes
4
answers
25k
views
Operations to a bank account
I am a new .NET/C# developer and one issue bugs me ever since I've wrote code the first time. How can I improve this code?
Program.cs:
...
18
votes
3
answers
12k
views
Credit card validator using Luhn's algorithm
I'm writing an algorithm to read from a file a list of numbers, and for each, determine if it is valid. If it is, then display which card type it is.
...
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 ...
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
2
answers
85k
views
Introductory Currency Converter
This is my basic currency converter for my intro to Java class. I'm supposed to be able to convert between Yen, Dollars, Pounds and Euros using static rates. It works, but I was curious to know if I ...
15
votes
4
answers
8k
views
Credit Calculator
The code has been test to work by the parameters listed below I just wanted to know if there were any details that I missed or blatantly overlooked.
Develop a Java application that determines ...
13
votes
4
answers
3k
views
Heavily-criticized tax calculator
I just created this during a live screencast. The people who were on there were very critical of almost every line of code. They say I am a horrible coder and know nothing. Looking at this tax ...
13
votes
6
answers
2k
views
"Do you owe the government?" classes
Should my class pass parameters internally or reference class level scoped variables?
I'm not sure on the best approach or style for procedure calls that have parameters. Should I go with the class ...
13
votes
2
answers
6k
views
Sales, Taxes and Totals
I'm working to get some practice with SQL functions which are often used in a financial setting, and I created this simple table with products, prices and tax rates basically.
I then wrote a query to ...