{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Exercise - [email protected]

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

View Full Document Right Arrow Icon
Name Muhammad Zia Shahid I.D MCC01101016 Institution University of Lahore Tutor: Madam Asmara Safdar
Background image of page 1

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

View Full Document Right Arrow Icon
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)
Background image of page 2
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()
Background image of page 3

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

View Full Document Right Arrow Icon
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()
Background image of page 4
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
Background image of page 5

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

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}