for a given price. The user should be allowed to enter the price and select his or her state's Sales
Tax Rate. When they click a Button, your program will calculate and display the amount of the
Sales Tax and the overall total, rounded to two decimal places formatted as currency in output
Labels. Must use methods only no code wirten in eventhandler
Just need to know if i have the right idea on the code or i am doing it all worng !!!
public partial class taxrate : Form
{
public taxrate()
{
InitializeComponent();
}
// get int values from text box
class GetCal
{
public int Caltaxrate(int txtSP, int txtTR)
{
return txtSP * txtTR;
}
public int GetTaxRate(int txtSPO, int txtSTA)
{
return txtSPO * txtSTA;
}
}
// display values in text box
private void btnCAl_Click(object sender, EventArgs e)
{
// how to get the methods to out put useing this btn?
}
}

New Topic/Question
Reply



MultiQuote







|