Skip to main content

Questions tagged [finance]

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

0 votes
1 answer
4k views

Calculating an employee's bonus

How can I improve this? ...
rainbowlove89's user avatar
3 votes
2 answers
1k views

Class library for processing credit cards

I am developing a class library for processing credit cards. There is a thought in management in the short-term future to look for a new credit card processor. So I want to write once and use ...
Mike Wills's user avatar
5 votes
2 answers
28k views

Cash-withdrawal from an ATM

I'm seeking review comments (design, performance, etc.) based on the problem statement: Write a CashWithDrawal function from an ATM which based on user specified amount dispenses bank notes. ...
JavaGreenhorn's user avatar
6 votes
1 answer
862 views

Determining which accounts are to be credited/debited

I recently discovered/came across linq and have been trying to learn and utilize its features. Here's my first function UpdateTransactionsData(). This method is for ...
Saad Imran.'s user avatar
1 vote
2 answers
360 views

Adding credit cards to a database

I am fairly new to PHP, and would love to have my code reviewed to see what I am doing wrong and ways to improve it. The code works fine, I just feel like there's an easier way to do this. This is ...
Drew's user avatar
  • 172
7 votes
3 answers
7k views

Sales tax calculator

Please review the sales tax problem which has been designed using strategy pattern. The Problem: Basic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical ...
somenath mukhopadhyay's user avatar
5 votes
1 answer
4k views

Transactions and locking in Rails 3

I am new to Rails and have a system that needs to process transactions. A user can enter a transaction to which one or more users are tied. These users owe some amount of money to the person making ...
skaz's user avatar
  • 211
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 ...
manwood's user avatar
  • 259
12 votes
4 answers
6k views

Calculating totals of a transaction

I am working on a project where I have to calculate the totals of a transaction. Unfortunately, coupons have proven to be quite an issue. There are four types of coupons: transaction percentage, ...
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

15 30 50 per page
1
14 15 16 17
18