Answer:
The answer of the the following question are 0(n^2)
The total number of multiplication is 2
And the total number of addition is 1
Explanation:
Let the size of the input is the degree of the polynomial = "n"
Than the number of the multiplications depends on "n"
Let the number of multiplication = M(n)
Let the number of addition = A(n)
1): Solution-
M(n) = n∑_{i=0} i∑_{j=1} 2
= 2 n∑_{i=0} i∑_{j=1}
= 2 n∑_{i=0} i-1+1
= 2 n∑_{i=0} i
= 2 * n*(n+1)/2 = n*(n+1)
= n^2 + n ∈ 0(n^2)
2): Solution for addition-
A(n) = n∑_{i=0} i∑_{j=1} 1
= by solving this from the same way it leads to
= n^2 + n and n^2 + n ∈ 0(n^2)
Answer:
We need to add four labels Taxable Income, Tax rate, total tax, and Total Due. And in front of them, you can add four textBoxes, or labels or as required.
The Tax rate is 5%.
And
Explanation:
BtnCalc_Click will calculate and display in lblTax
double tax = Convert.ToDouble((textBox1.Text)) * 5/100;
double Roundedtax = Math.Round(tax, 2);
textBox2.Text = Convert.ToString(Roundedtax);
textBox2.Show();
// we can use lblTax instead of textBox2. The further code will be almost change, and we need to use lblTax label instead of textBox2.Text.
BtnCalc_Click will calculate and display in lblTotal
textBox3.Text = Convert.ToString(Convert.ToDouble(textBox1.Text) + Convert.ToDouble(textBox2.Text));
textBox3.Show();
//This is lblTotal or the total Tax. We can use lblTotal label instead of the textBox3.Text.
BtnExit_Click will end the application:
Use this code in this method.
this.Close();
// This closes the application immediately on click on the Exit button.
Correct answer is B. had this question in the past
Answer:
the answer is going to be district b