Question
C# EXERCISE This exercise takes the checking account project and uses a structure and an array to store the data. Your project will use a
C# EXERCISE
This exercise takes the checking account project and uses a structure and an array to store the data. Your project will use a single form. Prepare planning documents that describe the work to be performed.
TASK: CREATE A FORM TO MEET ALL OF THE REQUIREMENTS BELOW:
1) Form layout
. An array based on the Transaction structure with 20 elements.
. A decimal variable to hold the account balance.
. Controls for entering data about each transaction.
. A listbox showing all transactions. When the user clicks on an item in the list box, information about that transaction should be displayed in the appropriate controls.
. Include a label for displaying the account balance. Notify the user if the account is Overdrawn (either by color, label, or messagebox).
. A button to add a new transaction, display information in the listbox, and update the account balance label.
. A button to clear controls for entering a new transaction.
. A button to remove a transaction from the listbox; this should also remove the transaction from the array and display the revised account balance.
. A button to exit the application.
2) Requirement
A transaction includes the following values: Transaction Date, Transaction Type, Transaction Amount, Payee, and Check Number. Include the following validation:
. The transaction amount must be a positive number.
. The transaction date must be readable as a date.
. Each transaction must have a transaction type specified (deposit, service fee, withdrawal).
. If a transaction is a withdrawal, an entry for payee is required.
Create a structure called Transaction. The structure should have the following data members: TransactionDate, TransactionType, TransactionAmount, Payee, and CheckNumber. Include a ToString method that returns the transaction date, type of transaction, and transaction amount as a concatenated string, similar to the following: "07/02/2003 Deposit $500.00".
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started