Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a Windows application that functions like a banking account register. The

ID: 3678504 • Letter: C

Question

Create a Windows application that functions like a banking account register. The graphical user interface should initially allow the user to input the account name, number, and initial balance. Ensure that the full name is entered for the customer and that only numeric values are entered for number fields when the Create Account button is selected. Separate the business logic from the presentation layer by creating a Customer class. Include a deposit to and withdraw from methods in the Customer class to keep the balance updated. After an object of the Customer class is instantiated, provide textbox objects on your GUI for withdrawals and deposits. A second button should be available to update the account for withdrawal and deposit transactions showing the new balance.

**Visual Studio C# **

Explanation / Answer

class Accounthere { private string employeeCode; private string employeeName; private string employeeDescription; private double employeeBalance; public Account(string code, string name, string description, double balance) { employeeCode = code; employeeName = name; employeeDescription = description; employeeBalance = Balance; } class FinalBankAccount : Accounthere { public void deposit(double amount) { double newBalance; newBalance = Balance + amount; Balance = newBalance; } public void withdraw(double amount) { double newBalance; newBalance = Balance - amount; Balance = newBalance; } public Getbalance() {return Balance; } } public partial class BankForm : Form { FinalBankAccount BankAcc1 = new FinalBankAccount(); public BankForm() { InitializeComponent(); } private void btnOK_Click(object sender, EventArgs e) { myBankAcc1.Code = txtCode.Text; myBankAcc1.Name = txtName.Text; myBankAcc1.Description = txtDescription.Text; myBankAcc1.Balance = Convert.ToDouble(txtBalance.Text); } private void btnDepositbutton_Click(object sender, EventArgs e) { myBankAcc1.deposit(500); MessageBox.Show(myBankAcc1.Getbalance().ToString()); } private void btnWithdrawbutton_Click(object sender, EventArgs e) { myBankAcc1.deposit(700); MessageBox.Show(myBankAcc1.Getbalance().ToString()); } } }