Posts

Showing posts from January, 2025

Html sop7 image mapping

 <!DOCTYPE html> <html><head><title>image map</title></head> <body bgcolor="pink"> <h1> An example of image Map</h1> <map name="imagemap"> <img src="Tulips.jpg" usemap="#imagemap" alt="Image ofTulip"> <area href="http://www.google.com" shape="rect" coords="0,0,93,65" alt="google site"/> <area href="http://www.gmail.com" alt="gmail site" shape="circle" coords="118,140,40" alt="great wall of china"/> <area href="http://www.unipune.ac.in" alt="unipune" shape="poly" coords="145,187,198,215,245,280,305"/> </map> </body></html>

Html multi source video 6b

 <!DOCTYPE html> <html><head><title>video tag</title></head> <body bgcolor="pink"> <center> <video controls width="200" height="200" autoplay> <source src="v.mp4" type="video/mp4"/> <source src="v.mp4" type="video/mp4"/> <source src="v3.mp4" type="video/mp4"/> <source src="v4.mp4" type="video/mp4"/> <source src="v5.mp4" type="video/mp4"/> <source src="v6.mp4" type="video/mp4"/> <source src="v7.mp4" type="video/mp4"/> Your Browser does not support Video Tag..... </video> <p> video sample</p> </cener> <hr color="yellow" size="7"> </body></html>

Html Single video 6a

 <!DOCTYPE html> <html><head><title>video tag</title> <body bgcolor="pink"> <center> <video src="v5.mp4" width="150" height="150" controls></video> <p> video sample</p> </cener> <hr color="yellow" size="7"> </body></html>

Html multi source audio 5b

 <!DOCTYPE html> <html><head><title>Audio tag</title> <body bgcolor="pink"> <p> Audio sample</p> <audio controls autoplay> <source src="Kalimba11.mp3" type="audio/mp3"/> <source src="Sleep Away.mp3" type="audio/mp3"/> <source src="Faded.mp3" type="audio/mp3"/> Your browser does not support Audio tag...………… </audio> <hr color="yellow" size="7"> </body></html>

Html Single audio 5a

 <!DOCTYPE html> <html><head><title>Audio tag</title> <body bgcolor="pink"> <p> Audio sample</p> <audio src="Kalimba.mp3" type="audio/mp3" controls autoplay> </audio> <hr color="yellow" size="7"> </body></html>

Html sop2 tourist places

 <!DOCTYPE html> <html><head> <style> header(background-color:skyblue;border:double;width:100%;height:60%) </style></head> <body> <header><center><h1> Tourist places</center><br><br><br><br><br><br><br><br></header> <section style="background-color: yellow;border:double;font-style:Italic;width:49%;float:left"><h1>City</ h1> <h2> <ol type="1"> <li>Pune</li> <li>banglore</li> <li>hyderabad</li> <li>Delhi</li> </ol></h2><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br> </section> style="background-color:pink;border:double;font-style:oblique;flo...

Java sop6 Total marks

 <!DOCTYPE html> JS_sop6 <html> <head><title>javascript sop 6 </title></head> <body> <script type="text/javascript"> var marks = []; var total=0,avg,a,size = 5; // Array size for(var a = 0 a<=size; a++) { } marks[a] = prompt('Enter array Element ' + (a+1)); for(var a = 0 a<=size; a++) { total=total+parseInt(marks[a]); } alert(" Your Total marks is "+ total); avg=total/6; alert("Your Avarage is "+ avg); switch(true) { case (( vg >= 91 ) && (avg <= 100) ) : alert ("Congratulation!!!....You Got Grade A"); break; case (( g >= 81 ) && (avg <= 90) ) alert ("Congratulation!!!....You Got Grade B"); break; case (( Ng >= 71 ) && (avg <= 80) ): alert ("Congratulation!!!....You Got Grade C"); break; case ( (avg >= 61) && (avg <= 70) ) alert ("Congratulation!!!....You Got Grade D"); break; case ( (avg >= 35) ...

Java 5b ⁰F to ⁰C

 <!DOCTYPE html> <html> <head><title> Converting Temperature from Fahrenheit to Celsius</title> <script Language="Javascript"> function tempF() var F,C; { F=f1.t1.value; C=(F-32)*5/9; F=parseFloat(F); alert("entered temperature is"+F); alert("Given Temperature is "+F+"FAHERENHEIT="+C+"CELSIUS"); } </script></head> <body bgcolor="pink"> <form method="post" name="f1"> Enter temperature in terms of Faherenheit<br> <input type="text" name="t1"> <br> <input type="submit" name="s1" value="In Celsius" onClick="tempF()"> </form></body></html>

Java 5a. ⁰C to ⁰F

 <!DOCTYPE html> <html> <head><title> Converting Temperature from Celsius to Fahrenheit</title> <script Language="Javascript"> function temp() { var C,F; C=f1.t1.value; C=parseFloat(C); alert("Given Temperature is "+C+"="+F); alert("entered temperature is"+C); F=(9*C/5)+32; } </script></head> <body bgcolor="yellow"> <form method="post" name="f1"> Enter temperature in terms of Celsius <br> <input type="text" name="t1"> <br> <input type="submit" name="s1" value="In Fahrenheit" onClick="temp()"> </form></body></html>

Sop 4 javascript palindrome

 <!DOCTYPE html> <html><head><title>Reverse the stringand check palindrome</title> <script type="text/javascript"> function palindrome() { var str,str2,i,len; str2=""; str=(f1.str1.value); count=0; len=str.length; for(i=len-1;i>=0;i--) { str2=str2+str[i]; } alert("Reverse String is ==>"+str2); if(str == str2) { alert("String is palindrome"); } else { alert("String is not palindrome"); } } </script> </head> <body> <form name="f1"> Enter any string: <input type="text" name="str1"><br> <input type="button" value="Reverse String" onClick="palindrome()"> </form> </body> </html>

Sop 3 javascript. Count vowels

 <!DOCTYPE html> <html><head><title>count vowels</title> <script type="text/javascript"> function cnt() { var str, count, i, len; str=(f1.str1.value); count=0; len=str.length; for(i=0;i<=len;i++) { if((str[i] == "a")||(str[i] == "A")) { count=count+1; } else if((str[i] == "e")||(str[i] == "E")) { count=count+1; } else if((str[i] == "i" )||(str[i] == "1")) { count=count+1; } else if((str[i] == "o")||(str[i] == "O" )) { count=count+1; } else if((str[i] == "u" )||(str[i] == "U" )) { count=count+1; } } alert("Number of vowels are:=====> "+count); } </script> </head> <body> <form name="f1"> Enter any string: <input type="text" name="str1"><br> <input type="button" value="Count Vowels" onClick="cnt()"> </form> </body> ...

PHP sop4 pg-2. Total marks exam

 <!DOCTYPE html> <head><title>how to use array</title> <?php function display_marks() { $eng=$_POST["eng"]; $phy=$_POST["phy"]; $chem=$_POST["chem"]; $bio=$_POST["bio"]; $math=$_POST["math"]; $it=$_POST["it"]; $subject = array("English", "Physics", "Chemistry", "Biology", "Mathematics","IT"); $subject['English']="$eng"; $subject['Physics']="$phy"; $subject['Chemistry']="$chem"; $subject['Biology']="$bio"; $subject['Mathematics']="$math"; $subject['IT']="$it"; $i=1;$tot=0; foreach($subject as $value) { echo "$value =$subject[$value] <br>"; $tot = $tot + $subject[$value]; $i=$i+1; if($i > 6) { break; } } echo "<b> Your Total marks = $tot <br>"; echo "<b> Your percentage is = $perc %...

PHP sop4 pg-1 subject marks

 <!DOCTYPE HTML> <HTML> <HEAD> <META HTPP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML" CHARSET="UTF-8"> </HEAD> <BODY> <FORM ACTION="marks.php" METHOD="post" name="f1"> Enter the marks of English Subject <input type=text name="eng"><br> Enter the marks of Physics Subject <input type=text name="phy"><br> Enter the marks of Chemistry Subject <input type=text name="chem"><br> Enter the marks of Biology Subject <input type=text name="bio"><br> Enter the marks of Mathematics Subject <input type=text name="math"><br> Enter the marks of Information Technology Subject <input type=text name="it"><br> <input type="submit" value="Display marks along with subject" name="s1"> </form> </BODY></HTML>

pHp sop2 program vowels

 <!DOCTYPE html> <head><title>Count vowels</title> <?php function count_vowel() { $str=$_GET['str']; $acount=substr_count($str,"a"); $a1count=substr_count($str,"A"); $ecount=substr_count($str,"e"); $e1count-substr_count($str,"E"); $icount=substr_count($str,"i"); $i1count=substr_count($str,"I"); $ocount=substr_count($str,"o"); $o1count=substr_count($str,"0"); $ucount=substr_count($str,"u"); $u1count=substr_count($str,"U"); $a= $acount + $alcount; $e $ecount + $elcount; $i$icount + $i1count; $o$ocount + $o1count; $u$ucount + $u1count; echo "a occurs = ". $a." times"; echo "<br>"; echo "e occurs = ".$e." times"; echo "<br>"; echo "i occurs= ". $i." times"; echo "<br>"; echo "o occurs = ". $o." times"; echo "<br>"; ...

Php. Sop2. Count vowels

 <!DOCTYPE html> <html> <head><title> count vowels</title> <meta http-equiv="content-Type" content="text/html" charset="UTF-8"> </head> <body> <form action="count_vowel.php" method="GET"> Enter the String: <input type="text" name="str"><br> <br> <input type="Submit" value="submit" name="s1"></form> </body></html>

Php 1 1 voting

 <!DOCTYPE html> <head> <?php $age; function vote_eligibility() { $age=$_POST['age']; if($age<18) { echo "You are not eligible for voting"; } else { echo "Congrats !!!!! You are eligible for Voting"; } vote_eligibility(); ?> </head> <body> </body></html>

Php 1. Voting

 <!DOCTYPE html> <html> <head> <meta http-equiv="content-Type" content="text/html" charset="UTF-8"> </head> <body> <form action="voting.php" method="post"> Name: <input type="text" name="name"><br> Age: <input type="text" name="age"><br> <input type="Submit" value="submit" name="s1"></form> </body></html>

Tanishq

 // Pin Definitions const int gasSensorPin = A0; // MQ-2 sensor analog output const int buzzerPin = 8; // Buzzer pin const int ledPin = 9; // LED pin const int batteryPin = A1; // Battery voltage monitoring pin // Threshold Values const int gasThreshold = 400; // Adjust based on your sensor's calibration const float batteryLowVoltage = 3.5; // Low battery voltage threshold (in volts) void setup() {   pinMode(buzzerPin, OUTPUT);   pinMode(ledPin, OUTPUT);   Serial.begin(9600); // For debugging and monitoring } void loop() {   // Read gas sensor value   int gasValue = analogRead(gasSensorPin);   // Gas detection logic   if (gasValue > gasThreshold) {     digitalWrite(ledPin, HIGH); // Turn on LED     digitalWrite(buzzerPin, HIGH); // Turn on buzzer     Serial.println("Gas Detected!");   } else {     digitalWrite(ledPin, LOW); // Turn off LED     digitalWrite(buzzerPin, LO...