Question: Create a project using C# visual studio Create a class called Transaction. The class should have the following read / write properties: TransactionDate, TransactionType, TransactionAmount,
Create a project using C# visual studio Create a class called Transaction. The class should have the following readwrite properties:
TransactionDate, TransactionType,
TransactionAmount, Payee, and CheckNumber.
Include a ToString method to display account information.
Include the following validation in your class:
A transaction must have at least a transaction date, a transaction amount, and a transaction type.
The transaction amount should be tested to make sure it is a positive number. Use a static function to provide this test.
Each transaction must have a transaction type specified as deposit, service fee, or withdrawal.
The value of Payee defaults to "Deposit" if the TransactionType is deposit; and defaults to "Service Fee" if it is a service fee. If a transaction is a withdrawal, an entry must be made in the payee textbox and stored in the Payee property.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
