{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Exercise - [email protected]

This preview shows pages 1–6. Sign up to view the full content.

Name Muhammad Zia Shahid I.D MCC01101016 Institution University of Lahore Tutor: Madam Asmara Safdar

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Q:1(a) Imports System.windows.forms Module Module1 Sub Main() MessageBox.Show("Hello ") End Sub End Module Q:1(b) Imports System.windows.forms Module Module1 Sub Main() Dim x As Integer Dim y As Integer Dim result As Integer Console.WriteLine("Enter first digit") x = Console.ReadLine() Console.WriteLine("Enter Second digit") y = Console.ReadLine() result = x * y Console.Write("Produt of 2 digit is" & result)
Console.ReadLine() End Sub End Module Q:1(c) Imports System.windows.forms Module Module1 Sub Main() Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer Dim e As Integer Dim f As Integer Dim result As Integer Console.WriteLine("Enter Your Basic pay") a = Console.ReadLine() Console.WriteLine("Enter Your Bonous pay ") b = Console.ReadLine()

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Console.WriteLine("Enter House Rent") c = Console.ReadLine() Console.WriteLine("Enter Medical Allowance") d = Console.ReadLine() Console.WriteLine("Enter Graduaity fund") e = Console.ReadLine() Console.WriteLine("Enter Education Allowance") f = Console.ReadLine() result = a + b + c + d + e + f Console.WriteLine("The sum of Your PayRoll" & result) Console.ReadLine() End Sub End Module Q:2(a) Imports System.windows.forms Module Module1 Sub Main()
Dim x As Integer = 2 Dim y As Integer = 3 MessageBox.Show("The value of x " & x) End Sub End Module Q2(b) Imports System.windows.forms

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}