You are on page 1of 32

WEEK 1A

Aim: Installation Procedure for Apache Tomcat


Server on WINDOWS Machine.
Steps to install Apache Tomcat server:
1)Apache download->32/64-bit Windows service installer

2)Follow the installation procedure

Click on "I agree"

Click on "next"

Step 3:Set your desired port number(The default port number is


8080). Give a username and password and click on "next"

Set the path for Java SE and click on "next"

Select your destination folder and click on "install"

Tomcat Server is successfully installed on your computer.

The tomcat manager will look like:

WEEK1B

Aim: Installation Procedure for MySQL Server on WINDOWS


Machine .

STEPS TO INSTALL MYSQL:


You can download the MySQL database from the MySQL website
http://www.mysql.com by clicking on the downloads tab. Scroll down to the MySQL
database server & standard clients section and select the latest production release
of MySQL, 5.1.35 at the time of writing.
Installation of MySQL Server
Unzip the setup file and execute the downloaded MSI file. Follow the instructions
below exactly when installing MySQL Server:

Click on next and follow the upcoming steps

Perform a typical installation and click on next

Click on install.

Wait till the Setup Wizard is being installed.

Now click on next.

Click on next

Now click on finish


If you checked the Configure the MySQL Server now check box on the final dialog of
the MySQL

Select detailed configuration and click next

Select developers machine and click on next button

Select for multi functional database and click on next

Now, select the drive where database should be stored and click
next

Select decision support and click next

Set your desired port number and click next.


It is recommended that you leave the default port 3306 in place, however
EventSentry will also work with non-standard ports if necessary.

Select standard character set and click next

Click on next

Specify a secure root password, you may want to check the box
Enable root access
from remote machines if you plan on administering your MySQL
server
from your workstation or other servers.

Click on execute

Now, click on finish.


MySql is successfully installed on your system.

WEEK1C
Aim: Installation Procedure for WAMPP Server on
WINDOWS Machine .
XAMPP INSTALLATION STEPS:
1) To install XAMPP in windows 7, first you need to download the
XAMPP installer for windows. To download the XAMPP installer for
windows, visit the
URL https://www.apachefriends.org/download.html.
2) Now, go to the "Download" section in the page. Here, you will
see XAMPP for Windows, Linux, and Mac OS X. We can easily
download the XAMPP installer for Windows.
3) Click on the Download link to download XAMPP as shown
below.

Download the desired version of Xampp

4) After downloading the installer, double click on the


executable(.exe) file to start the XAMPP installation process. Click
Yes, if User Account Control dialog box appears.
Select your language in the dialog box then click OK.

5) This dialog box below shows that you should avoid installing
XAMPP to C:\Program Files. Click OK.

Click Next.

6) Verify that all the checkboxes are checked, then click Next.

Verify that the Destination Folder is set to C:\xampp, then click


Install.

7) You will see the installation progresses. Wait for the process to
complete.

8) Click Finish to finish the installation process.

The control panel of Xampp will look like:

WEEK-3
Aim: Write an HTML program that has one input , which can take
multiline text and submit button. Once the user clicks the submit
button, it should show the number of characters, number of
words and number of lines in the text entered using an alert box.
SOURCE CODE:
<html>
<head>
<title> Count>Characters,Words,Lines </title>
<script>
function count()
{
var d=document.getElementById('data').value;
var lines,words,characters;
characters=d.length;
words=d.split(/\b\S+\b/g).length1;
lines=d.split(/\n/g).length+1;
alert("no.of characters:"+characters+","+"no.of words:"+words+","+"no.of lines"+lines);
}
</script>
</head>
<body>
<H1 align="center"><font color="blue">Counting Program</font></h1>
<center>
<form onSubmit="return count();">
<table align="center">
<tr>

<td><textarea id="data" rows="5" cols="20"></textarea></td>


</tr>
<tr>
<td>
<input type="submit" value="count">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>

OUTPUT:

WEEK-2
Aim: Write an HTML program including any required javascript
that takes a number from one text field in the range of 0 to 999
and show it in another text field in words
1. If the number is out of range, it should show Out of range
2. If it is not a number then it should say Not a number
SOURCE CODE:
<script language="javascript">
function numToString(x)
{
var r=0;
var txter=x;
var sizer=txter.length;
var numStr="";
if(isNaN(txter))
{
alert(" Not a number");
exit();
}
if(txter>999)
{
alert("Out of range");
exit();
}
var n=parseInt(x);
var places=0;
var str="";

var entry=0;
while(n>=1)
{
r=parseInt(n%10);
if(places<3 && entry==0)
{
numStr=txter.substring(txter.length0,txter.length3) // Checks for 1 to 999.
str=onlyDigit(numStr); //Calls function for last 3 digits of the value.
entry=1;
}
n=parseInt(n/10);
places++;
}
alert(str);
}
function onlyDigit(n)
{
//Arrays to store the string equivalent of the number to convert in words
var units=['','One','Two','Three','Four','Five','Six','Seven','Eight','Nine'];
var
randomer=['','Eleven','Twelve','Thirteen','Fourteen','Fifteen','Sixteen','Seventeen','Eighteen','
Nineteen'];
var tens=['','Ten','Twenty','Thirty','Forty','Fifty','Sixty','Seventy','Eighty','Ninety'];
var r=0;
var num=parseInt(n);
var str="";
var pl="";
var tenser="";

while(num>=1)
{
r=parseInt(num%10);
tenser=r+tenser;
if(tenser<=19 && tenser>10) //Logic for 10 to 19 numbers
{
str=randomer[tenser10];
}
else
{
if(pl==0) //If units place then call units array.
{
str=units[r];
}
else if(pl==1) //If tens place then call tens array.
{
str=tens[r]+" "+str;
}
}
if(pl==2) //If hundreds place then call units array.
{
str=units[r]+" Hundred "+str;
}
num=parseInt(num/10);
pl++;
}
return str;

}
</script>
<form name="fm" id="fm">
<input type="text" name="txtinput" id="txtinput" maxlength="9" />
<input type="button" onclick="numToString(txtinput.value)" id="show" />
</form>

OUTPUT:

You might also like