Professional Documents
Culture Documents
AWP Final
AWP Final
1(a)
sum = a + b + c + d;
TextBox5.Text = sum.ToString();
}
}
Pract_1(b)
Gautam Sakhare
(IF20040)
namespace WebApplication6
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
OUTPUT:-
Atharva Jethva
(IF19023)
Pract_1(c)
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
OUTPUT:-
Atharva Jethva
(IF19023)
Pract_1(d)
Atharva Jethva
(IF19023)
Pract 2(a)
OUTPUT:-
Atharva Jethva
(IF19023)
Pract 2(a)
ii) Money Conversion:
Atharva Jethva
(IF19023)
Label4.Text = rate.ToString();
}
public class
curConv
{ public double
Dolr(double r)
{r=r*
0.015;
return r;}
public double Euros(double
r) {r = r * 0.012; return r;}
public double Pound(double r)
{ r = r * 0.011; return r; }
public double Yen(double r)
{ r = r * 1.64; return r; }
Eqations
Atharva Jethva
(IF19023)
OUTPUT:-
Pract_2(a)
Atharva Jethva
(IF19023)
(iv) Temperature Conversion
Pract_2(b)
(i)Function Overloading
OUTPUT:-
Pract 2(b)
(ii)Inheritance(All Types)
1. Single Inhertance
Atharva Jethva
(IF19023)
Protected void Button1_Click(object sender, EventArgs e)
Convert.ToInt32(TextBox1.Text); int x
Label1.Text = x.ToString();
Label2.Text = y.ToString();
public class A
public class B : A
int v1 = sqr(Val1);
return v1 * Val1;
}
Pract_2(b)
Atharva Jethva
(IF19023)
(ii) 2.Multi-Level Inheritance
Convert.ToInt32(TextBox1.Text); int x
s.pow4(n);
Label1.Text = x.ToString();
Label2.Text = y.ToString();
Label3.Text = z.ToString();
public class A
public class B : A
int v1 = pow2(Val1);
return v1 * Val1;
public class C : B
{
public int pow4(int Val1)
int v1 = pow3(Val1);
return v1 * Val1;
OUTPUT:-
Atharva Jethva
(IF19023)
Pract_2(b)
(ii) 3.Hierarchical Inheritance
public class A
public int a;
public int b;
a = Val1; b
= Val2;
return a + b;
public class C : A
a = Val1; b = Val2;
return a - b;
Atharva Jethva
(IF19023)
protected void Button1_Click(object sender, EventArgs e)
= Convert.ToInt32(TextBox1.Text); int
n = Convert.ToInt32(TextBox2.Text);
n);
Label1.Text = x.ToString();
Label2.Text = y.ToString();
Atharva Jethva
(IF19023)
Pract_2(b)
(iii) Constructor Overloading
Label1.Text = obj1.r.ToString();
Label2.Text = obj2.r.ToString();
Label3.Text = obj3.r.ToString();
public int r;
public add(int a)
r = a + a;
r = a + b;
r = a + b + c;
Atharva Jethva
(IF19023)
}
OUTPUT :-
Atharva Jethva
(IF19023)
Pract_2(b)
interface Area
return s * t;
}}
Atharva Jethva
(IF19023)
Label1.Text = x.ToString();
Label2.Text = y.ToString();
OUTPUT :-
Atharva Jethva
(IF19023)
Pract2_C
(i) Delegates and Events
public delegate string
display1()
return s1;
return s2;
Label2.Text = d2();
Atharva Jethva
(IF19023)
OUTPUT:-
Pract_2(c)
(ii) Exception Handling
try
Atharva Jethva
(IF19023)
{
int a = Convert.ToInt32(TextBox1.Text);
int resultVal;
resultVal =(b[3]/a);
Label1.Text = ex.ToString();
catch(System.IndexOutOfRangeException ex)
Label1.Text = ex.ToString();
OUTPUT:-
Atharva Jethva
(IF19023)
Pract_3(a)
Atharva Jethva
(IF19023)
Pract3_(b)
Atharva Jethva
(IF19023)
Atharva Jethva
(IF19023)
OUTPUT:-
Atharva Jethva
(IF19023)
Atharva Jethva
(IF19023)
Pract_3(c)
OUTPUT:-
Pract_3(c)
Atharva Jethva
(IF19023)
Pract_4(a)
Atharva Jethva
(IF19023)
Atharva Jethva
(IF19023)
Pract_4(b)
Atharva Jethva
(IF19023)
OUTPUT:-
Atharva Jethva
(IF19023)
Pract_4(c)
OUTPUT:-
Atharva Jethva
(IF19023)
Pract5_a
OUTPUT
Atharva Jethva
(IF19023)
Pract5_b
OUTPUT
Atharva Jethva
(IF19023)
Pract5_c
Atharva Jethva
(IF19023)
Output:-
Pract6_a
Atharva Jethva
(IF19023)
Atharva Jethva
(IF19023)
Pract6_b
OUTPUT:-
Atharva Jethva
(IF19023)
Pract6_c
Atharva Jethva
(IF19023)
OUTPUT:-
Atharva Jethva
(IF19023)
Pract7_a
Atharva Jethva
(IF19023)
Pract7_b
Atharva Jethva
(IF19023)
Prcat7_c
Atharva Jethva
(IF19023)
OUTPUT:-
Atharva Jethva
(IF19023)
Pract8_c
Atharva Jethva
(IF19023)
Pract9_a
Control template
Atharva Jethva
(IF19023)
OUTPUT
Atharva Jethva
(IF19023)
HyperLink
Output:-
Atharva Jethva
(IF19023)
Pract10_a
Atharva Jethva
(IF19023)
Atharva Jethva
(IF19023)
Pract10_c
Output:-
Pract_11
Atharva Jethva
(IF19023)
using System.Linq; using
System.Web; using
System.Web.UI; using
System.Web.UI.WebControls;
System.Web.UI.Page
TS t = new TS();
TextBox1.Text = t.UpperConvert(TextBox1.Text);
TS t = new TS();
TextBox1.Text = t.LowerConvert(TextBox1.Text);
OUTPUT:-
Atharva Jethva
(IF19023)
Atharva Jethva
(IF19023)