IRSHAD CS Lab Manual
IRSHAD CS Lab Manual
IRSHAD CS Lab Manual
SIMS, HOSAKOTE
Computer Science Lab Manual For Second PUC
Karnataka Board.
Abstract
PART- A: C++ Programs(1-16)
PART- B:SQL Experiments(17-19)
PART- C:HTML Programs(21-22)
Irshad Pasha
9591730046
II PUC CS LAB MANUAL SIMS, HOSAKOTE
PART – A : C++
PART – B : SQL
PART – C : HTML
PART-A: C++
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
class frequency
{
private:
int n, m[100], ele, freq;
public:
void getdata();
void findfreq();
void display();
};
void frequency::getdata()
{
cout<<"Enter the size of array: ";
cin>>n;
cout<<"Enter "<<n<<" elements into the array: ";
for(int i = 0 ; i < n ; i++)
cin>>m[i];
cout<<"Enter the search element: ";
cin>>ele;
}
void frequency::findfreq()
{
freq = 0;
for(int i = 0; i < n ; i++)
if(ele==m[i])
freq++;
}
void frequency::display()
{
if(freq>0)
cout<<"Frequency of "<<ele<<" is "<<freq;
else
cout<<ele<<" does not exist";
}
void main()
{
frequency F;
clrscr();
F.getdata();
F.findfreq();
F.display();
getch();
}
Output:
#include<iostream.h>
#include<iomanip.h>
#include<process.h>
#include<conio.h>
class insertion
{
private:
int n, m[100], ele, p;
public:
void getdata();
void insert();
Page |4 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
void display();
};
void insertion::getdata()
{
cout<<"How many elements?";
cin>>n;
cout<<"Enter the elements: ";
for(int i=0; i<n; i++)
cin>>m[i];
cout<<"Enter the element to be inserted: ";
cin>>ele;
cout<<"Enter the position(0 to "<<n<<"): ";
cin>>p;
}
void insertion::insert()
{
if(p>n)
{
cout<<p<<" is an invalid position";
getch();
exit(0);
}
for(int i=n-1; i>=p; i--)
m[i+1] = m[i];
m[p]=ele;
n++;
void insertion::display()
{
cout<<"The array after the insertion is ";
void main()
{
insertion I;
clrscr();
I.getdata();
I.insert();
I.display();
getch();
}
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include<process.h>
class deletion
{
private:
int m[50], n, ele, p;
public:
void getdata();
void remove();
void display();
};
void deletion::getdata()
{
cout<<"How many elements: ";
cin>>n;
cout<<"Enter the elements: ";
for(int i=0; i<n; i++)
cin>>m[i];
void deletion::remove()
{
if(p>n-1)
{
cout<<p<<" is an invalid position";
getch();
exit(0);
}
ele=m[p];
for(int i=p+1; i<n; i++)
m[i-1]=m[i];
n--;
cout<<ele<<" is successfully removed"<<endl;
}
void deletion::display()
{
cout<<"The array after deletion is ";
for(int i=0; i<n; i++)
cout<<setw(4)<<m[i];
}
void main()
{
deletion D;
clrscr();
D.getdata();
D.remove();
D.display();
getch();
}
Output:
#include<iostream.h>
#include<conio.h>
class sorting
{
private:
int m[50], n;
public:
void getdata();
void sort();
void display();
};
void sorting::getdata()
{
cout<<"How many elements : ";
cin>>n;
cout<<"Enter the elements : ";
for(int i=0; i<n; i++)
cin>>m[i];
}
void sorting::sort()
{
int temp, j;
for(int i=1; i<n; i++)
{
j=i;
while(j>=1)
{
if(m[j]<m[j-1])
{
temp = m[j];
m[j] = m[j-1];
m[j-1] = temp;
}
j--;
}
}
}
void sorting::display()
{
cout<<"The sorted elements are :";
for(int i=0; i<n; i++)
cout<<"\t"<<m[i];
}
void main()
{
sorting S;
clrscr();
S.getdata();
S.sort();
S.display();
getch();
}
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
class binary
{
private:
int m[50], n, ele, loc;
public:
void getdata();
void search();
void display();
};
void binary::getdata()
{
cout<<"How many elements: ";
cin>>n;
cout<<"Enter the elements: ";
for(int i=0; i<n; i++)
cin>>m[i];
cout<<"Enter the search element: ";
cin>>ele;
}
void binary::display()
{
if(loc>=0)
cout<<"Position = "<<loc;
else
cout<<"Search is unsuccessful";
}
void binary::search()
{
int beg,end,mid;
loc=-1;
beg=0;
end=n-1;
while(beg<=end)
{
mid=(beg+end)/2;
P a g e | 10 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
if(ele==m[mid])
{
loc=mid;
break;
}
else
if(ele<m[mid])
end=mid-1;
else
beg=mid+1;
}
}
void main()
{
binary B;
clrscr();
B.getdata();
B.search();
B.display();
getch();
}
Output:
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
class interest
{
private:
double p, t, r, si;
P a g e | 11 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
public:
void getdata();
void compute();
void putdata();
};
void interest::getdata()
{
cout<<"Enter principle amount, time and rate: "<<endl;
cin>>p>>t>>r;
}
void interest::compute()
{
si = (p*t*r)/100;
}
void interest::putdata()
{
cout<<"Principle : "<<p<<endl;
cout<<"Time : "<<t<<endl;
cout<<"Rate : "<<r<<endl;
cout<<"Simple interest: "<<si<<endl;
}
void main()
{
interest I;
clrscr();
I.getdata();
I.compute();
I.putdata();
getch();
}
P a g e | 12 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<process.h>
class quadratic
{
private:
double a, b, c, r1, r2;
public:
void getdata();
void roots();
void putdata();
};
void quadratic::getdata()
{
cout<<"Enter the co-efficients: ";
cin>>a>>b>>c;
}
void quadratic::roots()
{
double d=b*b-4*a*c;
if(d==0)
{
cout<<"Roots are equal"<<endl;
r1=-b/(2*a);
P a g e | 13 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
r2=r1;
}
else
if(d>0)
{
cout<<"Roots are positive and different:"<<endl;
r1=(-b+sqrt(d))/(2*a);
r2=(-b-sqrt(d))/(2*a);
}
else
{
cout<<"Roots are imaginary";
getch();
exit(0);
}
}
void quadratic::putdata()
{
cout<<"First root = "<<r1<<endl;
cout<<"Second root = "<<r2;
}
void main()
{
quadratic Q;
clrscr();
Q.getdata();
Q.roots();
Q.putdata();
getch();
}
P a g e | 14 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include<process.h>
#include<math.h>
class function
{
private:
float s;
public:
double area(double a)
{
return a*a;
}
double area(double l, double b)
{
return l*b;
}
double area(double a, double b, double c)
{
s=(a+b+c)/2.0;
return(sqrt(s*(s-a)*(s-b)*(s-c)));
}
};
P a g e | 15 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
void main()
{
function f;
double x, y, z;
int ans;
clrscr();
cout<<"Enter the number of sides(1,2 or 3): ";
cin>>ans;
if(ans==1)
{
cout<<"Enter the side: ";
cin>>x;
cout<<"Area of the square ="<<f.area(x)<<endl;
}
else
if(ans==2)
{
cout<<"Enter two sides: ";
cin>>x>>y;
cout<<"Area of the rectangle = "<<f.area(x,y)<<endl;
}
else
if(ans==3)
{
cout<<"Enter three sides: ";
cin>>x>>y>>z;
cout<<setprecision(8);
cout<<"Area of triangle = "<<f.area(x,y,z)<<endl;
}
else
cout<<"Invalid input";
getch();
}
P a g e | 16 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
class assign
{
private:
int n;
public:
assign(int nn)
{
n=nn;
}
int cube();
};
void main()
{
int n;
clrscr();
P a g e | 17 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
#include<iostream.h>
#include<conio.h>
class copy
{
private:
int var, sum, term;
public:
double calculate();
copy(int temp, int x)
{
var = temp;
term = x;
}
};
double copy::calculate()
{
int p;
sum=1;
p=term;
for(int i=1; i<=var; i++)
{
sum = sum + p;
P a g e | 18 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
p = p * term;
}
return sum;
}
void main()
{
int n, t;
clrscr();
cout<<"Enter the base and the power(x and n): ";
cin>>t>>n;
copy obj(n,t);
copy cpy = obj;
cout<<"Sum of the series is "<<obj.calculate();
getch();
}
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
class student
{
private:
int rollno;
char name[20];
public:
void read()
{
cout<<"Enter the name: ";
cin.getline(name,20);
cout<<"Enter Roll No: ";
cin>>rollno;
}
P a g e | 19 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
void display()
{
cout<<"Roll no: "<<rollno<<endl;
cout<<"Name: "<<name<<endl;
}
};
void display1()
{
cout<<"Subject1 = "<<m1<<endl;
cout<<"Subject2 = "<<m2<<endl;
cout<<"Total marks = "<<total<<endl;
}
};
void main()
{
marks ob;
clrscr( );
ob.read();
ob.read1();
ob.display();
ob.display1();
getch();
}
P a g e | 20 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include<string.h>
class student
{
private:
int regno;
char name[20];
float fees;
public:
void get();
void display();
};
void student::get()
{
cout<<"Enter student name: ";
cin.getline(name, 20);
cout<<"Enter student register number: ";
cin>>regno;
cout<<"Enter student fees: ";
cin>>fees;
}
void student::display()
{
cout<<"Student register number: "<<regno<<endl;
cout<<"Student name: "<<name<<endl;
P a g e | 21 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
void main()
{
student s, *sp;
clrscr();
sp = &s;
sp->get();
sp->display();
getch();
}
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include<ctype.h>
#include<process.h>
#define MAX 3
class stackpush
{
private:
int A[MAX], top;
public:
stackpush()
{
top = -1;
}
void push(int item);
void print();
P a g e | 22 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
};
void stackpush::print()
{
if(top != -1)
{
cout<<"stack contains: ";
for(int i=0; i<=top; i++)
cout<<setw(4)<<A[i];
cout<<endl;
}
else
cout<<"stack is empty"<<endl;
}
void main()
{
stackpush S;
int choice, item;
clrscr();
while(1)
{
cout<<endl<<"1. Push"<<endl<<"2. Print"<<endl<<"3. Exit"<<endl;
cout<<"Enter your choice: ";
cin>>choice;
switch(choice)
{
case 1: cout<<"Enter the item: ";
P a g e | 23 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
cin>>item;
S.push(item);
break;
case 2: S.print();
break;
getch();
exit(0);
Output:
P a g e | 24 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include<ctype.h>
#include<process.h>
#define MAX 3
class stackpop
{
private:
int A[MAX], top;
public:
stackpop()
{
top = -1;
}
void push(int item);
void print();
void pop();
};
P a g e | 25 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
top++;
A[top] = item;
cout<<item<<" is successfully pushed"<<endl;
}
void stackpop::print()
{
if(top != -1)
{
cout<<"stack contains: ";
for(int i=0; i<=top; i++)
cout<<setw(4)<<A[i];
cout<<endl;
}
else
cout<<"stack is empty"<<endl;
}
void stackpop::pop()
{
if(top == -1)
{
cout<<endl<<"Sorry, stack is empty"<<endl;
return;
}
else
{
int ele = A[top];
top--;
cout<<ele<<" is successfully popped"<<endl;
}
}
void main()
{
stackpop S;
int choice, item;
clrscr();
while(1)
P a g e | 26 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
{
cout<<endl<<"1. push"<<endl<<"2. pop"<<endl<<"3.
print"<<endl<<"4. exit"<<endl;
cout<<"Enter your choice: ";
cin>>choice;
switch(choice)
{
case 1: cout<<"Enter the item: ";
cin>>item;
S.push(item);
break;
case 2: S.pop();
break;
case 3: S.print();
break;
Output:
P a g e | 27 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
P a g e | 28 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
#include<stdlib.h>
#define SIZE 3
class queue
{
private:
int q[SIZE];
int front, rear;
int count;
public:
queue();
void enqueue(int x);
void dequeue();
void display();
};
queue::queue()
{
front = -1;
rear = -1;
count = 0;
}
void queue::enqueue(int x)
{
if(rear == SIZE - 1)
{
cout<<"Sorry.. queue is full."<<endl;
return;
}
if(front == -1)
{
front = 0;
rear = 0;
}
else
rear++;
q[rear] = x;
count++;
cout<<x<<" is successfully inserted"<<endl;
P a g e | 29 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
void queue::dequeue()
{
if(front == -1)
{
cout<<"queue is empty"<<endl;
return;
}
int x = q[front];
if(front == rear)
{
front = -1;
rear = -1;
}
else
front++;
count--;
cout<<x<<" is successfully deleted"<<endl;
}
void queue::display()
{
if(count > 0)
{
cout<<"queue contains: ";
for(int i=front; i<=rear; i++)
cout<<q[i]<<setw(4);
cout<<endl;
}
else
cout<<"Sorry... queue is empty"<<endl;
}
void main()
{
queue Q;
int choice;
int item;
clrscr();
P a g e | 30 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
while(1)
{
cout<<"1. Enqueue"<<endl<<"2. Dequeue"<<endl<<"3. Print
Queue"<<endl<<"4. Exit"<<endl;
cout<<"Enter your choice: ";
cin>>choice;
switch(choice)
{
case 1: cout<<"Enter the item: ";
cin>>item;
Q.enqueue(item);
break;
case 2: Q.dequeue();
break;
case 3: Q.display();
break;
P a g e | 31 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
class linklist
{
private:
P a g e | 32 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
struct Node
{
int data;
Node *link;
}*START;
public:
linklist();
void print();
void Append(int num);
void count();
};
linklist::linklist()
{
START=NULL;
}
void linklist::print()
{
if(START == NULL)
{
cout<<"link list is empty"<<endl;
return;
}
cout<<"link list contains: ";
Node *tmp = START;
while(tmp != NULL)
{
cout<<tmp->data<<" ";
tmp=tmp->link;
}
}
P a g e | 33 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
if(START==NULL)
{
START=newNode;
cout<<endl<<num<<" is inserted at the first node"<<endl;
}
else
{
Node *tmp = START;
while(tmp->link!=NULL)
tmp=tmp->link;
tmp->link=newNode;
cout<<endl<<num<<" is inserted"<<endl;
}
}
void linklist::count()
{
Node *tmp;
int c=0;
for(tmp=START; tmp!=NULL; tmp=tmp->link)
c++;
cout<<endl<<"No. of nodes in the linked list = "<<c<<endl;
}
void main()
{
linklist *obj=new linklist();
clrscr();
obj->print();
obj->Append(100);
obj->print();
obj->count();
obj->Append(200);
obj->print();
obj->count();
obj->Append(300);
obj->print();
P a g e | 34 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
obj->count();
getch();
}
Output:
P a g e | 35 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 36 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
PART –B : SQL
P a g e | 37 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 38 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 39 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
11.Command to retrieve only student id and student name of all the students
P a g e | 40 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
16. Command to count the number of students who have percentage more
than 60
P a g e | 41 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 42 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
5.Command to find the number of employees who work for the accounts
department
select count(*) from employee where dept_id=(select dept_id from
department where dept_name='accounts');
6. Command to find the minimum,maximum and average salary of
employees who work for the accounts department
select min(emp_salary) from employee where dept_id=(select dept_id from
department where dept_name='accounts');
select max(emp_salary) from employee where dept_id=(select dept_id from
department where dept_name='accounts');
select avg(emp_salary) from employee where dept_id=(select dept_id from
department where dept_name='accounts');
7. Command to list the employees working for a particular supervisor
select * from employee where dept_id=(select dept_id from department
where supervisor='Tanveer');
8. Command to retrieve the department names for each department where
only one employee works
select dept_name from department where dept_id in(select dept_id from
employee group by dept_id having count(*)=1);
9. Command to increase the salary of all employees in the sales department
by 15%
update employee set emp_salary=emp_salary+emp_salary*0.15 where
dept_id=(select dept_id from department where dept_name='sales');
10.Command to add a new column to the table employee, called Bonus
number(5) and compute 5% of the salary to the said field
alter table employee add bonus number(5);
update employee set bonus=emp_salary*0.05;
P a g e | 43 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 44 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 45 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
PART-C: HTML
1.Write a html program to create a study time table
<html>
<head>
<title>Study time table</title>
<style>
td,th,table
{
border:1px solid black;
}
</style>
</head>
<body>
<h1><center>MY STUDY TIME-TABLE FOR THE WEEK</center></h1>
<h2><center>Beautiful Sunrise</center></h2>
<img border="0" src="C:\Users\Public\Pictures\Sample Pictures\Tulips.jpg"
width="900" height=300">
<table style="width:900px">
<tr>
<th>Days</th>
<th>Subjects</th>
<th>Morning study time</th>
<th>College study time</th>
<th>Evening study time</th>
<th>Question papers solution time</th>
P a g e | 46 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
</tr>
<tr>
<td>Monday</td>
<td>Kannada</td>
<td>5:00 - 6:30 A.M</td>
<td>8:30 - 4:00 P.M</td>
<td>6:00 - 8:30 P.M</td>
<td>9:00 - 11:00 P.M</td>
</tr>
<tr>
<td>Tuesday</td>
<td>English</td>
<td>5:00 - 6:30 A.M</td>
<td>8:30 - 4:00 P.M</td>
<td>6:00 - 8:30 P.M</td>
<td>9:00 - 11:00 P.M</td>
</tr>
<tr>
<td>Wednesday</td>
<td>Economics</td>
<td>5:00 - 6:30 A.M</td>
<td>8:30 - 4:00 P.M</td>
<td>6:00 - 8:30 P.M</td>
P a g e | 47 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
<tr>
<td>Thursday</td>
<td>Business Studies</td>
<td>5:00 - 6:30 A.M</td>
<td>8:30 - 4:00 P.M</td>
<td>6:00 - 8:30 P.M</td>
<td>9:00 - 11:00 P.M</td>
</tr>
<tr>
<td>Friday</td>
<td>Accounts</td>
<td>5:00 - 6:30 A.M</td>
<td>8:30 - 4:00 P.M</td>
<td>6:00 - 8:30 P.M</td>
<td>9:00 - 11:00 P.M</td>
</tr>
<tr>
<td>Saturday</td>
<td>Computer Science</td>
<td>5:00 - 6:30 A.M</td>
P a g e | 48 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
P a g e | 49 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
P a g e | 50 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
<tr>
<td>JULY</td>
<td>16</td>
<td>16</td>
</tr>
<tr>
<td>AUGUST</td>
<td>16</td>
<td>16</td>
</tr>
<tr>
<td>SEPTEMBER</td>
<td>16</td>
<td>16</td>
</tr>
<tr>
<td>OCTOBER</td>
<td>16</td>
<td>16</td>
</tr>
<tr>
<td>NOVEMBER</td>
<td>16</td>
<td>16</td>
</tr>
P a g e | 51 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
<tr>
<td>DECEMBER</td>
<td>16</td>
<td>16</td>
</tr>
<tr>
<td>Total No of days</td>
<td>120</td>
<td>120</td>
</tr>
<tr>
<td>PERCENTAGE</td>
<td>100</td>
<td>100</td>
</tr>
</table>
<br><br>
<h3>STUDENT REGISTRATION FORM</h3>
<form name="registrationform">
<table style="width:100px">
<tr>
<td>Student Name:</td>
<td>
<input type="text" name="SName" maxlength="50" size="30">
</td>
P a g e | 52 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
</tr>
<tr>
<td>Student ID:</td>
<td>
<input type="text" name="SID" maxlength="50" size="30">
</td>
</tr>
<tr>
<td>Father Name:</td>
<td>
<input type="text" name="FName" maxlength="50" size="30">
</td>
</tr>
<tr>
<td>Gender:</td>
<td>
<input type="radio" name="gender" value="male" >Male
<input type="radio" name="gender" value="female">Female
</td>
</tr>
<tr>
<td>Course:</td>
<td>
<select name="Course">
<option value="-1" selected>select..</option>
P a g e | 53 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
<option value="PCMB">PCMB</option>
<option value="EBACs">EBACs</option>
<option value="PCMCs">PCMCs</option>
</select>
</td>
</tr>
<tr>
<td>Mobile Number:</td>
<td>
<input type="text" name="telephone" maxlength="12" size="30">
</td>
</tr>
<tr>
<td><input type="reset" value="Reset"></td>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>
P a g e | 54 Irshad Pasha
II PUC CS LAB MANUAL SIMS, HOSAKOTE
Output:
********************************************************
P a g e | 55 Irshad Pasha