Sunday, 26 February 2017

MCA 1st Sem /MCSL-016/Solved Assignment/Internet Concepts and Web Design (Lab Course)/2016-2017 New

Q.1.

A.1.                                                                  Frame.html
<html>
<frameset rows="20%,60%,*">

<frame src="header.html">

<frameset cols= "20%,80%"> 
<frame src ="menu.html">
<frame src ="content.html" name="color">
</frameset>
<frame src="footer.html">

</frameset>
</frameset>

</html>

                                         Header.html
<html>
<title>
header area 
</title>
<body bgcolor= "lightblue">
<img src="logobus.jpg" align="left" alt="logo" height=93% width=15%>
</img>
<img src="logobus.jpg" align="right" alt="logo" height=93% width=15%>
</img>

<font size=5>
<b>
<center> 
The Uttra Bus Company
<br>
D65/460, Chauraha, Lahartara, Bazardiha, Varanasi, 
<br>
Uttar Pradesh 221002, 
<br>
India
</center>
</b> 
</font>

</body>

</html>

                                           Menu.html
<html>
<title>menu area</title>
<body bgcolor="skyblue" >
<font size=5> 
<ol>
<li> <a href =home.html  target="color">Home </a>
<li > <a href=tour.html  target="color" >Tour List </a>
<li> <a href =schedule.html  target="color" >Schedule</a>
<li> <a href =booking.html  target="color" >Booking</a>
<li> <a href =contact.html  target="color" >Contact Us</a>
</ol>
</font>
<center>
<img src="logobus.jpg" height="51%"/>
</center>


</body>
</html>


                                        Content.html

<html>
<title>content area</title>
<body bgcolor="lightblue">
<img src="contentbus.jpg" height=100% width=100%/>
 </body>

</html>

                                      Footer.html
<html>
<title>
footer area
</title>
<body bgcolor="redblue" >

<center>
<pre> <b><font size=4>
©2013 Uttra Travels.All Rights Reserved. 
The Uttra Bus Company L3C - The Ride For Ride Company.Do good things.
 Developed by Parul Jaiswal.
info@uttra.com
9865456780</b></font>
</pre>
</center>
</body>

</html>


Main Page :-



    Home.html
<html>
<title>
home page
</title>
<body align="center" bgcolor="lightpink">
<font size=6 color="blue">
<b>
Welcome to The Uttra Bus Company
</b>
</font>
<br>
<center>
<font size=4 color="blue">
<br>
<br>
<br>
Uttra Travels, A best bus rental company in Varanasi,this company is established in

 <br>2011,We have a fleet of 60+ buses and Luxury A/c buses.We are very reputed 
travel
<br>  agent and deals in Buddhist pilgrimage tours package from all over India and
 Nepal.
<BR>


We provides 35/45 seater luxury AC Bus, 12/14 seater Tempo Traveller and 20 seater
 A/c  
<br>
mini bus at very reasonable rate.Our Air suspension buses are very comfortable for
 long journey.
<br>

We have more than 2 years of experience in Buddhist Pilgrimage tours in India and 
well known for 
<br>
our best car and bus rental services in Varanasi.We are always committed to serve
 you in a way 
<br>
that build a long term relationship.
<br>
<br>
You can easily Book a car on rent for Varanasi sightseeing and airport transfer
(pickup and drop). 
<br>
Also you can Book our luxury buses online for Buddhist Pilgrimage tours from Varanasi.

</font>
</center>


</body>
</html>

                                          Tour.html
<html>
<title>tour page</title>
<body bgcolor="pink">
<table border="1" width="100%" bgcolor="skyblue">
<thead>
<tr>
<td colspan="4" align="center"><b> 
<font size=6>
List Of The Tour Destination
</font>
</b>
</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4" align="center">
<b>Our Russian group makes tours of India and Nepal a couple of times a year.
 We visit different places which are connected with Buddha Shakyamuni. 
We usually have big groups and people in these groups are different, with different
 wishes and desires. During a trip we spend a lot of time on a bus. 
So the comfortable service and reliability are very important for us.
 We have been cooperating with Uttra Travels and its general manager 
Prakash Singh for several years. We are very glad that this company
 provides us with good transport. Also we appreciate Prakash Singh for his 
attentive approach to every member of our groups and also for his help in 
different unexpected situations during our journeys.
</b>

</td>
</tr>
</tfoot>
<tbody>
<tr align="center">
<th>Tour No</th>
<th>From</th>
<th>To</th>
<th>Charges</th>
</tr>

<tr align="center">
<td>1</td>
<td>Varanasi</td>
<td> Vindhyachal Dhaam ,Mirjapur</td>
<td>500/-</td>
</tr>

<tr align="center">
<td>2</td>
<td>Varanasi</td>
<td>Janki Devi Temple,Bhadohi</td>
<td>570/-</td>
</tr>

<tr align="center">
<td>3</td>
<td>Varanasi</td>
<td>Budh temple,Srnath</td>
<td>300/-</td>
</tr>

<tr align="center">
<td>4</td>
<td>Varanasi</td>
<td>Vaishnodevi,Sonbhadra</td>
<td>400/-</td>
</tr>

<tr align="center">
<td>5</td>
<td>Varanasi</td>
<td>Kanpur</td>
<td>700/-</td>
</tr>


<tr align="center">
<td>6</td>
<td>Varanasi</td>
<td>Luckhnow</td>
<td>800/-</td>
</tr>



<tr align="center">
<td>7</td>
<td>Varanasi</td>
<td>Allhabad</td>
<td>530/-</td>
</tr>



<tr align="center">
<td>8</td>
<td>Varanasi</td>
<td>Faijabad</td>
<td>320/-</td>
</tr>


<tr align="center">
<td>9</td>
<td>Varanasi</td>
<td>Gorkhpur</td>
<td>600/-</td>
</tr>

<tr align="center">
<td>10</td>
<td>Varanasi</td>
<td>Nepal</td>
<td>1500/-</td>
</tr>
</tbody>
</table>

</body>

</html>

Home Page:-


 Schedule.html

<html>
<title>
schedule page
</title>
<body bgcolor="pink"align="center">
<b>
<font size=6 >

 Timing of Buses To Different Destinations.
</font>
</b>
<br>
<br>
<br>
<table border="1" align="center">
<tbody>
<tr align="center">
<th>Tour No </th>
<th>Tour Name</th>
<th>Departure Time</th>
</tr>

<tr align="center">
<td>1</td>
<td> Vindhyachal Dhaam ,Mirjapur</td>
<td>4Am</td>
</tr>

<tr align="center">
<td>2</td>
<td>Janki Devi Temple,Bhadohi</td>
<td>3AM</td>
</tr>

<tr align="center">
<td>3</td>
<td>Budh temple,Srnath</td>
<td>6AM</td>
</tr>

<tr align="center">
<td>4</td>
<td>Vaishnodevi,Sonbhadra</td>
<td>4AM</td>
</tr>


<tr align="center">
<td>5</td>
<td>Kanpur</td>
<td>10PM</td>
</tr>


<tr align="center">
<td>6</td>
<td>Luckhnow</td>
<td>11PM</td>
</tr>

<tr align="center">
<td>7</td>
<td>Allhabad</td>
<td>7AM</td>
</tr>

<tr align="center">
<td>8</td>
<td>Faijabad</td>
<td>9AM</td>
</tr>


<tr align="center">
<td>9</td>
<td>Gorkhpur</td>
<td>5PM</td>
</tr>

<tr align="center">
<td>10</td>
<td>Nepal</td>
<td>2AM</td>
</tr>
</tbody>
</table>

</body>
</html>

Tour List Page:-



                                     Booking.html
<html>
<title>
booking page
</title>
<body bgcolor="pink">
<font size=5> 
Tour Booking Detail...
<br>
<br>

<ol>
<li> <a href =vindhyachal.html  target="color"> Vindhyachal Dhaam  </a>
<li > <a href=janki.html  target="color" >Janki Devi Temple </a>
<li> <a href =budh.html  target="color" >Budh temple</a>
<li> <a href =vaishnodevi.html  target="color" >Vaishnodevi</a>
<li> <a href =kanpur.html  target="color" >Kanpur</a>
<li> <a href =luckhnow.html  target="color"> Luckhnow  </a>
<li > <a href=allhabad.html  target="color" >Allhabad </a>
<li> <a href =faijabad.html  target="color" >Faijabad</a>
<li> <a href =gorkhpur.html  target="color" >Gorkhpur</a>
<li> <a href =nepal.html  target="color" >Nepal</a>

</ol>
</font>

</body>

</html>


Schedule  Page:-



Booking Page :-





 Contact.html

<html>
<title>
contact
</title>
<body>
<table  border="1" width="100%" bgcolor="skyblue">

<tbody>
<tr align="center">
<th>Contact By Mail</th>
<th>Contact by Phone</th>
</tr>

<tr align="center" >
<td><font size=4>
<b>

IF YOU NEED FURTHER DETAILS - PLEASE WRITE US

</b>
<pre>

</pre>

<form id="contact_form" action="#" method="POST" enctype="multipart/form-data">
<div class="row">
<label for="name">Your name:</label><br />
<input id="name" class="input" name="name" type="text" value="" 
size="30" /><br />
</div>
<div class="row">
<label for="email">Your email:</label><br />
<input id="email" class="input" name="email" type="text" value=""
 size="30" /><br />
</div>
<div class="row">
<label for="tour no">Tour No:</label><br />
<input id="tour no" class="input" name="tour no" type="text" size="30"/>
<br />
</div>

<div class="row">
<label for="contact no">Contact No:</label><br />
<input id="contact no" class="input" name="contact no" type="text" size="30"/><br />
</div>
<input id="submit_button" type="submit" value="Send" />
</form>

</td>


<td>
<font size=4>
<b>
IF YOU NEED FURTHER DETAILS - PLEASE CONTACT US
</b>
<pre>


</pre>
<br>
<Font size=5>
The Uttra Bus Company
<br>
D65/460, Chauraha, Lahartara, 
<br>Bazardiha, Varanasi,<br> 

Uttar Pradesh 221002<br>

India
<br>
CONTACT:9865456780
<br>
WEBSITE:info@uttra.com


</font>
</td>
</tr>

</table>
</font>
</body>
</html>

 Contact Us Page:-





 Vindhayachal.html
<html>
<title>
Vindhyachal page
</title>
<body bgcolor="yellow"align="center">
<b>
<font size=6 >
Booking Status.....
</font>
</b>
<br>
<br>
<br>
<table border="1" align="center">
<tbody>
<tr align="center">
<th> No </th>
<th>Person Name</th>
<th>status</th>
</tr>

<tr align="center">
<td>1</td>
<td> Vinod Jaiswal</td>
<td>Booked</td>
</tr>

<tr align="center">
<td>2</td>
<td>Janki Devi</td>
<td>Booked</td>
</tr>

<tr align="center">
<td>3</td>
<td>Rajeswar Mishra</td>
<td>Booked</td>
</tr>


<tr align="center">
<td>4</td>
<td>Vaishnvi Gupta</td>
<td>Booked</td>
</tr>


<tr align="center">
<td>5</td>
<td>Kamal Das</td>
<td>Booked</td>
</tr>


<tr align="center">
<td>6</td>
<td>Rahul Maheshwari</td>
<td>Booked</td>
</tr>

<tr align="center">
<td>7</td>
<td>Amit Keshri</td>
<td>Booked</td>
</tr>

<tr align="center">
<td>8</td>
<td>LAlita Devi</td>
<td>Booked</td>
</tr>


<tr align="center">
<td>9</td>
<td>Govid Jain</td>
<td>Booked</td>
</tr>

<tr align="center">
<td>10</td>
<td>Kisor Kapoor</td>
<td>Booked</td>
</tr>
</tbody>
</table>

</body>
</html>

Booking Status Page:-



Q.2.Write a program using Java Script / VBscipt that checks if two matrices have identical values in all the elements. (This program is NOT a part of website, therefore, should be done separately.)

A.2. JavaScript:-

An array is a special variable, which can hold more than one value at a time.

If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this:

var car1 = "Saab";
var car2 = "Volvo";
var car3 = "BMW";

However, what if you want to loop through the cars and find a specific one? And what if you had not 3 cars, but 300?

The solution is an array!

An array can hold many values under a single name, and you can access the values by referring to an index number.

Creating an Array
Using an array literal is the easiest way to create a JavaScript Array.

Syntax:

var array-name = [item1, item2, ...];       
Example
var cars = ["Saab", "Volvo", "BMW"];


<script type="text/javascript">
var array1=[1,2,3,4,5,2];
var array2=[1,2,3,4,5];
function checkForDuplicates(arr){
var x;
for(var i=0;i<arr.length;i++){
x=arr[i];
for(var j=i+1;j<arr.length;j++){
if(x==arr[j]){return 'at least one duplicate found'}
}
}
return 'no duplicates found';
}
alert(checkForDuplicates(array1));
alert(checkForDuplicates(array2));
</script>

15 comments:

  1. Good efforts Bharti
    (My blog: http://saurabhnotes4u.blogspot.in)

    ReplyDelete
  2. Your design of the blog is really eye-catching. More over the content is also very productive. Information you have provided is really very beneficial.

    Bus Rental Cost Rajpura

    ReplyDelete
  3. Your design of the blog is really eye-catching. More over the content is also very productive. Information you have provided is really very beneficial.
    Bus on Hire in Ludhiana

    ReplyDelete
  4. This is very really good and nice information and thanks.. More over the content is also very productive. Information you have provided is really very beneficial.
    Bus Services in Patiala on Rent

    ReplyDelete
  5. This is very really good and nice information and thanks. Bus on Hire or Rent.

    ReplyDelete
  6. You have written wonderful article. Greetings and thank you..

    Ropar Bus Service
    Ludhiana Bus Service

    ReplyDelete
  7. This post is so helpfull and informative.keep updating with more information...
    Digital Marketing Concepts
    Digital Marketing Services

    ReplyDelete
  8. 💗💗💗💗

    Tempo traveller in Noida

    JBL Tempo traveller rental india

    Call us 9999029051

    12 Seater Tempo Traveller in Noida

    ❣️❣️❣️❣️❣️

    ReplyDelete