We read your photo as:

Ii) Convert contents to Decimal format:

Mathematics

ScanSolve AI Answer

Here are the VB.NET code solutions for the questions:

ii) Convert contents to Decimal format:

Dim firstNumber As Decimal
Dim secondNumber As Decimal
firstNumber = Decimal.Parse(txtFirstNumber.Text)
secondNumber = Decimal.Parse(txtSecondNumber.Text)

iii) Add contents and store in answer variable:

Dim answer As Decimal
answer = firstNumber + secondNumber

iv) Assign answer to txtAnswer using ToString method:

txtAnswer.Text = answer.ToString()
Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question