Wednesday, 1 October 2014

BCA HTML Assignment

                                                                  
 Write HTML code to display calendar of the current month.
<html>
<body><table border="2">
<tr>   <td colspan="7" align="center">Sep 2014</td></tr>
<tr>
          <td>Son</td> <td>Mon</td><td>Tue</td>        <td>Wed</td>
          <td>Thu</td>      <td>Fri</td>        <td>Sat</td>
</tr>
<tr>
          <td>-</td>  <td>1</td> <td>2</td> <td>3</td>
          <td>4</td> <td>5</td> <td>6</td>
</tr>
<tr>
          <td>7</td> <td>8</td> <td>9</td> <td>10</td>
          <td>11</td>         <td>12</td>         <td>13</td>
</tr>

<tr>
          <td>14</td>         <td>15</td>         <td>16</td>
          <td>17</td>         <td>18</td>         <td>19</td>
          <td>20</td>
</tr>
<tr>
          <td>21</td>         <td>22</td>         <td>23</td>
          <td>24</td>         <td>25</td>         <td>26</td>
          <td>27</td>
</tr>
<tr>   <td>28</td>         <td>29</td>         <td>30</td>
          <td>31</td>         <td>-</td>  <td>-</td>
          <td>-</td>
</tr></table></body>
</html>
* * *
                                                                  
 Write HTML code to display following train details using table.
Train name
Starting
 place
Destination place
Time
Fare
Arrival
Departure






(Insert at least 5 records)

<html>
<body>
<table border="2">
<tr>
     <td rowspan="2">Name</td>
     <td rowspan="2">Starting </td>
     <td rowspan="2">Deatination</td>
     <td colspan="2" align=center>time</td>
     <td rowspan="2">fare</td>
</tr>
<tr>
     <td>Arrival</td>
     <td>Depanture</td>
</tr>
<tr>
     <td>panchwati exp</td>
     <td>manmad</td>
     <td>mumbai</td>
     <td>6:00 am</td>
     <td>6:10 am</td>
     <td>200</td>
</tr>
<tr>
     <td>pune exp</td>
     <td>pune</td>
     <td>mumbai</td>
     <td>7:00 am</td>
     <td>7:05 am</td>
     <td>150</td>
</tr>
<tr>
     <td>Malegaon exp</td>
     <td>manmad</td>
     <td>malegaon</td>
     <td>5:00 pm</td>
     <td>5:10 pm</td>
     <td>50</td>
</tr>
<tr>
     <td>nashik exp</td>
     <td>nashik</td>
     <td>mumbai</td>
     <td>7:00 am</td>
     <td>7:05 am</td>
     <td>150</td>
</tr>
<tr>
     <td>nagpur exp</td>
     <td>nagpur</td>
     <td>pune</td>
     <td>7:00 am</td>
     <td>7:05 am</td>
     <td>150</td>
</tr>
</table>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write HTML code to design the following form.

Personal Information
First Name :
Last Name :
Address :
Mobile Number :
Gender                        Male              Female     
Your Interests            Computer       Sports       Music

Submit

Reset
 



                            
                                                                       
<HTML>
<BODY>
<TABLE >
<h1> Personal  Information</h1>
<tr>
<td>Frist Name</td>
<td><input type="text "size="30"></td>

</tr>
<tr>
<td>Last Name</td>
<td><input type="text "size="30"></td>
</tr>
<tr>
<td>Address</td>
<td><input type="text "size="30"></td>
</tr>
<tr>
<td>Mob No</td>
<td><input type="text "size="30"></td>
</tr>
<tr>
<td>Gender</td>
<td><input type="radio" >Male<input type="radio" > Female</td>
</tr>
<tr>
<td>Interest</td>
<td><input type="checkbox">Sport<input type="checkbox"> Computer<input type="checkbox">Music
</td>
</tr>
<tr>
<td>Gender</td>
<td><input type="Button" value="Submit"><input type="button" value="Reset"> </td>
</tr>
</TABLE>
</BODY>
</HTML>
* * * * *



                                                                   Date:        /       / 2014
 Write HTML code to divide the web page into different frames and each frame will display the text as shown below.
One
Two
Three
Four
Five
Six
Seven
Eight
Nine

<html>
<Frameset rows=20%,20%,20%,20%,20%>
     <frameset cols=50%,50%>
              <frame src=1.html>
              <frame src=2.html>
     </frameset>
     <frame src=3.html>
     <frameset cols=33%,34%,33%>
              <frame src=4.html>
              <frame src=5.html>
              <frame src=6.html>
     </frameset>
     <frame src=7.html>
     <frameset cols=50%,50%>
              <frame src=8.html>
              <frame src=9.html>
     </frameset>
</frameset>
</html>

Code For Create HTML File 1 TO 9 .
<html>
<body>
<h1 align="center" >One</h1>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write HTML code to design a web page displaying list of hyperlinks. Divide the browser screen into two frames. The frame on the left will be an image. The frame on the right will be a menu consisting of hyperlinks. Clicking on any one of these hyperlinks will display related information as a new page which must be open  in frame on the right hand side.
Welcome to Wipro Company

Image

a.     About Us
b.     Employees
c.      Careers
                                                                                     
Code for Main Form.  
<HTML>
<frameset rows=20%,80%>
          <frame src=title.html>
          <frameset cols=50%,50%>
                   <frame src=img.html name="left">
                   <frame src=menu.html name="right">
          </frameset>
</frameset>
</HTML>
Cod e for Menu Form.
<html>
<body>
          <a href="about.html" target="right">About us</a><br>
          <a href="emp.html" target="right">Employees</a><br>
          <a href="carees.html" tareget="right">Careers</a><br>
</body>
</html>
Code for  Img Form.
<HTML>
<BODY>
<img src="file:///F:/TRANSCEND/My%20walpaper/Alia%20BhTT/alia--28a.jpg" height="90%" width="100%">
</BODY>
</HTML>
Code For About us From.
<Html>
<body>
<H2> This is a Abouts Page </h2><br>
<a href="menu.html" target="right">BACK</a>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write HTML code to link external documents. After Clicking on each hyperlink related information should be displayed in the new web page. Use appropriate HTML tags or HTML elements to display the information.
Information of Computer Course
·        B. Sc. Computer Science
·        BCA
·        M. Sc. Computer Science
·        MCA

Cod e for Menu Form.
<html>
<body>
          <h1> Information of Computer Course </h1>
<ul type="disc">
          <li>
<a href=" B. Sc. Computer Science.html">B. Sc. Computer Science</a><br>
          </li>
          <li>
                   <a href="BCA.html" >BCA</a><br>
          </li>
          <li>
<a href=" M. Sc. Computer Science.html">M . Sc. Computer Science</a><br>
          </li>
          <li>
                   <a href="MCA.html" >MCA</a><br>
          </li>
</ul>
</body>
</html>
Code For  BCA Page.
<html>
<body>
          <h1> This is BCA page </h1>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write a menu driven program to perform the following options using JavaScript:
          1. To find Armstrong numbers between 1 to 1000.
          2. To print sum of the digit of a number.
Code for Mune Page.

<html>
<body>
          <h1>Menus. </h1>
<ol>
          <li>
                   <a href="armstrong.html">To find Armstrong numbers between 1 to 1000.</a><br>
          </li>
          <li>
                   <a href="sumofdigit.html" >To print sum of the digit of a number. </a><br>
          </li>
         
</ol>
</body>
</html>
Code for Armstrong numbers Page.
<html>
<head>
<script>
function armstrong()
{
   var n,c,a,b;
   n=parseInt(document.f1.t1.value);
   b=n;
   a=0;
   while(n>0)
   {
         c=n%10;
         a=a+(c*c*c);
         n=parseInt(n/10);
   }
   if(b==a)
  {
         document.write("  No Is Armstrong       "+b);
  }
  else
 {
         document.write("   No Is Not Armstrong      "+b);
 }
}
</script>
</head>
<body>
    <form name="f1">
Enter Any Number<input type="text" id="t1">
<input type="submit" onclick=armstrong()><br>
<a href="menu.html">BACK</a>
     </form>
</body>
</html>

Code For sum of the digit of a number.

<html>
<head>
<script>
function armstrong()
{
var n,rem,sum;
n=parseInt(document.f1.t1.value);
sum=0;
while(n>0)
{
     rem=n%10;
     sum=sum+rem;
     n=parseInt(n/10);
}
document.write("  Sum of Digit is      "+sum);
}
</script>
</head>
<body>
   <form name="f1">
Enter Any Number<input type="text" id="t1">
<input type="submit" onclick=armstrong()><br>
<a href="menu.html">BACK</a>
   </form>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
 Write  HTML code to link internal documents. After clicking on each hyperlink cursor should move to the related information on the same page. Use appropriate HTML tags or HTML elements to display the information.
          Welcome to D. Y. Patil College
·        Electronics Department
·        Mathematics Department
·        Microbiology Department
·        Computer Science Department
·        Biotechnology Department

Code for Mune Page.
<html>
<body>
          <h1> Information of Computer Course </h1>
<ul type="disc">
          <li>
                   <a href="elec.html">Electronics Department</a><br>
          </li>
          <li>
                   <a href="math.html" >Mathematics Department</a><br>
          </li>
          <li>
                   <a href="micro.html">Microbiology Department</a><br>
          </li>
          <li>
                   <a href="comp.html" >Computer Science Department</a><br>
          </li>
          <li>
                   <a href="bio.html" >Biotechnology Department</a><br>
          </li>
</ul>
</body>
</html>
Code For Computer Science Department Page.
<html>
<body>
          <h1> This isComputer Science Department page </h1>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write a JavaScript code for counting odd, even, prime numbers from 1 to100.

<html>
<script>
var ev,i,od,c,f,n,pr;
ev=0;
od=0;
pr=0;
for (i=1;i<=100;i++)
{
       if(i%2==0)
           ev++;
       else
            od++;
}
for(i=1;i<=100;i++)
{
  c=2;
  n=i;
  f=0;
     while(c<n)
     {
             if(n%c==0)
             {   
                   f=1;
               }
         c++;   
      }
   if(f==0 )
   {
    pr++;
   }
document.write("No OF Even Is ......"+ev);
document.write("<br>No OF Odd Is..... "+od);
document.write("<br>No OF Prime Is..... "+pr);
</script>
</html>
* * * * *



                                                                   Date:        /       / 2014
 Write a JavaScript code to accept number from user. Make all validation and print that number in reverse order.                                                                
<html>
<body>
Enter any Number <input type="text"  id="t1">
<input type="Submit" value="Ok" onclick=done()>
<script>
function done()
{
var n,rem1,rev1;
  rev1=0;
n=parseInt(document.getElementById('t1').value);
document.write(" Given Number Is ...." +n);
while(n>0)
{
    rem1=n%10;
    rev1=rev1*10+rem1;
    n=parseInt(n/10);
}
document.write("<br> Revrse Is ......" +rev1);
}
</script>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write HTML code to design a web page displaying list of hyperlinks. Divide the browser screen into two frames. The frame on the left will be a menu consisting of hyperlinks. Clicking on any one of these hyperlinks will display related information as a new page which must be open in frame on the right hand side.
Input Devices
Output Devices
Storage Devices

e.g.-After clicking on input devices hyperlink related information in the right frame.
Input Devices
Output Devices
Storage Devices
The list of Input Devices
i.                   Keyboard.
ii.                 Mouse.

Code For Main Page.
<html>
<frameset cols=40%,60%>
<frame src=Menu.html>
<frame src=""  name="right">
</frameset>
</html>
Code For Menu Page.
<html>
<body>
<h1><a href=" Inputdevice.html" target="right">Input device</a></h1>
<h1><a href=" Outputdevice.html" target="right">Output  Device</a></h1>
<h1><a href=" Storagedevice.html" target="right">Storage Device</a></h1>
</body>
</html>
Code For Input Device  Page.(“Code For Same Other Device Pages”)
<html>
<body>
<h1>This Input Devices</h1>
<ol type=i>
 <li>Keybord</li>
<li>Mouse</li>
</ol>
</body>
</html>
* * * * *



                                                                   Date:        /       / 2014
Write HTML and CSS code to design a web page displaying list of hyperlinks. Divide the browser screen into two frames. The first frame will display the heading. Divide the second frame into two columns. The frame on the left will be a menu consisting of hyperlinks. Clicking on any one of these hyperlinks will display related information as a new page which must be open in frame on the right hand side. Use Internal style sheet with appropriate attributes to display information of each frame.
                       
Players List
Country
1.     India
2.     Australia
3.     Africa
India
·        Cricket
1.     Sachin Tendulkar
2.     Dhoni
3.     Rahul Dravid
·        Tennis
1.     Saniya Mirza
2.     Nehaval
3.     Mahesh Bhupati

Code For Main Page.
<html>
<frameset  rows="20%,80%">
<frame src=title.html>
<frameset cols=30%,40%>
<frame src=Country.html>
<frame src="" name="right">
</frameset>
</frameset>
</html>

Code For Menu  Page.
<html>
<body>
<ol>
<li ><a href ="India.html"target="right">India</a></li>
<li ><a href ="Austrelia.html"target="right">Austrelia</a></li>
<li ><a href ="Africa.html"target="right">Africa</a></li>
</body>
</html>


Code For  India Page(“Same Code for All Sub Pages”)
<html>
<body>
<h1> India</h1>
<ul >
      <li>Cricket</li>
         <ol>
                         <li>Sachin Tendulkar</li>
                         <li>Dhoni</li>
                         <li>Rahul Dravid</li>
         </ol>
       <li> Tennis</li>
          <ol>
                          <li>Sania Mirza</li>
                          <li>Nehval</li>
                          <li>Mahesh Bhupati</li> 
          </ol>

</ul>
</body>
</html>
 * * * * *


No comments:

Ebook

Ebook
Ebook