I am supposed to create a c# based visual studio application called "TaxCalApp"The purpose of the application is to determine the tax that a person has to pay based on his taxable income.
i have done my homework and head cracking.....i cant run the program right.what is wrong with my codes,
here are my codes:
i re -did my coding:
private void calculateTaxBtn_Click(object sender, EventArgs e)
temp = taxableIncome;
temp = Convert.ToDouble(userValueTB.Text);
tax = 0;
if(temp <= 38000)
tax = 0.195 * 38000;
if(temp>38000 && temp<= 60000)
taxLBL = Convert.ToDouble(taxLBL.Text);
the error says:
Error1:The name 'taxableIncome' does not exist in the current context
Error2:Cannot implicitly convert type 'double' to 'System.Windows.Forms.Label'