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

Using Visual studio C#.....Create a Windows application that functions like a ba

ID: 3752922 • Letter: U

Question

Using Visual studio C#.....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. Please be specific about how to input the properties and how the form should look

Explanation / Answer

CODE:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace Banking_register_cs

{

public partial class Form1 : Form

{

public String name;

public int accno;

public double intibal, trnamt, amt=0;

public Form1()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

name = textBox1.Text;

accno = Convert.ToInt32(textBox2.Text);

intibal = Convert.ToDouble(textBox3.Text);

trnamt=Convert.ToDouble(textBox4.Text );

}

private void button2_Click(object sender, EventArgs e)

{

Customer o = new Customer();

if (radioButton1.Checked )

{

amt = o.deposit(intibal, trnamt );

}

if (radioButton2.Checked )

{

amt = o.withdrawal(intibal, trnamt );

}

textBox5.Text = amt.ToString ();

}

}

public class Customer : Form1

{

public double deposit(double ib, double tr)

{

double tot = ib + tr;

return tot;

}

public double withdrawal(double ib, double tr)

{

double tot = ib - tr;

return tot;

}

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote