Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My assignment uses C#, Visual Studio, and a Windows form. I'm having problems connecting the array to the structure and showing the transactions in the

My assignment uses C#, Visual Studio, and a Windows form. I'm having problems connecting the array to the structure and showing the transactions in the list box. I figured out how to build the form, and I have the basic calculations and validation and exception-handling completed. I'd post my code but it goes over the number of characters allowed.

C# Array of Structures Assignment

This assignment takes the checking account project and uses a structure and an array to store the data. Your project will use a single form.

Requirements

1. Create a structure called Transaction. Typically, a transaction includes the following data: TransactionDate, Transaction Type, Transaction Amount, Payee, and Check Number. Therefore, your Transaction structure should have the following data members: TransactionDate, TransactionType, TransactionAmount, Payee, and CheckNumber.

2. 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".

3. Create a form with the following: 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 exit the application.

4. 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.

EXTRA CREDIT Add a button to remove a transaction from the listbox and the array; make sure to display the revised account balance.

image text in transcribed

Analyze Tools Extensions Window Help Search (Ctrl+Q) PPBasicChecki Continue =G=E= 10 - Par por yos Stack Frame: CheckingA...t.cs [Design] = TextBox [from metac 00% scaling. Learn more... "= Basic Checking Account Date of Transaction: Transaction Type: Transaction Amount: 1/28/2023 Calculate Payee: Check Number: Current Balance: $0.00 Reset Balance Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions