|
Hello Im currently doing a project in Visual Studio 2010 where I need to create a bank account with 5 tabs. on the first tab the user is to put their info in (name addres etc) and the balance they wish to deposit. The deposit cant be a negative number and the starting deposit "will be passed to the createAccount method" as stated in project outline. Im really lost in this class and dont know exactly how to do this. Im guessing it needs to have a method created for it because the balance can be adjusted with the withdrawls and deposits that can be made after the account is created and the deposits and withdrawls also need a method because the with draw will reduce the users balance in the "accountInto array" Im really really lost and if anyone can give me any guidance I would appreciate it!
|
|
|
|
|
Magda6347 wrote: Im really really lost You seem to be starting at the wrong place for this question. Start by thinking about what information you need to maintain in your class and what operations you need to perform during its lifetime. Take a look at this documentation[^], or if you have a decent reference manual handy, go to the classes section in there.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
A good place to start is with the user interface. Just use the designer to add and position the controls where you want them. This is an easy step, but it clarifies what you need to do next.
The second step is to define handlers for the controls, e.g. a function that's called when the user clicks a button.
The third step is to define the variables to maintain the information your program will need, as Richard has suggested.
The next step is to implement the functions that process this information to give the desired results.
"Microsoft -- Adding unnecessary complexity to your work since 1987!"
|
|
|
|
|
You are so helplessly lost. You really need to start from basics and ask a specific TECHNICAL question, not some vague 'help me do my project for me' type question.
You want 'bank account method' help? Tell me, where is 'bank account' on a VS menu? DOes it exist? Do you want VS to think for you?
Here is some advise. Either give up programming or go back to square one and think, think REALLY carefully about what you want to achieve. Then come back and ask a question when you have one that is fully formed. (Oh, and when you have got a question FULLY formed that is worthy of asking, it will suggest its own solution.)
Sorry for being such a c*^t, but I am an arrogant bastard who has been programming all kind of complex stuff for so long I can not bear the ignorance that laziness brings.
|
|
|
|
|
No need to apologize I pity people like you who waste energy on trying to degrade people rather than help them.
|
|
|
|