This document appears to be a record book for a student's practical work in computer applications, including programs written in C++, HTML, JavaScript, and SQL. It contains the source code and output for 17 different programs covering topics like checking if a number is positive, negative or zero, finding the average height of students, calculating factorials with a function, and displaying patterns with loops. For each program there is a date, aim, description of the procedure and source code, sample output, and flowchart. The record book is indexed and includes the student's name, registration number, and signatures for certification.
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Higher Secondary (Affiliated State Board) Computer Commerce Lab Programmes
1. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 1
MAJLIS ENGLISH MEDIUM SECONDARY SCHOOL
Majlis Nagar | Manhampara | Kuntar P.O |Mulleria Via
Kasaragod District | PIN: 671543 | Kerala State | India
Tel: 04994 – 261 247 | Mob: +91 8606 826 947
E-mail: info@majlischool.com | Website: www.majlischool.com
COMPUTER APPLICATION
Practical Record Book
Name
----------------------------------------------------------------
Exam Reg. No
----------------------------------------------------------------
CERTIFICATE
This is to certify that this is a bonafide Record of Practical work done by
Mr. /Miss/Mrs.: ________________________________________________________,
Reg. No: ___________________for the Higher Secondary Course in
Commerce in the year ______
Teacher in Charge
Exam Date
External Examiner
2. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 2
INDEX
SL. NO NAME DATE REMARK PAGE NO
C++ PROGRAMMING
1 Check Number Positive, Negative or Zero 4
2 Multiplication Table of a Number 6
3 Sum of Digits of Number 8
4 Area of Circle, Rectangle, Triangle 10
5 Find Largest from three 13
6 Heights of 10 students and find the
average height
15
7 Length of a string without using strlen()
function
17
8 Display digit name using switch 19
9 Sum of Squares of a Number 21
10 Factorial Using function 23
11 C++ program to display the patters 25
12 Consumption Of Electricity 27
13 N Number of Fibonacci series 29
14 Simple Interest and Compound Interest 30
15 Even Numbers and Odd Numbers 32
16 Swapping of two Variables 33
17 String and Create a Triangle 34
HTML & JAVASCRIPT
1 Kerala Tourism 37
2 Kerala Tourism List 39
3 Hyper Link 41
4 Table Class 43
5 Table Speed Limit 45
6 Frameset Sample 48
7 Login Form 50
8 Uppercase and Lowercase 52
9 Capital of states 54
10 Sum of all numbers 56
SQL
1 SQL Student 59
2 SQL Employee 62
3 SQL Stock 66
4 SQL Bank 70
5 SQL Book 73
4. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 4
Date:
1. Aim: Input a number and check whether it is positive, negative or zero.
Procedure: (Source Code)
#include<iostream>
using namespace std;
int main()
{
int num;
cout<<"Enter The number"<<endl;
cin>>num;
if(num>0)
cout<<"The number is Positive"<<endl;
else if(num<0)
cout<<"The number is Negative"<<endl;
else
cout<<"The number is Zero"<<endl;
return 0;
}
OUTPUT
Enter The number
5
The number is Positive
Enter The number
-5
The number is Negative
Enter The number
0
The number is Zero
5. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 5
Start
Read Num
If
Num>0
?
Print
Positive
Print
Negative
If
Num<0
?
Print
Zero
Yes
No
Yes
No
Stop
FLOWCHART
6. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 6
Date:
2. Aim: Display the multiplication table of a number having 12 rows
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
int num,i,prd;
cout<<"Input a numbert";
cin>>num;
for(i=1;i<=12;i++)
{
prd=num*i;
cout<<i <<" x "<<num<<" = "<<prd<<endl;
}
}
OUTPUT
Input a number
5
1 x 5 = 5
2 x 5 = 10
3 x 5 = 15
4 x 5 = 20
5 x 5 = 25
6 x 5 = 30
7 x 5 = 35
8 x 5 = 40
9 x 5 = 45
10 x 5 = 50
11 x 5 = 55
12 x 5 = 60
7. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 7
Start
Read Num
I=1
Is I<=12
?
Print Prd
Yes
Stop
FLOWCHART
I=I+1
No
Prd=Num*I
8. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 8
Date:
3. Aim: Find the sum of the digits of an integer number.
Procedure: (Source Code)
#include<iostream>
using namespace std;
int main()
{
int num,rem,sum=0;
cout<<"Enter the Digitn";
cin>>num;
while(num>0)
{
rem=num%10;
sum=sum+rem;
num=num/10;
}
cout<<"Sum of Digits Is="<<sum;
}
OUTPUT
Enter the Digit
5 6
Sum of Digits Is=11
Enter the Digit
3 4
Sum of Digits Is=7
9. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 9
Start
Read Num
Sum=0
Is
Num>0
?
Print Sum
Yes
Stop
FLOWCHART
Rem=Num%10
Sum=Sum+Rem
Num=Num/10
No
10. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 10
Date:
4. Aim: Find the area of a rectangle, a circle and a triangle. Use switch statement for
selecting an option from a menu.
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
int ch,l,w,r,b,h,Area;
cout<<"Input n1. Trianglen2. Rectanglen3. Circlet";
cin>>ch;
switch (ch)
{
case 1:cout<<"Input base and Heightt";
cin>>b>>h;
Area=0.5*b*h;
cout<<"Area of Triangle="<<Area;
break;
case 2:cout<<"Input length and widtht";
cin>>l>>w;
Area=l*w;
cout<<"Area of Rectangle ="<<Area;
break;
case 3:cout<<"Input Radiust";
cin>>r;
Area=3.14*r*r;
cout<<"Area of Circle ="<<Area;
break;
default: cout<<"Invalid choice";
11. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 11
}
return 0;
}
OUTPUT
Input
1. Triangle
2. Rectangle
3. Circle 1
Input base and Height 5 6
Area of Triangle = 15
Input
1. Triangle
2. Rectangle
3. Circle 2
Input length and width 10 2
Area of Rectangle = 20
Input
1. Triangle
2. Rectangle
3. Circle 3
Input Radius 4.5
Area of Circle =50
12. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 12
Start
Read Ch
If
Ch=1
?
Print Area
Stop
FLOWCHART
Area=0.5*b*h
No If
Ch=2
?
If
Ch=3
?
If
Ch=4
?
YesYes Yes
No No
Read b, h Read l, w Read r Print Invalid
Area=l*w Area=3.13*r*r
Yes
13. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 13
Date:
5. Aim: Input three numbers and find the largest.
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
int num1,num2,num3;
cout<<"Input three numbers and find largestn";
cin>>num1>>num2>>num3;
if (num1>num2 && num1>num3)
{
cout<<num1<<" is largest";
}
else if(num2>num3)
{
cout<<num2<<" is largest";
}
else
{
cout<<num3<<" is largest";
}
}
OUTPUT
Input three numbers and find largest
88 25 78
88 is largest
14. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 14
Start
Read Num
If
Num1>Num2
and
Num1>Num3
?
Print Num1
Yes
Stop
FLOWCHART
No
If
Num2>Num3
?
Print Num2Yes
Print Num3
No
15. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 15
Date:
6. Aim: Input the heights of 10 students and find the average height
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
int height[10],i,Avg,sum=0;
cout<<"Average height of 10 studentsn";
for(i=0;i<10;i++)
{
cin>>height[i];
sum=sum+height[i];
}
Avg=sum/10;
cout<<" Average height = "<<Avg<<endl;
}
OUTPUT
Average height of 10 students
150 155 160 165 170 175 168 173 156 168
Average height =164
16. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 16
Start
Sum=0
I=0
Is
I<=10
?
Read Height[i]
Yes
Stop
FLOWCHART
No
Print Avg
Sum=Sum+Height[i]
I=i+1
Avg=Sum/10
No
17. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 17
Date:
7. Aim: Find the length of a string without using strlen() function
Procedure: (Source Code)
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
char name[25];
int count=0,i;
cout<<"Input a String”<<endl";
gets(name);
for(i=0;name[i]!='0';i++)
{
count++;
}
cout<<" Number of Characters = "<<count<<endl;
}
OUTPUT
Input a String
Majlis
Number of Characters =6
18. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 18
Start
i=0
Count=0
Is
Name[i]!=’0’?
Read Name
Yes
Stop
FLOWCHART
No
Print Count
I=I+1
Count=Count+1
19. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 19
Date:
8. Aim: Assume that January 1 is Monday. Write a program using switch to display the
name of the day when we input a day number in that month
Procedure: (Source Code)
#include<iostream>
using namespace std;
int main()
{
int day;
cout<<"Enter the day number : ";
cin>>day;
switch(day)
{
case 0: cout<<"Sundayn";
break;
case 1: cout<<"Mondayn";
break;
case 2: cout<<"Tuesdayn";
break;
case 3: cout<<"Wednesdayn";
break;
case 4: cout<<"Thursdayn";
break;
case 5: cout<<"Fridayn";
break;
case 6: cout<<"Saturdayn";
break;
default: cout<<"Invalid input";
}
20. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 20
return 0;
}
OUTPUT
Enter the day number: 6
Saturday
Enter the day number: 3
Wednesday
21. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 21
Date:
9. Aim: Find the sum of the squares of the first N natural numbers without using any
formula.
Procedure: (Source Code)
#include<iostream>
using namespace std;
int main()
{
int num,sum=0,i;
cout<<"Enter a Number"<<endl;
cin>>num;
for(i=0;i<=num;i++)
{
sum=sum+i*i;
}
cout<<"Sum of the squares ="<<sum;
}
OUTPUT
Enter a Number
5
Sum of the squares =55
Enter a Number
6
Sum of the squares =91
22. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 22
Start
i=0
Sum=0
Is
I<=Num ?
Read Num
Yes
Stop
FLOWCHART
No
Print Sum
Sum=Sum+i*i
I=i+1
23. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 23
Date:
10. Aim: Find the factorial of a number with the help of a user-defined function.
Procedure: (Source Code)
#include<iostream>
using namespace std;
void fact(int f=1)
{
int m=1;
for(int i=1; i<=f; i++)
m= m*i;
cout<<"Factorial of "<< f <<" is ";
cout<<m<<endl;
}
int main()
{
int num;
cout<<"Enter a number: ";
cin>>num;
fact(num);
return 0;
}
OUTPUT
Enter a number: 4
Factorial of 4 is 24
Enter a number: 5
Factorial of 5 is 120
24. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 24
Start
F=1
M=1
Is
M<=Num ?
Read Num
Yes
Stop
FLOWCHART
No
Print F
M=M+1
F=F*M
25. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 25
Date:
11. Aim: Write a C++ program to display the following patters:
* * * * *
* * * *
* * *
* *
*
Procedure: (Source Code)
#include<iostream>
using namespace std;
int main()
{
for(int i=1; i<=5; i++)
{
for(int j=1; j<=i; j++)
{
cout<<"* ";
}
cout<<endl;
}
return 0;
}
OUTPUT
* * * * *
* * * *
* * *
* *
*
26. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 26
Start
I=1
Is
I<=5 ?
Read Newline
Yes
Stop
FLOWCHART
No
Print *
J=1
Is
j<=i ?
J=J+1
No
27. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 27
Date:
12. Aim: Find the amount to be paid for the consumption of electricity when the
previous and current meter readings are given as input based on the conditions given in
the table.
Unit Consumed Amount Per Unit
Up to 100 Rs. 0.50/-
101 – 150 Rs. 0.75/-
151 – 200 Rs. 1.00/-
201 – 250 Rs. 1.50/-
Above 250 Rs. 2.00/-
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
float intial_read,final_read,unit, price;
cout<<"Enter initial reading:";
cin>>intial_read;
cout<<"Enter final reading:";
cin>>final_read;
unit=final_read-intial_read;
if(unit<=100)
price = unit*0.50;
else if(unit<=150)
price = unit*0.75;
else if(unit<=200)
price = unit*1.00;
else if(unit<=250)
price = unit*1.50;
else if(unit>250)
28. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 28
price = unit*2.00;
else
cout<<"invalid inputn";
cout<<"Amount to be paid = "<<price<<endl;
return 0;
}
OUTPUT
Enter initial reading: 125
Enter final reading: 300
Amount to be paid = 175
29. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 29
Date:
13. Aim: To display the first N terms of Fibonacci series.
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
int num,x,y, z ,count=0;
cout<<"Enter the number of terms:";
cin>>num;
x=0;
y=1;
while(count<num)
{
cout<<x<<" ";
z=x+y;
x=y;
y=z;
count++;
}
return 0;
}
OUTPUT
Enter the number of terms: 10
0 1 2 3 5 8 13 21 34 55
30. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 30
Date:
14. Aim: Define separate functions to return simple interest and compound interest by
accepting principle amount, time and rate of interest as arguments.
Procedure: (Source Code)
#include <iostream>
#include <cmath>
using namespace std;
float simple(float p,int n,float r)
{
float si;
si=p*n*r/100;
return si;
}
float compound(float p,int n,float r)
{
float ci;
ci=p*pow(1+r*0.01,n)p;
return ci;
}
int main()
{
float p,si,ci,r;
int n;
cout<<"Input principal t";
cin>>p;
cout<<"period in years t";
cin>>n;
cout<<"rate of interest t";
cin>>r;
si=simple(p,n,r);
ci=compound(p,n,r);
cout<<"Simple Interest = "<<si<<endl;
cout<<"Compound Interest = "<<ci<<endl;
}
31. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 31
OUTPUT
Input principal 1000
period in years 4
rate of interest 6
Simple Interest = 240
Compound Interest = 262.477
Date:
32. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 32
15. Aim: Create an array of N numbers and count the number of even numbers and odd
numbers in the array.
Procedure: (Source Code)
#include <iostream>
using namespace std;
int main()
{
int a[10],ec=0,oc=0,i;
cout<<"Input array t";
for(i=0;i<10;i++)
{
cin>>a[i];
if(a[i]%2==0)
{
ec++;
}
else
{
oc++;
}
}
cout<<"nNumber of odd elements = "<<oc;
cout<<"nNumber of even elements = "<<ec;
}
OUTPUT
Input array 23 34 45 56 67 78 89 10 11 15
Number of odd elements = 6
Number of even elements = 4
33. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 33
16. Aim: Define a function to swap the contents of two variables. Using this function,
interchange the values of three variables. E.g. A to B, B to C and C to A.
Procedure: (Source Code)
#include <iostream>
using namespace std;
void swap(int &a, int &b)
{
int temp;
temp=a;
a=b;
b=temp;
}
int main()
{
int x,y,z;
cout<<"Enter three numbers for swapping: ";
cin>>x>>y>>z;
cout<<"Values before swapping are: "<<x<<" "<<y<<" "<<z<<endl;
swap(x,y);
swap(x,z);
cout<<"Values after swapping are: "<<x<<" "<<y<<" "<<z<<endl;
return 0;
}
OUTPUT
Enter three numbers for swapping: 1 2 3
Values before swapping are: 1 2 3
Values after swapping are: 3 1 2
34. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 34
17. Aim: Input a string and create a triangle using its characters as shown in the given
example.
MAJLIS
MAJLI
MAJL
MAJ
MA
M
Procedure: (Source Code)
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
int i,j,n;
char st[10];
cout<<"Input a wordt";
gets(st);
n=strlen(st);
for(i=n;i>0;i--)
{
for(j=0;j<i;j++)
{
cout<<st[j];
}
cout<<endl;
}
}
35. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 35
OUTPUT
Input a word MAJLIS
MAJLIS
MAJLI
MAJL
MAJ
MA
M
37. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 37
Date:
1. Aim: Design a simple and attractive webpage for Kerala Tourism. It should contain
features like background color/image, headings, text formatting and font tags, images,
etc.
Procedure:
<HTML>
<HEAD>
<TITLE>KeralaTourism</TITLE>
</HEAD>
<CENTER>
<BODY background="D:HTMLBack.jpg" width="75%" height="75%" text="ffffff">
</CENTER>
<IMG Src="D:HTMLkerala.png"><br><br>
<CENTER><h1><B><font color="Red">Welcome Kerala</h1></B></font>
<I><p>Kerala, a state on India's tropical Malabar Coast, has nearly 600km of Arabian
Sea shoreline. It's known for its palm-lined beaches and backwaters, a network of
canals. <br>Inland are the Western Ghats, mountains whose slopes support tea,
<br>coffee and spice plantations as well as wildlife. National parks like Eravikulam
and Periyar, plus Wayanad and other sanctuaries, <br>are home to elephants, langur
monkeys and tigers..</CENTER>
</p></I>
<BR><BR><BR
<BR>
<center><IMG Src="D:HTMLwoods.jpg" width="20%" height="20%">
<IMG Src="D:HTMLvillage.jpg" width="20%" height="20%">
<IMG Src="D:HTMLsadya.jpg" width="20%" height="20%">
<IMG Src="D:HTMLayurveda.jpg" width="20%" height="20%"></center>
<BR>
</BODY>
</HTML>
38. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 38
TAG ATTRIBUTE VALUE
Body Background Back.jpg
Font Color Red
H1
Img Src kerala.png
Img Src woods.jpg
P
OUTPUT
39. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 39
Date:
2. Aim: Design a webpage showing tourist destinations in Kerala as shown below.
Department of Tourism
Government of Kerala
Tourist Destinations in Kerala
1. Beaches
a. Kovalam
b. Muzhuppilangad
c. Kappad
2. Hill Stations
i. Munnar
ii. Wayanad
iii. Gavi
3. Wildlife
a. Iravikulam
b. Muthanga
c. Kadalundi
Procedure:
<HTML>
<HEAD> <TITLE> Kerala Tourism</TITLE> </HEAD>
<BODY>
<CENTER>
<H1> Department of Tourism </H1>
<H2> Kerala State </H2>
</CENTER>
<I><B> Tourist attractions in Kerela </I> </B><BR>
<OL>
<LI> Beaches
<OL Type="a">
<LI>Kovalam Beach
40. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 40
<LI>Muzhuppilngad
<LI>Kappad
</OL>
<LI> Hill Station
<OL type="i">
<LI>Munnar
<LI>Wayanad
<LI>Gavi
</OL>
<LI> Wild Life
<OL type="a">
<LI>Iravikulam
<LI>Muthanga
<LI>Kadalundi
</OL>
</BODY>
</HTML>
TAG ATTRIBUTE VALUE
OL Type a
LI
OUTPUT
41. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 41
Date:
3. Aim: Design a simple webpage about your school. Create another webpage named
address.htm containing the school address. Give links from school page to address.htm.
Procedure:
School.html
<HTML>
<HEAD>
<TITLE>MYSCHOOL</TITLE>
</HEAD>
-<BODY>
<CENTER>
<B>Welcome To</B><br>
<h1><B>MAJLIS ENGLISH MEDIUM HIGHER SECONDARY SCHOOL</B></h1>
Manhampara<br>
<IMG Src="D:HTMLMajlis.jpg">
<BR><BR>
<A Href="address.html"><b>To Know MAJLIS SCHOOL</b></A>
</CENTER>
</BODY>
</HTML>
Address.html
<HTML>
<HEAD>
<TITLE>MYSCHOOL</TITLE>
</HEAD>
<BODY>
<CENTER>
<B>To Know MAJLIS SCHOOL</B><br>
<h1><B>MAJLIS ENGLISH MEDIUM HIGHER SECONDARY SCHOOL</B></h1>
<address>Majlis Nagar | Manhampara<br>
Post Kuntar | Adhur Village
Kasaragod | Post Box: 671 543
Web:www.majlischool.com
42. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 42
Mail:info@majlischool.com
</address>
</CENTER>
</BODY>
</HTML>
TAG ATTRIBUTE VALUE
Img Src Majlis.jpg
A Href address.html
Address
OUTPUT
43. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 43
Date:
4. Aim: Design the following table using HTML.
Class Strength
Science Commerce Humanities
Plus One 49 50 48
Plus Two 50 50 49
Procedure:
<HTML>
<HEAD>
<TITLE>Table</TITLE>
</HEAD>
<BODY>
<TABLE HEIGHT="200" WIDTH="100" cellpadding="1" cellspacing="1"BORDER="1">
<TR>
<TH ROWSPAN="2">Class</TH>
<TH colspan="3">Strength</TH>
</TR>
<TR>
<TH>Science</TH>
<TH>Commerce</TH>
<TH>Humanities</TH>
</TR>
<TR>
<TH>PlusOne</TH>
<TD>49</TD>
<TD>50</TD>
<TD>48</TD>
</TR>
45. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 45
Date:
5. Aim: Design a web page containing a table as shown below.
Speed Limits in Kerala
Vehicles Near School (In
Km/hour)
Within
Corporation/
Municipality (In
Km/hour)
In other roads (In
Km/hour)
Motor Cycle 25 40 50
Motor Car 25 40 70
Light motor vehicles 25 40 60
Heavy motor
vehicles
15 35 60
Procedure:
<HTML>
<HEAD>
<TITLE>TableSpeed</TITLE>
</HEAD>
<BODY>
<TABLE Height="400" WIDTH="300" cellpadding="1" cellspacing="1" BORDER="1">
<CAPTION><B>Speed Limits in Kerala</B></CAPTION>
<TR>
<TH>
Vehicles
</TH>
<TH >
Near School<BR> (In Km/hour)
</TH>
<TH>
Within Corporation/<BR> Municipality<BR>
(In Km/hour)
</TH>
48. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 48
Date:
6. Aim: Design a webpage containing frames that divide the screen vertically in the ratio
50:50. Design two web pages – one containing the list of Indian cricket team members
and the second page containing a list of Indian football team members.
Procedure:
Frame.html
<HTML>
<HEAD>
<TITLE>Team_List</TITLE>
</HEAD>
<FRAMESET Cols=50%, 50%>
<FRAME SRC="Cricket.html">
<FRAME SRC="Football.html">
</FRAMESET>
</HTML>
Cricket.html
<HTML>
<HEAD>
<TITLE>Cricket Team</TITLE>
</HEAD>
<body>
<h2><u>Cricket Team</u><br>
<ol>
<li>Kohili</li>
<li>Doni</li>
<li>Rohith</li>
<li>Pujara</li>
<li>Dawan</li>
<li>Ashwin</li>
</ol>
</HTML>
Football.html
<HTML>
<HEAD>
<TITLE>Cricket Team</TITLE>
</HEAD>
<body>
<h2><u>Football Team</u><br>
<ul>
49. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 49
<li>Ronaldo</li>
<li>Messi</li>
<li>Sala</li>
<li>Pogba</li>
<li>Greesman</li>
<li>Empambe</li>
</ul>
</HTML>
TAG ATTRIBUTE VALUE
Frameset Cols 50%
Frame Src Cricket.html
Src Football.html
OL
UL
LI
OUTPUT
50. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 50
Date:
7. Aim: Design a simple webpage as shown below.
Procedure:
<HTML>
<HEAD>
<TITLE>LOGIN</TITLE>
</HEAD>
<BODY>
<FORM>
<FIELDSET>
<center><b>Client Login</b><br>
<BR>
Enter User Name <INPUT Type="Text"> <br>
<BR>
Enter Your Password <INPUT Type="Password">
<BR><br>
<INPUT Type="Submit" value="SUBMIT">
<INPUT Type="Reset" value="CLEAR">
</FIELDSET>
</center>
</FORM>
Client Login
Enter your Password
Enter User Name
Submit Clear
51. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 51
</BODY>
</HTML>
TAG ATTRIBUTE VALUE
Form
Fieldset
Input Type Submit
Input Type Reset
OUTPUT
52. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 52
Date:
8. Aim: A webpage should contain one text box for entering a text. There a should be
two buttons labeled “To Upper Case “ and “To Lower Case” .On clicking each button, the
content in the text box should be converted to upper case or lower case accordingly
.Write the required JavaScript for these operations.
Procedure:
<HTML>
<HEAD>
<TITLE>String_Convertion</TITLE>
<SCRIPT Language="JavaScript">
function upper()
{
document.fc.tc.value=document.fc.ts.value.toUpperCase();
}
function lower()
{
document.fc.tc.value=document.fc.ts.value.toLowerCase();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM Name="fc">
<CENTER>
Enter the String:
<INPUT Type="text" Name="ts">
<BR><BR>
<INPUT Type="text" Name="tc">
<BR><BR>
<INPUT Type="button" value="“To Upper Case" onClick="upper()">
53. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 53
<INPUT Type="button" value="To Lower Case”" onClick="lower()">
</CENTER>
</FORM>
</BODY>
</HTML>
TAG ATTRIBUTE VALUE
Script Language JavaScript
Input Type Button
Input Value ToUpperCase
Input Value ToLowerCase
OUTPUT
54. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 54
Date:
9. Aim: Develop a webpage to find the capital of Indian States. The page should contain
dropdown list from which the user can select a state. On clicking the show button, the
web page should display the capital of the state in another text box. Write the required
JavaScript.
Procedure:
<HTML>
<HEAD>
<TITLE>Capital OfStates</TITLE>
<SCRIPT Language="JavaScript">
function Capital()
{
var n, answer;
n=document.frmCapital.cboState.selectedIndex;
switch(n)
{
case 0:answer="Thiruvananthapuram";
break;
case 1:answer="Bengaluru";
break;
case 2:answer="Chennai";
break;
case 3:answer="Mumbai";
break;
}
document.frmCapital.txtCapital.value=answer;
}
</SCRIPT>
</HEAD>
55. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 55
<FORM Name="frmCapital">
<CENTER>State:
<SELECT Size=”1“ Name="cboState">
<OPTION>Kerala</OPTION>
<OPTION>Karnataka</OPTION>
<OPTION>Tamilnadu</OPTION>
<OPTION>Maharashtra</OPTION>
</SELECT>
<BR><BR>
Capital:
<INPUT Type="Text" Name="txtCapital">
<BR><BR>
<INPUT Type="Button" value="Show" onClick="Capital ()">
</CENTER>
</FORM>
</BODY>
</HTML>
TAG ATTRIBUTE VALUE
Script Language JavaScript
Input Type Button
Input Type Text
Select Size 1
Select Name cboState
Option
OUTPUT
56. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 56
Date:
10. Aim: Develop a webpage with two text boxes and a button labeled “Show”. The user
can enter a number in the first text box. One clicking the button, the second text box
should display the sum of all numbers up to the given number. Write the required
JavaScript.
Procedure:
<HTML>
<HEAD>
<TITLE>Sum</TITLE>
<SCRIPT Language="JavaScript">
function sum()
{
var sum=0,i,limit;
limit=Number(document.frmsum.txtlimit.value);
for(i=1;i<=limit;i++)
{
sum=sum+i;
}
document.frmsum.txtsum.value=sum;
}
</SCRIPT>
</HEAD>
<BODY>
<FORM Name="frmsum">
<CENTER>
Enter the limit:
<INPUT Type="text" Name="txtlimit">
<BR><BR>
Sum:
57. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 57
<INPUT Type="text" Name="txtsum">
<BR><BR>
<INPUT Type="button" value="Sum" onClick="sum()">
</CENTER>
</FORM>
</BODY>
</HTML>
TAG ATTRIBUTE VALUE
Script Language JavaScript
Form Name frmsum
Input Type Text
Input Type Button
OUTPUT
59. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 59
Date:
1. Aim: Create a table Student with the following fields and insert at least 5 records into
the table except for the column Total.
Roll_Number Integer Primary key
Name Varchar (25)
Batch Varchar (15)
Mark1 Integer
Mark2 Integer
Mark3 Integer
Total Integer
a. Update the column Total with the sum of Mark1, Mark2 and Mark3.
b. List the details of students in Commerce batch.
c. Display the name and total marks of students who are failed (Total < 90).
d. Display the name and batch of those students who scored 90 or more in Mark1 and
Mark2.
e. Delete the student who scored below 30 in Mark3.
Procedure:
1. SQL Query to create the table.
CREATE TABLE Students
(Roll_Number INT PRIMARY KEY,
Name VARCHAR (25),
Batch VARCHAR (15),
Mark1 INT,
Mark2 INT,
Mark3 INT,
Total INT
);
2. SQL Query to insert 5 records into the table
I. INSERT INTO Students (Roll_Number, Name, Batch, Mark1, Mark2, Mark3)
VALUES (101, ‘Sathar’, ‘Commerce’, 80, 90, 75);
Query OK, 1 row affected
II. INSERT INTO Students (Roll_Number, Name, Batch, Mark1, Mark2, Mark3)
VALUES (102, ‘Surayya’, ‘Science’, 65, 70, 80);
Query OK, 1 row affected
60. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 60
III. INSERT INTO Students (Roll_Number, Name, Batch, Mark1, Mark2, Mark3)
VALUES (103, ‘Shuhaib’, ‘Humanities’, 48, 50, 56);
Query OK, 1 row affected
IV. INSERT INTO Students (Roll_Number, Name, Batch, Mark1, Mark2, Mark3)
VALUES (104, ‘Shahina’, ‘Science’, 80, 90, 96);
Query OK, 1 row affected
V. INSERT INTO Students (Roll_Number, Name, Batch, Mark1, Mark2, Mark3)
VALUES (105, ‘Asmi’, ‘Commerce’, 60, 74, 80);
Query OK, 1 row affected
3. SQL Query for each question
a. UPDATE Students SET Total=Mark1+Mark2+Mark3;
b. SELECT * FROM Students WHERE Batch=’Commerce’;
c. SELECT Name, Total FROM Students WHERE Total<90;
d. SELECT Name, Batch FROM Students WHERE Mark1>90 AND Mark2>90;
e. DELETE FROM Students WHERE Mark3<30;
OUTPUT
Table with Records
61. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 61
a. Update the column Total with the sum of Mark1, Mark2 and Mark3.
b. List the details of students in Commerce batch.
c. Display the name and total marks of students who are failed (Total < 90).
d. Display the name and batch of those students who scored 90 or more in Mark1 and
Mark2.
e. Delete the student who scored below 30 in Mark3.
62. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 62
Date:
2. Aim: Create a table Employee with the following fields and insert at least 5 records
into the table except the column Gross_pay and DA.
Emp_code Integer Primary key
Emp_name Varchar (20)
Designation Varchar (25)
Department Varchar (25)
Basic Decimal (10,2)
DA Decimal (10,2)
Gross_pay Decimal (10,2)
a) Update DA with 75% of Basic.
b) Display the details of employees in Purchase, Sales and HR departments.
c) Update the Gross_pay with the sum of Basic and DA.
d) Display the details of employee with gross pay below 10000.
e) Delete all the clerks from the table.
Procedure:
1. SQL Query to create the table.
CREATE TABLE Employee
(Emp_code INT PRIMARY KEY,
Emp_name VARCHAR (20),
Designation VARCHAR (25),
Department VARCHAR (25),
Basic DEC(10,2),
DA DEC(10,2),
Gross_pay DEC(10,2)
);
2. SQL Query to insert 5 records into the table
I. INSERT INTO Employee (Emp_code, Emp_name, Designation, Department,
Basic)
VALUES (101, ‘Aiser’, ‘Supervisor’, ‘Purchase’, 10000);
Query OK, 1 row affected
II. INSERT INTO Employee (Emp_code, Emp_name, Designation, Department,
Basic)
VALUES (102, ‘Hani’, ‘Officer’, ‘HR’, 14000);
Query OK, 1 row affected
63. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 63
III. INSERT INTO Employee (Emp_code, Emp_name, Designation, Department,
Basic)
VALUES (103, ‘Muhammad’, ‘Clerk’, ‘Sales’, 6000);
Query OK, 1 row affected
IV. INSERT INTO Employee (Emp_code, Emp_name, Designation, Department,
Basic)
VALUES (104, ‘Shaiba’, ‘Supervisor’, ‘Stock’, 4000);
Query OK, 1 row affected
V. INSERT INTO Employee (Emp_code, Emp_name, Designation, Department,
Basic)
VALUES (105, ‘Arun’, ‘Clerk’, ‘Purchase’, 3500);
Query OK, 1 row affected
3. SQL Query for each question
a. UPDATE Employees SET DA = Basic * 75 /100;
b. SELECT * FROM Employees WHERE Department IN (‘Sales’, ‘Purchase’, ‘HR’);
c. UPDATE Employees SET Gross_pay = Basic + DA;
d. SELECT * FROM Employees WHERE Gross_pay <10000;
e. DELETE FROM Employees WHERE Designation = ‘Clerk’;
OUTPUT
Table with Records
64. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 64
a. Update DA with 75% of Basic.
b. Display the details of employees in Purchase, Sales and HR departments.
c. Update the Gross_pay with the sum of Basic and DA.
65. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 65
d. Display the details of employee with gross pay below 10000.
e. Delete all the clerks from the table.
66. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 66
Date:
3. Aim: Create a table Stock, which stores daily sales of items in a shop, with the
following fields and insert at least 10 records into the table.
Item_code Integer Primary key
Item_name Varchar (20)
Manufacturer_Code Varchar (5)
Qty Integer
Unit_Price Decimal (10,2)
Exp_Date Date
a. Display the details of items which expire after 31/3/2016 in the order of expiry date.
b. Find the number of items manufactured by the company “SATA”.
c. Remove the items which expire between 31/12/2015 and 01/06/2016.
d. Add a new column named Reorder in the table to store the reorder level of items.
e. Update the column Reorder with value obtained by deducting 10% of the current
stock.
Procedure:
1. SQL Query to create the table.
CREATE TABLE Stock
( Item_code INT PRIMARY KEY,
Item_name VARCHAR (20),
Manufacturer_Code VARCHAR (5),
Qty INT,
Unit_Price DEC (10,2),
Exp_Date Date
);
2. SQL Query to insert 5 records into the table
I. INSERT INTO Stock (Item_code, Item_name, Manufacturer_Code, Qty,
Unit_Price, Exp_Date)
VALUES (101, ‘AC’, ‘LG’, 60, 25000, ‘2018-08-25);
Query OK, 1 row affected
II. INSERT INTO Stock (Item_code, Item_name, Manufacturer_Code, Qty,
Unit_Price, Exp_Date)
VALUES (102, ‘TV’, ‘Samsg’, 40, 20000, ‘2015-11-29’);
Query OK, 1 row affected
67. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 67
III. INSERT INTO Stock (Item_code, Item_name, Manufacturer_Code, Qty,
Unit_Price, Exp_Date)
VALUES (103, ‘Fridge’, ‘Volta’, 30, 45000, ‘2016-05-02’);
Query OK, 1 row affected
IV. INSERT INTO Stock (Item_code, Item_name, Manufacturer_Code, Qty,
Unit_Price, Exp_Date)
VALUES (104, ‘RAM’, ‘SATA’, 80, 800, ‘2017-10-18’);
Query OK, 1 row affected
V. INSERT INTO Stock (Item_code, Item_name, Manufacturer_Code, Qty,
Unit_Price, Exp_Date)
VALUES (105, ‘HDD’, ‘SATA’, 90, 2500, ‘2009-04-09’);
Query OK, 1 row affected
3. SQL Query for each question
a. SELECT * FROM Stock WHERE Exp_Date> ‘2016-03-31’ ORDER BY
Exp_Date ASC;
b. SELECT Manufacturer_Code, COUNT(*) FROM Stock
WHERE Manufacturer_Code= ‘SATA’;
c. DELETE FROM Stock WHERE Exp_date
BETWEEN '2015-12-31' and '2016-06-01';
d. ALTER TABLE Stock ADD COLUMN Reorder INT;
e. UPDATE Stock SET Reorder=Qty-(Qty*10/100);
OUTPUT
Table with Records
68. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 68
a. Display the details of items which expire after 31/3/2016 in the order of expiry date.
b. Find the number of items manufactured by the company “SATA”.
c. Remove the items which expire between 31/12/2015 and 01/06/2016.
d. Add a new column named Reorder in the table to store the reorder level of items.
69. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 69
e. Update the column Reorder with value obtained by deducting 10% of the current
stock.
70. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 70
Date:
4. Aim: Create a table Book with the following fields and insert at least 5 records into the
table.
Book_ID Integer Primary key
Book_Name Varchar (20)
Author_Name Varchar (25)
Pub_Name Varchar (25)
Price Decimal (10,2)
a. Create a view containing the details of books published by SCERT.
b. Display the average price of books published by each publisher.
c. Display the details of book with the highest price.
d. Display the publisher and number of books of each publisher in the descending order
of the count.
e. Display the title, current price and the price after a discount of 10% in the
alphabetical order of book title.
Procedure:
1. SQL Query to create the table.
CREATE TABLE Book
(Book_ID INT PRIMARY KEY,
Book_Name VARCHAR (20),
Author_Name VARCHAR (25),
Pub_Name VARCHAR (25),
Price DEC (10,2)
);
2. SQL Query to insert 5 records into the table
I. INSERT INTO Book (Book_ID, Book_Name, Author_Name, Pub_Name, Price)
VALUES (101, ‘C’, ‘Balaguru Swami’, ‘Mc Millen’, 350);
Query OK, 1 row affected
II. INSERT INTO Book (Book_ID, Book_Name, Author_Name, Pub_Name, Price)
VALUES (102, ‘C++’, ‘Dennis Richard’, ‘Villy’, 600);
Query OK, 1 row affected
III. INSERT INTO Book (Book_ID, Book_Name, Author_Name, Pub_Name, Price)
VALUES (103, ‘Java’, ‘Gopal Kumar’, ‘PCM’, 450);
Query OK, 1 row affected
71. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 71
IV. INSERT INTO Book (Book_ID, Book_Name, Author_Name, Pub_Name, Price)
VALUES (104, ‘Prg with Perl’, ‘Rafal’, ‘SCERT’, 650);
Query OK, 1 row affected
V. INSERT INTO Book (Book_ID, Book_Name, Author_Name, Pub_Name, Price)
VALUES (105, ‘N+’, ‘Sugumaran’, ‘DC Books’, 320);
Query OK, 1 row affected
3. SQL Query for each question
a. CREATE VIEW ScertView AS SELECT * FROM Book
WHERE Pub_Name =’SCERT’;
b. SELECT Pub_Name, AVG (Price) FROM Book GROUP BY Pub_Name;
c. SELECT * FROM Book WHERE Price = (SELECT MAX (Price) FROM Book);
d. SELECT Pub_Name , COUNT(*) FROM Book GROUP BY Pub_Name
ORDER BY COUNT (*) DESC;
e. SELECT Book_Name, Price, Price-(Price*10/100)
FROM Book ORDER BY Book_Name ASC;
OUTPUT
Table with Records
a. Create a view containing the details of books published by SCERT.
72. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 72
b. Display the average price of books published by each publisher.
c. Display the details of book with the highest price.
d. Display the publisher and number of books of each publisher in the descending order
of the count.
e. Display the title, current price and the price after a discount of 10% in the
alphabetical order of book title.
73. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 73
Date:
5. Aim: Create a table Bank with the following fields and insert at least 5 records into the
table.
Acc_No Integer Primary key
Acc_Name Varchar (20)
Branch_Name Varchar (25)
Acc_ Type Varchar (10)
Amount Decimal (10,2)
a. Display the branch-wise details of account holders in the ascending order of the
amount.
b. Insert a new column named Minimum Amount into the table with default value 1000.
c. Update the Minimum Amount column with the value 1000 for the customers in
branches other than Alappuzha and Malappuram.
d. Find the number of customers who do not have the minimum amount 1000.
e. Remove the details of SB accounts from Thiruvananthapuram branch who have zero
(0) balance in their account.
Procedure:
1. SQL Query to create the table.
CREATE TABLE Bank
(Acc_No INT PRIMARY KEY,
Acc_Name VARCHAR (20),
Branch_Name VARCHAR (25),
Acc_Type VARCHAR (10),
Amount DEC (10,2)
);
2. SQL Query to insert 5 records into the table
I. INSERT INTO Bank (Acc_No, Acc_Name, Branch_Name, Acc_Type, Amount)
VALUES (101, ‘Haneefa’, ‘Alappuzha’, ‘SB’, 10000);
Query OK, 1 row affected
II. INSERT INTO Bank (Acc_No, Acc_Name, Branch_Name, Acc_Type, Amount)
VALUES (102, ‘Manoj’, ‘Malappuram’, ‘SB’, 8000);
Query OK, 1 row affected
III. INSERT INTO Bank (Acc_No, Acc_Name, Branch_Name, Acc_Type, Amount)
VALUES (103, ‘Sukanniya’, ‘Kasaragod’, ‘CA’, 6000);
Query OK, 1 row affected
74. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 74
IV. INSERT INTO Bank (Acc_No, Acc_Name, Branch_Name, Acc_Type, Amount)
VALUES (104, ‘Manjula’, ‘Thiruvananthapuram’, ‘SB’, 7000);
Query OK, 1 row affected
V. INSERT INTO Bank (Acc_No, Acc_Name, Branch_Name, Acc_Type, Amount)
VALUES (105, ‘Suresh’, ‘Palakkad’, ‘CA’, 4000);
Query OK, 1 row affected
3. SQL Query for each question
a. SELECT * FROM Bank ORDER BY Branch_Name, Amount ASC;
b. ALTER TABLE Bank ADD COLUMN Minimum_Amount DEC (10,2) DEFAULT 1000;
c. UPDATE Bank SET Minimum_Amount = 500 WHERE Branch_Name
NOT IN (‘Alappuzha’, ’Malappuram’);
d. SELECT COUNT (*) FROM Bank WHERE Minimum_Amount<1000;
e. DELETE FROM Bank WHERE Acc_Type =’SB’
AND Branch_Name=’Thiruvananthapuram’ AND Amount<=0;
OUTPUT
Table with Records
a. Display the branch-wise details of account holders in the ascending order of the
amount.
75. SAYYED AHMMED MISBAH M.E.M.H.S. SCHOOL - MANHAMPARA PAGE 75
b. Insert a new column named Minimum Amount into the table with default value 1000.
c. Update the Minimum Amount column with the value 1000 for the customers in
branches other than Alappuzha and Malappuram.
d. Find the number of customers who do not have the minimum amount 1000.
e. Remove the details of SB accounts from Thiruvananthapuram branch who have zero
(0) balance in their account.