You are on page 1of 2

University of the South Pacific

School of Computing, Information and Mathematical Sciences


IS122 – Information Systems II
Semester 1 2019- Week 4
Peer Mentoring

Question 1

Information:

Text box names:

1. txtName
2. txtAge
3. txtAddress
4. txtPhone

Write the code for the message shown above in the label named as lblMessage.
Question 2

Danieal has hired you to come up with an application that allows him to enter details of his employees at the end of
each week regarding their wages earned. He wants to enter the employees Name, Age and the amount of Total
wages earned during the week by the employee.

As a good programmer, how will you declare the variable name with an appropriate data type to store the details of
the employee?

Answer:

Question 3

Find the output in the application below:

Answer: 105

Question 4

Public Class Form1


Dim intNum1 As Integer
Dim dblNum2 As Double
Dim intWages As Integer
Din inttotal As Integer

Private Sub btnadd_Click(sender As System.Object, e As System.EventArgs)


Handles btnadd.Click

intWages = 500
inttotal = Intwages

lblMessage.txt = intotal

End Sub
End Class

Answer:

1. Dim inttotal as integer


2. Inttotal = intWages
3. lblMessage.text = inttotal

You might also like