Question: C# programming please Create a class named BankAccount that meets the following requirements: The class should be initialized with a constructor containing the following information:

C# programming please  C# programming please Create a class named BankAccount that meets the

Create a class named BankAccount that meets the following requirements: The class should be initialized with a constructor containing the following information: Account holder name (full name) Account number Account initial balance (ensure that initial amount must be equal or greater than zero. If not, initial balance must be set to zero.) The class should have properties (get/set accessors) for any instance variables (class level variables). Provide Methods for Deposit and Withdrawal amounts ensuring that withdrawal amount does not exceed the balance, if so, a message should display an error that "You do not have sufficient funds to complete this transaction." Provide a method to display Bank information in the following format: Account holder's name John Smith Account number: 7894564 Initial Balance $100 Finally, create a Main class to test the BankAccount's capabilities, a sample output has been provided below to test a all different scenarios: -----BANK ACCOUNT INFO---- Account holder's name: John Smith Account number: 7894564 Account Balance: $100 Enter Amount to deposit: 200 -----UPDATING BANK ACCOUNT---- Account holder's name: John Smith Account number: 7894564 Account Balance: $300 Enter Amount to withdraw: 150 ----UPDATING BANK ACCOUNT---- Account holder's name: John Smith Account number:7894564 Account Balance: $150 Enter Amount to withdraw: 200 ----UPDATING BANK ACCOUNT---- You don't have the sufficient funds to complete this transaction. Account holder's name: John Smith Account number 7894564 Account Balance $150

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!