Project
Project
1
CODE:-
<html>
<head>
<title>Festivals of India</title>
</head>
<body bgcolor="#99CCFF">
<h1><center>--<u>Festivals of India</u>--</center></h1>
<center><table border="1" cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td><img src="img1.png" alt="img1" width="200"></td>
<td><img src="img2.png" alt="img2" width="200"></td>
</tr>
<tr>
<td><img src="img3.png" alt="img3" width="200"></td>
<td><img src="img4.png" alt="img4" width="200"></td>
</tr>
</table>
</center>
<ul>
<li><a href="Diwali.html">Diwali</a></li>
<li><a href="Holi.html">Holi</a></li>
<li><a href="Eid.html">Eid</a></li>
<li><a href="Durga_Puja.html">Durga Puja</a></li>
</ul>
</body>
</html>
2
DIWALI
3
CODE:-
<html>
<head>
<title>Diwali</title>
</head>
<body bgcolor="#FFC080">
<h1><center>--<u>Diwali</u>--</center></h1>
<center><table border="1" cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td><img src="D1.png" width="200"></td>
<td><img src="D2.jpeg" width="200"></td>
<td><img src="D3.png" width="200"></td>
</tr>
</table>
</center>
<ol>
<li><B>Diwali is the Festival of Lights:</B> Diwali is a 5-day festival celebrated by
Hindus, Sikhs, and Jains to mark the triumph of light over darkness.</li>
<li><B>Celebrated over 5 days:</B> Diwali is celebrated over 5 days, with each day
having its own significance and rituals.</li>
<li><B>Lakshmi Puja:</B> Diwali is dedicated to the worship of Goddess Lakshmi,
the goddess of wealth and prosperity.</li>
<li><B>Victory of Rama:</B> Diwali celebrates the victory of Lord Rama over
Ravana, the king of Lanka.</li>
<li><B>Return of Pandavas:</B> Diwali also celebrates the return of the Pandavas
from their exile in the Mahabharata.</li>
<li><B>Lighting diyas:</B> Lighting diyas (earthen lamps) is an essential part of
Diwali celebrations, symbolizing the victory of light over darkness.</li>
<li><B>Fireworks and crackers:</B> Fireworks and crackers are burst during Diwali
to drive away evil spirits and to celebrate the festival with joy.</li>
<li><B>Sweets and snacks:</B> Diwali is a time for indulging in traditional sweets
and snacks, such as samosas, gulab jamun, and laddu.</li>
<li><B>Family reunions:</B> Diwali is a time for family reunions and social
gatherings, strengthening bonds and relationships.</li>
<li><B>Spiritual significance:</B> Diwali has a deep spiritual significance,
symbolizing the victory of good over evil, knowledge over ignorance, and light over
darkness.</li>
</ol>
<a href="Home.html">Back</a>
</body>
</html>
4
HOLI
5
CODE:-
<html>
<head>
<title>Holi</title>
</head>
<body bgcolor="#FFC0CB">
<h1><center>--<u>Holi</u>--</center></h1>
<center><table border="1" cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td><img src="Holi1.jpeg" width="200"></td>
<td><img src="Holi2.jpeg" width="200"></td>
<td><img src="Holi3.jpeg" width="200"></td>
</tr>
</table>
</center>
<ol>
<li><B>Holi is the Festival of Colors:</B> Holi is a 2-day festival celebrated by
Hindus, marking the arrival of spring.</li>
<li><B>Celebrated in March:</B> Holi is typically celebrated in March, coinciding
with the full moon.</li>
<li><B>Colors and Water:</B> Holi is known for its vibrant colors and water fights,
symbolizing the joy and playfulness of the festival.</li>
<li><B>Holika Dahan:</B> The first day of Holi is marked by the burning of Holika,
symbolizing the victory of good over evil.</li>
<li><B>Rangwali Holi:</B> The second day of Holi is celebrated with colors and
water, marking the arrival of spring.</li>
<li><B>Traditional Sweets:</B> Holi is a time for indulging in traditional sweets like
gujiya, thandai, and jalebi.</li>
<li><B>Family Reunions:</B> Holi is a time for family reunions and social
gatherings, strengthening bonds and relationships.</li>
<li><B>Cultural Significance:</B> Holi has a deep cultural significance, representing
the victory of good over evil and the arrival of spring.</li>
<li><B>Global Celebrations:</B> Holi is celebrated globally, with many countries
adopting the festival as a symbol of joy and playfulness.</li>
<li><B>Unity and Joy:</B> Holi is a festival that promotes unity and joy, bringing
people together in a celebration of colors and love.</li>
</ol>
<a href="Home.html">Back</a>
</body>
</html>
6
EID
7
CODE:-
<html>
<head>
<title>Eid</title>
</head>
<body bgcolor="#FFC5C5">
<h1><center>--<u>Eid</u>--</center></h1>
<center><table border="1" cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td><img src="Eid1.jpeg" width="200"></td>
<td><img src="Eid2.jpeg" width="200"></td>
<td><img src="Eid3.jpeg" width="200"></td>
</tr>
</table>
</center>
<ol>
<li><B>Eid is a 2-day festival:</B> Eid is celebrated over 2 days, marking the end of
Ramadan and the beginning of Shawwal.</li>
<li><B>Celebrated globally:</B> Eid is celebrated by Muslims globally, with diverse
traditions and customs.</li>
<li><B>Charity and Giving:</B> Eid is a time for charity and giving, emphasizing the
importance of generosity and compassion.</li>
<li><B>Family Reunions:</B> Eid is a time for family reunions and social
gatherings, strengthening bonds and relationships.</li>
<li><B>Traditional Sweets:</B> Eid is a time for indulging in traditional sweets like
baklava, ma'amoul, and ghoriba.</li>
<li><B>Eid Prayers:</B> Eid prayers are an essential part of the celebrations, held in
mosques and open spaces.</li>
<li><B>New Clothes:</B> Eid is a time for wearing new clothes, symbolizing renewal
and celebration.</li>
<li><B>Gift-Giving:</B> Eid is a time for gift-giving, especially for children, adding
to the joy and excitement.</li>
<li><B>Cultural Significance:</B> Eid has a deep cultural significance, representing
the values of compassion, generosity, and community.</li>
<li><B>Unity and Joy:</B> Eid is a festival that promotes unity and joy, bringing
people together in a celebration of faith and love.</li>
</ol>
<a href="Home.html">Back</a>
</body>
</html>
8
DURGA PUJA
9
CODE:-
<html>
<head>
<title>Durga Puja</title>
</head>
<body bgcolor="#FFA07A">
<h1><center>--<u>Durga Puja</u>--</center></h1>
<center><table border="1" cellpadding="10" bgcolor="#FFFFFF">
<tr>
<td><img src="D_P1.jpeg" width="200"></td>
<td><img src="D_P2.jpg" width="200"></td>
<td><img src="D_P3.jpeg" width="200"></td>
</tr>
</table>
</center>
<ol>
<li><B>Durga Puja is a 5-day festival:</B> Durga Puja is celebrated over 5 days,
honoring the goddess Durga's victory over Mahishasura.</li>
<li><B>Celebrated in September-October:</B> Durga Puja is typically celebrated in
September-October, coinciding with the Navratri festival.</li>
<li><B>Goddess Durga:</B> Durga Puja is dedicated to the worship of Goddess
Durga, the embodiment of feminine power and strength.</li>
<li><B>Victory over Mahishasura:</B> Durga Puja celebrates Goddess Durga's
victory over the buffalo-demon Mahishasura, symbolizing good over evil.</li>
<li><B>Puja Rituals:</B> The festival involves elaborate puja rituals, including the
worship of Goddess Durga and her forms.</li>
<li><B>Pandals and Idols:</B> Durga Puja is famous for its colorful pandals and
idols of Goddess Durga, created by skilled artisans.</li>
<li><B>Traditional Sweets:</B> Durga Puja is a time for indulging in traditional
sweets like sandesh, rasgulla, and jalebi.</li>
<li><B>Family Reunions:</B> Durga Puja is a time for family reunions and social
gatherings, strengthening bonds and relationships.</li>
<li><B>Cultural Significance:</B> Durga Puja has a deep cultural significance,
representing the triumph of good over evil and feminine power.</li>
<li><B>Global Celebrations:</B> Durga Puja is celebrated globally, with many
countries adopting the festival as a symbol of cultural heritage.</li>
</ol>
<a href="Home.html">Back</a>
</body>
</html>
10
PROGRAMMING IN C
C Program To Implement Bisection Method
#include<stdio.h>
#include<math.h>
float f(float x)
{
return (x*x*x - 4*x - 9);
}
void bisection(float *x, float a, float b, int *itr)
{
*x=(a+b)/2;
++(*itr);
printf("iteration no. %3d x=%7.5f\n",*itr,*x);
}
int main()
{
int itr=0, maxmitr;
float x,a,b,allerr,x1;
printf("\n enter the values of a,b allowed error and maximum iteration:\n ");
scanf("%f%f%f%d",&a,&b,&allerr,&maxmitr);
bisection(&x,a,b,&itr);
do
{
if(f(a)*f(x)<0)
b=x;
else
a=x;
bisection(&x1,a,b,&itr);
if(fabs(x1-x)<allerr)
{
printf("after %d iterations, root =%6.4f\n ",itr,x1);
return 0;
}
x=x1;
}
while(itr<maxmitr);
printf("the solution does not converge or iterations are not sufficient");
}
11
OUTPUT:-
enter the values of a,b allowed error and maximum iteration:
3 2 0.0005 20
iteration no. 1x =2.50000
iteration no. 2x =2.75000
iteration no. 3x =2.62500
iteration no. 4x =2.68750
iteration no. 5x =2.71875
iteration no. 6x =2.70313
iteration no. 7x =2.71094
iteration no. 8x =2.70703
iteration no. 9x =2.70508
iteration no. 10x =2.70605
iteration no. 11x =2.70654
after 11 iterations, root = 2.7065
process returned 35 (0x23) execution time : 7.496 s
press any key to continue.
12