Question

You must use Windows Programming(Do NOT use Console) to complete this assignment. Use any C# method...

You must use Windows Programming(Do NOT use Console) to complete this assignment. Use any C# method you already know.

Create a Windows application that function like a banking account register. Separate the business logic from the presentation layer. The graphical user interface should allow user to input the account name, number, and balance. Provide TextBox objects for withdrawals and deposits. A button object should be available for clicking to process withdrawal and deposit transactions showing the new balance. Document and use comments within the program body for better understanding. Provide the algorithm for the problem. Remember to include comments in the program body to explain the codes. Also, please write the code in text so I can copy it, and please provide the output(for some reason experts are not providing me with the output).

Homework Answers

Answer #1

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication2
{
public partial class Form1 : Form
{
String strAccName = "";
long lngAccno = "";
float fltBalance = "";
float withdraw = "";
float deposit = "";
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
strAccName = textBox1.Text;
lngAccno = int.Parse(textBox5.Text);
fltBalance = float.Parse(textBox4.Text);
withdraw = float.Parse(textBox3.Text);
deposit = float.Parse(textBox2.Text);
if (textBox3.Text != null)
{
textBox4.Text = fltBalance - withdraw;
label6.Text = "you have withdrawed :" + withdraw;
}
if (textBox2.Text != null)
{
textBox4.Text = fltBalance - withdraw;
label6.Text = "you have deposited :" + deposit;
}
}
}
}

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT