Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Middle Middle Sinister Dexter 2. Math Tutor Application math problem in a Label

ID: 3791268 • Letter: M

Question

Middle Middle Sinister Dexter 2. Math Tutor Application math problem in a Label control an application displays a simple answer to the math problem. It sho form should have a that that displays the screen in Figure 2-98 also have that closes the application The leftmost answer shows the application's form before the is clicked to display the clicked rightmost screen sh applic form after the button has been re 2-98 The Math Tutor application Math Tutor u Math Tutor 18 64 82 18 64 Show Answer Show Answer

Explanation / Answer

The issue is label1 and label1_click is not defined

you have also not missed ";" .

Here is code:

public partial class Form1 : Form

{
public Form1()
{
InitializeComponent();
label1.Text = "43 + 54 = ?";
}

private void button1_Click(object sender, EventArgs e)
{
label1.Hide();
label1_click.Text = "43 + 54 = 97";
}

private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
}