|
-
Feb 25th, 2008, 12:17 PM
#1
Thread Starter
New Member
Vb Urgent Help
hi
I'm learning vb and completing tutorials to help understanding. however, i am stuck.
i need help with the following program. i have completed the other tutorials, but not this one as i don't know where to start from. i need to complete this as soon as possible. i am learning visual basic from tutorials but stuck on this particular one.
An Investment Club meets regularly to review a range of investment opportunities. The club members provide information about the future investment goals, and the how far ahead, in years, to achieve this goal, together with an estimate of the likely return on the investment.
For each investment the designated club member will provide the following information:
a. future investment goal, the Future Value (FV)
b. the term of the investment in years, (Term)
c. and the estimated yearly interest rate, (Rate).
For each investment by a designated club member:
a. compute and display the initial amount (PV) that must be invested to attain the investment goal for each individual investment opportunity.
b. after the calculation for each individual investment, provide a summary containing:
• the number of investments
• the total initial investment amount required for all investments to be displayed.
A club summary, which should be displayed on a second form and contain:
• a summary of the total number of investors in the club,
• the total value of all initial investments,
• the average initial investment per investor.
it's basically a calculator to that can carry out the tasks.
the variables i have got in mind:
dim interest rate as single
dim investment as single
future investment goal
please can you help me solve this. please start me of so that i know how you are doing this.
this is what i am thinking of
This is what i have thought of
Private fInitialInv As Currency ‘Initial investment amount
Private fnumInv As Integer ‘Number of investors
Private fTotalInitInv As Currency ‘Total of all initial investments
Purpose
this program computes the initial investment for individual club members
and for the club as a whole given the future goal, annual interest rate, and term in years,
the initial investment will be found and displayed. additionally, for multiple investment
by a single investor, the number of investments and their total value are computed and displayed.
finally, the number of investors, their total and average initial investment are displayed on a summary form.
Input
FV
Term (calculate by PV)
Rate
Output
Number of investments (+1)
Total investment (TInvestments + PV)
Summary
NInvestors = NInvestors +1
TInvestors = TInvestors + Investments
Average = TInvestors
__________
NInvestors
I have thought on the following buttons for the program, but not sure:
Calculate
Add to portfolio
Clear inputs
Add to club
New investor
Club summary
Exit
Investor name , text box to enter details
Investment goal, text box to enter details
Term in years, text box to enter details
GrowthRate%, text box to enter details
please help as it is urgent
-
Feb 25th, 2008, 12:30 PM
#2
Re: Vb Urgent Help
Welcome to the forums. 
Its sounds as though you have a good start.
What is your specific question? Are you having a problem with a formula?
-
Feb 25th, 2008, 03:02 PM
#3
Thread Starter
New Member
Re: Vb Urgent Help
Thankyou
My question is the cording, i don't no where to start from
-
Feb 25th, 2008, 07:32 PM
#4
Re: Vb Urgent Help
Well, I'm a little confused by you answer.
Based on your first post, you seem to know exactly what needs to be done.
If you were doing this on paper, how would you write the calculation(s)?
-
Feb 25th, 2008, 07:39 PM
#5
Hyperactive Member
Re: Vb Urgent Help
Hack can kind of see the question.
You need a form that allows the member to enter the FV target, the term of the investment, and the Rate of Interest. I think then maybe a button that has some code behind it to calculate the required PV needed to reach the FV taking into account the term (timeframe?) of the investment, and the expected rate of Interest per month/year/week.
After the calculation then the PV would be displayed.
Hope that clarifies somewhat.
-
Feb 25th, 2008, 07:53 PM
#6
Junior Member
Re: Vb Urgent Help
hello it seems to be a spreadsheet question, although I can see the advantage of coding the project in vb. Is it a uni question or required in order to make a real decision?
-
Feb 25th, 2008, 07:58 PM
#7
Hyperactive Member
Re: Vb Urgent Help
 Originally Posted by Thunder!
hello it seems to be a spreadsheet question, although I can see the advantage of coding the project in vb. Is it a uni question or required in order to make a real decision?
I'm learning vb and completing tutorials to help understanding.
Would appear to be a tutorial project from a learning course.
-
Feb 26th, 2008, 04:14 AM
#8
Thread Starter
New Member
Re: Vb Urgent Help
Hi
its a tutorial taken from text book
-
Feb 26th, 2008, 04:43 AM
#9
Thread Starter
New Member
Re: Vb Urgent Help
I'm Having Problems With Formula. I Know I Have Got A Good Start, I Know What Buttons To Create.
But How Do I Start Writing The Code
-
Feb 25th, 2008, 08:24 PM
#10
Frenzied Member
Re: Vb Urgent Help
If you have the formula, post it!
-
Feb 26th, 2008, 12:53 PM
#11
Re: Vb Urgent Help
Well, start with creating the buttons then put the code in the buttons click event.
-
Feb 26th, 2008, 01:48 PM
#12
Thread Starter
New Member
Re: Vb Urgent Help
This is the problem, i can't write the code. i'm finding it difficult. i've set up the buttons:
calculate
clear inputs
add to club
add to portfolio
new investor
club summary
exit
i can do the code for the clear inputs and exit, but not for the rest
i will be grateful if you can start me of.
-
Feb 26th, 2008, 06:04 PM
#13
Hyperactive Member
Re: Vb Urgent Help
 Originally Posted by zobi316
This is the problem, i can't write the code. i'm finding it difficult. i've set up the buttons:
calculate
clear inputs
add to club
add to portfolio
new investor
club summary
exit
i can do the code for the clear inputs and exit, but not for the rest
i will be grateful if you can start me of.
zob this is fairly straight forward stuff, surely the book you are doing the tutorial from has discussed vb coding conventions, how to use textbox values etc?
Soirry have no idea on the formula though a quick google will probably give it to you.
-
Feb 27th, 2008, 04:29 PM
#14
Thread Starter
New Member
Re: Vb Urgent Help
Thankyou for the tips. it was very useful.
i have almost completed the program. but stuck on the add to club buton. can't get that functioning.
how do i do this
-
Feb 27th, 2008, 06:22 PM
#15
Hyperactive Member
Re: Vb Urgent Help
 Originally Posted by zobi316
Thankyou for the tips. it was very useful.
i have almost completed the program. but stuck on the add to club buton. can't get that functioning.
how do i do this
Could you post the current code behind the button, and also explain in detail what you are trying to achieve.
-
Feb 26th, 2008, 02:19 PM
#16
Re: Vb Urgent Help
Do me a favor and answer the following questions.
This is what you posted in your first post:
a. compute and display the initial amount (PV) that must be invested to attain the investment goal for each individual investment opportunity.
b. after the calculation for each individual investment, provide a summary containing:
• the number of investments
• the total initial investment amount required for all investments to be displayed.
Do you know how to do the calculation for this on paper?
If so, how would you do 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|