Month: February 2014

HTML Table Example

Posted on Updated on

Table Examples
<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<title></title>
</head>
<body>
<table align=”center” border=”1″  style=”width: 80%”>
<tr>
<td align=”center” style=”width:250px” >
</td>
<td style=”width:250px”>
Namee</td>
<td style=”width:250px”>
<input id=”Text1″ type=”text” /></td>
</tr>
<tr>

<td style=”width:250px”>
Address</td>
<td style=”width:250px”>
<input id=”Text2″ type=”text” /></td>
<td>
</td>
</tr>
<tr>

<td style=”width:250px”>
</td>
<td align=”center” style=”width:250px”>
<input id=”Button2″ type=”button” value=”Save” /></td>
<td>
</td>
</tr>
</table>
</body>
</html>

Table Row Vertical Align
<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<title></title>
</head>
<body bgcolor=”#ccffff”>
<table border=”1″ style=”height:200px”>
<tr valign=”middle”>
<th>Month</th>
<th>Savings</th>
</tr>
<tr valign=”bottom”>
<td>January</td>
<td>$100</td>
</tr>
</table>
</body>
</html>

Table Cell Align – Center

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<title></title>
</head>
<body bgcolor=”#ccffff”>
<table border=”1″ style=”width: 100%;”>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>

<tr>
<td style=”height:107px”>

</td>
<td align=”center” valign=”top” style=”height:107px”>
<input id=”Submit1″ type=”submit” value=”submit” />
</td>
<td style=”height:107px”>
</td>
</tr>
<tr>
<td> &nbsp;</td>
<td> &nbsp;</td>
<td> &nbsp;</td>
</tr>
</table>
</body>
</html>

Table Background Image

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<title></title>
</head>
<body bgcolor=”#ccffff”>
<table background=”http://www.tizag.com/pics/htmlT/background.jpg&#8221;
style=”width: 80%; height: 192px;”>
<tr>
<td>   </td>
<td>   </td>
<td>   </td>
</tr>
<tr>
<td>    </td>
<td>    </td>
<td>    </td>
</tr>
<tr>
<td>
</td>
<td align=”center”>
</td>
<td>
</td>
</tr>
</table>
</body>
</html>

Column Spanning in multiple Cells in Table

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<title></title>
</head>
<body>

<table border=”1″ style=”width:75%;”>
<tr>
<td>               </td>
<td style=”width:250px”>
<input id=”Text2″ type=”text” /></td>
<td>
</td>
</tr>
<tr>
<td>                </td>
<td style=”width:250px”>
<input id=”Text1″ type=”text” /></td>
<td>
</td>
</tr>
<tr>
<td>                </td>
<td align=”center” colspan=”2″>
<input id=”Submit1″ type=”submit” value=”submit” /></td>
</tr>
</table>

</body>
</html>

Advertisements

HTML Example Body Color of a web page

Posted on

Body Color of a web page
<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head>
<title></title>
</head>
<body bgcolor=”silver” style=”font-family:arial;color:red;font-size:20px;” text=”Red”>
<p>
This is to test the properties of body
</p>
</body>
</html>

DERIVATIVE FORMULAS

Posted on

DERIVATIVE FORMULAS

Posted  by Vissicomp Technology Pvt Ltd

http://www.vissicomp.com

DERIVATIVE FORMULAS
DERIVATIVE FORMULAS

INTEGRATION FORMULAS

Posted on

Integration Formulas

Posted by Vissicomp technolgy Pvt Ltd

http://www.vissicomp.com

Probability problems

Posted on

Steps to solve pr0bability problems

  1. Identify events for which probability is to be determined asked in the question.
  2. Calculate total number of possible outcomes (items)
  3. Calculate probability of each event
  4. Add probability of each event (if it is required)

 

Example

A box is filled with cubes of different colors. There are 40 White cubes, 24 Green, 12 Red, 24 Golden, and 20 Blue cubes. If you have to select a cube without looking into the box, what is the Probability that you will pick a White or a Blue cube?

Solution

Step 1                    See that you have to determine probability of 2 events

(a) Picking a White cube
(b) Picking a Blue cube

Step 2                       2 total numbers of cubes

Step 3                     Find the probability of picking a White

Find the probability of picking a White

Step 4                   Now add the two probabilities together

Thus probability that you will pick a White or a Blue cube is 1/2

 

Posted by Vissicomp Technology Pvt Ltd.

http://www.vissicomp.com

Program to convert infix to postfix expression

Posted on

Data Structure

Infix to postfix

Program to convert infix to postfix expression

#include<stdio.h>

#include<conio.h>

#include<alloc.h>

char inf[40],post[40];

int top=0,st[20];

void postfix();

void push(int);

char pop();

void main()

{

clrscr();

printf(“Enter the infix expression\n\n”);

scanf(“%s”,inf);

postfix();

getch();

}

void postfix()

{

int i,j=0;

for(i=0;inf[i]!=”;i++)

{

switch(inf[i])

{

case ‘+’:while(st[top]>=1)

post[j++]=pop();

push(1);

break;

case ‘-‘:while(st[top]>=1)

post[j++]=pop();

push(2);

break;

case ‘*’:while(st[top]>=1)

post[j++]=pop();

push(3);

break;

case ‘/’:while(st[top]>=1)

post[j++]=pop();

push(4);

break;

case ‘^’:while(st[top]>=1)

post[j++]=pop();

push(5);

break;

case ‘(‘:push(0);

break;

case ‘)’:while(st[top]!=0)

post[j++]=pop();

top–;

break;

default:post[j++]=inf[i];

}

}

while(top>0)

post[j++]=pop();

printf(“postfix expression is \n\n %s”,post);

}

void push(int ele)

{

top++;

st[top]=ele;

}

char pop()

{

int el;

char e;

el=st[top];

top–;

switch(el)

{

case 1:e=’+’;

break;

case 2:e=’-‘;

break;

case 3:e=’*’;

break;

case 4:e=’/’;

break;

case 5:e=’^’;

break;

}

return e;

}

Output

 

Posted by Vissicomp Technology Pvt Ltd

http://www.vissicomp.com

Transmisssion Control Protocol (TCP)

Posted on

Transmisssion Control Protocol (TCP)

Transmission Media

  2.) Unguided Media: WIRELESS

Unguided media transport electromagnetic waves without using a physical conductor.

This type of communication is often referred to as wireless communication. Signals are normally broadcast through free space and thus are available to anyone who has a device capable of receiving them. Figure below shows the part of the electromagnetic spectrum, ranging from 3 kHz to   900 THz, used for wireless communication.


Unguided signals can travel from the source to destination in several ways: ground propagation, sky propagation, and line-of-sight propagation. We can divide wireless transmission into three broad groups: radio waves, microwaves, and infrared waves.

 

Radio Waves

  • Radio waves are used for multicast communications, such as radio and television, and paging systems. They can penetrate through walls.
  • Highly regulated.
  • Use omni directional antennas

 

Applications

The omnidirectional characteristics of radio waves make them useful for multicasting, in which there is one sender but many receivers. AM and FM radio, television, maritime radio, cordless phones, and paging are examples of multicasting.

 

Microwaves

  • Microwaves are used for unicast communication such as cellular telephones, satellite networks, and wireless LANs.
  •  Higher frequency ranges cannot penetrate walls.
  •  Use directional antennas – point to point line of sight communications.

 

Applications

Microwaves, due to their unidirectional properties, are very useful when unicast

(one-to-one) communication is needed between the sender and the receiver. They are

used in cellular phones , satellite networks ,and wireless LANs.

 

Infrared

  • Infrared signals can be used for short-range communication in a closed area using line-of-sight propagation.
  • Transceivers must be within line of sight of each other (directly or via reflection ).
  • Infrared does not penetrate walls.

Posted by Vissicomp Technology

http://www.vissicomp.com