Click here to Skip to main content
15,904,024 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exit a WinForm application at initialization Pin
Glen Harvy27-Jan-07 0:55
Glen Harvy27-Jan-07 0:55 
GeneralRe: Exit a WinForm application at initialization Pin
Stefan Troschuetz27-Jan-07 1:06
Stefan Troschuetz27-Jan-07 1:06 
Questionfaq Pin
Ashutosh Kumar Gupta26-Jan-07 17:10
Ashutosh Kumar Gupta26-Jan-07 17:10 
AnswerRe: faq Pin
quiteSmart26-Jan-07 20:01
quiteSmart26-Jan-07 20:01 
AnswerRe: faq Pin
Syed Muhammad Kamran26-Jan-07 21:25
Syed Muhammad Kamran26-Jan-07 21:25 
AnswerRe: faq Pin
Christian Graus26-Jan-07 21:39
protectorChristian Graus26-Jan-07 21:39 
QuestionNeed help with loan interest calculation Pin
apricotsun26-Jan-07 16:12
apricotsun26-Jan-07 16:12 
AnswerRe: Need help with loan interest calculation Pin
Glen Harvy26-Jan-07 18:11
Glen Harvy26-Jan-07 18:11 
Hi,

Your logic is flawed? You cannot calculate the interest on the whole of the loan unless you know how long they want the loan for. Therefor your program, as it is written, will go into an infinite logical loop as the balance will never be paid.

You will need to decide when you are going to calculate and charge interest. It seems the following is what you are suggesting:

Initial Loan $10,000 (for example)
Interest rate is fixed.
Interest is charged on daily outstanding balance and is included in the fixed repayment offered.
Repayments will be fixed each month (be careful here as you will create another infinite loop if the payment is insufficient to cover principal and interest).

psuedocode is:
While (BalanceOutstanding > 0)
{
count++; // whatever your counter is
BalanceOutstanding = (BalanceOutstanding * Rate / 12) - Payment; // psuedocode
}

You would be better of not using a While statement to calculate the months - use maths (used to be called algebra when I went to school Smile | :) ). Google for the appropriate formulae.

Cheers,




Glen Harvy

GeneralRe: Need help with loan interest calculation Pin
apricotsun27-Jan-07 2:55
apricotsun27-Jan-07 2:55 
QuestionRun client-side web scripts in-memory? Pin
Jasmine250126-Jan-07 13:58
Jasmine250126-Jan-07 13:58 
Question.Net Reactor Pin
Glen Harvy26-Jan-07 13:52
Glen Harvy26-Jan-07 13:52 
QuestionMake a wrapped win32-dialog modal Pin
AlexZieg7126-Jan-07 12:45
AlexZieg7126-Jan-07 12:45 
AnswerRe: Make a wrapped win32-dialog modal Pin
Christian Graus26-Jan-07 13:23
protectorChristian Graus26-Jan-07 13:23 
GeneralRe: Make a wrapped win32-dialog modal Pin
AlexZieg7126-Jan-07 22:47
AlexZieg7126-Jan-07 22:47 
AnswerRe: Make a wrapped win32-dialog modal Pin
AlexZieg7127-Jan-07 3:37
AlexZieg7127-Jan-07 3:37 
QuestionFinding word in textbox Pin
conemajstor26-Jan-07 10:26
conemajstor26-Jan-07 10:26 
AnswerRe: Finding word in textbox Pin
Christian Graus26-Jan-07 10:33
protectorChristian Graus26-Jan-07 10:33 
GeneralRe: Finding word in textbox Pin
conemajstor26-Jan-07 10:35
conemajstor26-Jan-07 10:35 
GeneralRe: Finding word in textbox Pin
Christian Graus26-Jan-07 10:40
protectorChristian Graus26-Jan-07 10:40 
AnswerRe: Finding word in textbox Pin
engsrini27-Jan-07 22:39
engsrini27-Jan-07 22:39 
QuestionFiling Combobox with alphabet Pin
conemajstor26-Jan-07 8:34
conemajstor26-Jan-07 8:34 
GeneralRe: Filing Combobox with alphabet Pin
MoustafaS26-Jan-07 8:41
MoustafaS26-Jan-07 8:41 
GeneralRe: Filing Combobox with alphabet Pin
conemajstor26-Jan-07 8:45
conemajstor26-Jan-07 8:45 
GeneralRe: Filing Combobox with alphabet Pin
ednrgc26-Jan-07 9:16
ednrgc26-Jan-07 9:16 
AnswerRe: Filing Combobox with alphabet Pin
bobsugar22226-Jan-07 8:50
bobsugar22226-Jan-07 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.