Professional Documents
Culture Documents
Practical No:30. Aim:Wap To Implement 2 Dimensional Array.: Using Namespace Class Static Void String Int New Int For Int
Practical No:30. Aim:Wap To Implement 2 Dimensional Array.: Using Namespace Class Static Void String Int New Int For Int
OUTPUT:
NAME: Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
PRACTICAL NO:31.
AIM:WAP TO IMPLEMENT JAGGED ARRAY.
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
namespace _2_DARRAY
{
class Program
{
static void Main(string[] args)
{
int[][] JA = new int[3][]
{
new int[]{0,1,2,3},new int[]{12,13,14},new int[]
{40,41,42,43,44}
};
Console.WriteLine(JA[2][2]);
Console.ReadKey();
}
}
}
OUTPUT:
NAME:
Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
PRACTICAL NO:32.
AIM: WRITE A CONSOLE APPLICATION THAT
OBTAINS FOUR INT VALUES FROM THE USER
AND DISPLAYS THE PRODUCT. HINT: YOU MAY
RECALL THAT THE CONVERT.TODOUBLE()
COMMAND WAS USED TO CONVERT THE
INPUT FROM THE CONSOLE TO A DOUBLE;
THE EQUIVALENT COMMAND TO CONVERT
FROM A STRING TO AN INT IS
CONVERT.TOINT32().
using System;
namespace Practical1
{
class Practical
{
static void Main()
{
int no1, no2, no3,no4,product;
Console.WriteLine("Enter Four No : ");
no1 = Convert.ToInt32(Console.ReadLine());
no2 = Convert.ToInt32(Console.ReadLine());
no3 = Convert.ToInt32(Console.ReadLine());
no4 = Convert.ToInt32(Console.ReadLine());
product = no1 * no2 * no3 * no4;
Console.WriteLine("product of Given No = " +
product);
Console.ReadLine();
}
}
OUTPUT:
NAME: Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
PRACTICAL NO:33.
AIM: IF YOU HAVE TWO INTEGERS STORED IN
VARIABLES VAR1 AND VAR2, WHAT BOOLEAN
TEST CAN YOU PERFORM TO SEE IF ONE OR
THE OTHER (BUT NOT BOTH) IS GREATER
THAN 10?
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
namespace P2
{
class Program
{
static void Main(string[] args)
{
int var1, var2;
Console.WriteLine("enter two variables:");
var1 = Convert.ToInt32(Console.ReadLine());
var2 = Convert.ToInt32(Console.ReadLine());
if (var1 > 10 && var2>10)
{
Console.WriteLine("INVALID INPUT");
}
else if (var1 > 10 && var2 < 10)
{
Console.WriteLine("INVALID INPUT");
}
else if (var1 < 10 && var2 > 10)
{
Console.WriteLine("INVALID INPUT");
}
else
{
Console.WriteLine("VALID INPUT");
}
Console.ReadKey();
}
}
}
OUTPUT:
NAME:
Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
PRACTICAL NO:34.
(34.A):
AIM:WAP TO IMPLEMENT INLINE CSS.
SOURCE CODE:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="inline.aspx.cs" Inherits="inline" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<p style="font-size:30px;color:Green;">INLINE CSS</p>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
STYLESHEET CODE:
.button
{
OUTPUT:
NAME: Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
(34.B):
AIM:WAP TO IMPLEMENT EXTERNAL CSS.
SOURCE CODE:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 100%;
}
.style2
{
}
.style3
{
}
.style4
{
width: 56px;
}
</style>
</head>
<link rel="Stylesheet" type="text/css" href="ExternalCss.css">
<body>
<form id="form1" runat="server">
<table class="style1">
<tr>
<td class="style3" colspan="2">
 
; &nbs
p; &nb
sp;
<asp:Label ID="Label1" runat="server"
Text="WELCOME TO EXTERNAL CSS"
CssClass="common"></asp:Label>
</td>
</tr>
<tr>
<td class="style4">
<asp:Label ID="Label2" runat="server"
Text="USERNAME" CssClass="common"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"
CssClass="textbox"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style4">
<asp:Button ID="Button1" runat="server"
Text="LOGIN" CssClass="button" />
</td>
<td>
</td>
</tr>
<tr>
<td class="style2" colspan="2">
</td>
</tr>
</table>
</form>
</body>
</html>
STYLESHEET CODE:
.button
{
font-family:Times New Roman;
font-size:28px;
font-weight:bold;
}
.textbox
{
font-family:Times New Roman;
font-size:28px;
border:2px solid goldenrod
}
.common
{
background-color:white;
color:orange;
font-size:30px;
font-weight:bold;
}
OUTPUT:
NAME: Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
PRACTICAL NO:26.
AIM:LOGIN FORM WITH BACKGROUND IMAGE.
NAME: Sameer.jadhav
ROLL NO:46.
CLASS:TYIT.
PRACTICAL NO -30
AIM : WAP TO IMPLEMENT DELEGATE METHOD.
using System;
namespace ConsoleApplication2
{
publicdelegatevoiddele();
classProgram
{
publicstaticvoid Example()
{
Console.WriteLine("called by delegate.");
}
publicstaticvoid Main()
{
dele d1 = newdele(Example);
d1();
Console.ReadKey();
}
}
Output:
NAME: Sameer.jadhav
Roll no 46
TYIT
Practical-33
AIM: WAP TO IMPLEMENT EMBEDDED STYLE SHEET(INTERNAL STYLE SHEET).
<
%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Embeddedstylesheet.aspx.cs"Inherit
s="Embeddedstylesheet"%>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0
Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> Learning Embedded Stylesheet</title>
<Styletype="text/css">
p{color:Green}
importantstuf{fontsize:20;}
#lOOkhere {fontsize:28px; text_align;center;color:Green}
</style>
<body>
<p> I AM LEARNING HTML!</p>
output:
Name:Sameer.jadhav
ROLL NO-46
TYIT
PRACTICAL NO:25.
AIM:WAP TO IMPLEMENT LIST BOX CONTROL.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
OUTPUT:
ALI
A LI
Sameer.jadhav
ROLL NO-46
TYIT