A program computing the quotient and remainder of a division is given below. Identify two possible errors when you run this program.
private void button1_Click(object sender, EventArgs e)
{
int dividend, divisor, quotient, remainder;
dividend = int.Parse(textBox1.Text);
divisor = int.Parse(textBox2.Text);
quotient = dividend / divisor;
remainder = dividend % divisor;
textBox3.Text = quotient.ToString();
textBox4.Text = remainder.ToString();
}
2. The rules to determine bonus based on employee job code are:
JobCode = 1 300
JobCode = 2 500
JobCode = 3 700
JobCode = 4 1000
Use a decision structure to implement these rules.