CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2001
    Posts
    12

    Can't figure out code on Financial Program?

    Hey guys i would first like to say i am new to this board , but i LOVE it!!! Really helps beginners like me out for sure. Ok here goes the problem i am having.... I am designing a financial forcasting program. Basically it contains 5 textboxes. One is for the investment amount, another is how often it will be compounded(i have done a list box containing the choices...weekly;monthly;quarterly;semi-annually;and annually),another textbox contains the interest rate,and another one has the term of investment in years(i have to be able to put in the value in the textbox, or use a sliderbar, which i have never used). The last textbox is contains all the computed amounts. Now the formula i was given to use is B = D(1+i)to the nt power. Now B stands for balance in the account or investment, d stands for deposit, i stands for interest rate, n stands for the number or interest periods(in a year) and t stands for the term or the investment in years. I am really stumped on this one , so if anybody can help me out i would GREATLY appreciate it? Thanks so much everyone, its nice to have help when your just learning the lauguage. Chris H.

    P S also if someone helps me, can they please explain how they did it, i am very much still a beginner. Thanks again


  2. #2
    Join Date
    Jun 2001
    Location
    Sri Lanka
    Posts
    272

    Re: Can't figure out code on Financial Program?

    First u try to put all what u want in to Equations
    Also Figure out what r the inputs & outputs
    U have to put a Button to give the command to do the calculation
    In the button's click event write the code for calculation

    Start with the following simple prog:
    Text box 1 -- > Number
    Text box 2 -- > Another Number
    Text box 3 -- > Multiplication of above 2 numbers

    U will find that u have to define variables to hold the numbers & Get the Value of the numbers in the text box etc..

    Then u can enhance ur program to do whatever u want. Don't think of the biggest program ahead of u, but break that in to small tasks, do some experiments and proceed. That's how u learn!!
    Good Luck
    Srinika



    If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured