Skip to main content

Questions tagged [finance]

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

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 ...
John's user avatar
  • 617
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 ...
Juggernaut's user avatar
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 ...
Here_2_learn's user avatar
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 ...
Longroadahead's user avatar
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 ...
syb0rg's user avatar
  • 21.8k
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 ...
Andy's user avatar
  • 583
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: ...
Alexandru Mitu's user avatar
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. ...
Ryan Dougherty's user avatar
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 ...
user1764094's user avatar
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 ...
northerner's user avatar
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 ...
2redgoose's user avatar
  • 153
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 ...
WXHXIXTE's user avatar
  • 151
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 ...
Theodore R. Smith's user avatar
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 ...
Rob's user avatar
  • 347
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 ...
Phrancis's user avatar
  • 20.4k

15 30 50 per page
1
2 3 4 5
18