Exercise - Name Muhammad Zia Shahid I.D MCC01101016...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Name Muhammad Zia Shahid I.D MCC01101016 Institution University of Lahore Tutor: Madam Asmara Safdar Q:1(a) I mpo r ts System.w i n dows.forms Modu le Modu le1 Sub M a i n() MessageBox.Show(" Hel lo ") End Sub En d Modu le Q:1(b) I mpo r ts System.w i n dows.forms Modu le Modu le1 Sub M a i n() D i m x As I n teger D i m y As I n teger D i m resu l t As I n teger Console.Wr i teL i ne("En ter f i rst d ig i t ") x = Console.Read L i ne() Console.Wr i teL i ne("En ter Second d ig i t ") y = Console.Read L i ne() resu l t = x * y Console.Wr i te("Produ t of 2 d ig i t is" & resu l t) Console.Read L i ne() En d Sub En d Modu le 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() 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.formsImports System....
View Full Document

Page1 / 13

Exercise - Name Muhammad Zia Shahid I.D MCC01101016...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online