JuniorMint
New member
- Joined
- Mar 23, 2006
- Messages
- 2
- Programming Experience
- Beginner
Hello,
I am new to VB.Net programming and I am stuck on an assignment that my instructor just gave to me. I was hoping that someone could give me some pointers on how to solve the following. I must use VB.Net 2003.
Here is how the user interface works:
- you can enter a deposit or withdrawal by selecting the date, the appropriate option button, entering the amount, and pressing Enter.
- you can enter a cheque by selecting the "Cheque" option button, entering the "Payable To:", entering the amount and pressing Enter
- as you enter the values, the Register portion of the page adds a line for each transaction
- if you select Deposit or Withdrawal, you must enter an amount
- if you select Cheque, you must enter a "Payable To" and an amount
Here is what is necessary in your code (as a minimum):
- Implement a class to represent your chequing account. This class must do the following:
- keep the balance
- keep a record of each transaction (up to 100 transactions)
- provide a method to make a deposit
- provide a method to make a withdrawal
- provide a method to enter a cheque
I am confused on how a class can store 100 transactions and keep the balance. The instructor suggested creating a structure with the class. I am not sure how this can be done. Does anyone know how I can achieve this in the simplest way possible. I must use do the minimum which is to use a class. Any ideas? Your help will be greatly appreciated.
Thanks!
I am new to VB.Net programming and I am stuck on an assignment that my instructor just gave to me. I was hoping that someone could give me some pointers on how to solve the following. I must use VB.Net 2003.
Here is how the user interface works:
- you can enter a deposit or withdrawal by selecting the date, the appropriate option button, entering the amount, and pressing Enter.
- you can enter a cheque by selecting the "Cheque" option button, entering the "Payable To:", entering the amount and pressing Enter
- as you enter the values, the Register portion of the page adds a line for each transaction
- if you select Deposit or Withdrawal, you must enter an amount
- if you select Cheque, you must enter a "Payable To" and an amount
Here is what is necessary in your code (as a minimum):
- Implement a class to represent your chequing account. This class must do the following:
- keep the balance
- keep a record of each transaction (up to 100 transactions)
- provide a method to make a deposit
- provide a method to make a withdrawal
- provide a method to enter a cheque
I am confused on how a class can store 100 transactions and keep the balance. The instructor suggested creating a structure with the class. I am not sure how this can be done. Does anyone know how I can achieve this in the simplest way possible. I must use do the minimum which is to use a class. Any ideas? Your help will be greatly appreciated.
Thanks!