Class 8 Lab Activity Book

HTML  Activity 2 (page no. 11)

<HTML>
<HEAD>
</HEAD>
<BODY>
<p> 
<FONT COLOR=BLUE>
</FONT>
</p>
</BODY>
</HTML>


HTML  Activity 3 (page no. 12)
<!DOCTYPE html>
<html>
<head>
<title>Flowers</title>
</head>
<body>
<marquee behavior="scroll" direction="left">Types of Flowers</marquee>
<table align="center" border="1">
<tr>
<td><img src="rose.jpg" width="100" height="100"><br>Rose</td>
<td><img src="lily.jpg" width="100" height="100"><br>Lily</td>
</tr>
<tr>
<td><img src="sunflower.jpg" width="100" height="100"><br>Sunflower</td>
<td><img src="daisy.jpg" width="100" height="100"><br>Daisy</td>
</tr>
</table>
</body>
</html>

HTML  Activity 4 (page no. 13)

<!DOCTYPE html>
<html>
<head>
<title>Freedom Fighters</title>
</head>
<body bgcolor="green" text="yellow">
<h1 align="center">Freedom Fighters of India</h1>

<table align="center">
<tr>
<td><img src="mahatma_gandhi.jpg" width="100" height="100"><br>
Mahatma Gandhi</td>
<td><img src="subhas_chandra_bose.jpg" width="100" height="100"><br>
Subhas Chandra Bose</td>
<td><img src="bhagat_singh.jpg" width="100" height="100"><br>
Bhagat Singh</td>
</tr>
<tr>
<td><img src="jawaharlal_nehru.jpg" width="100" height="100"> <br>
Jawaharlal Nehru</td>
<td><img src="sarojini_naidu.jpg" width="100" height="100"><br>
Sarojini Naidu</td>
<td><img src="lala_lajpat_rai.jpg" width="100" height="100"><br>
Lala Lajpat Rai</td>
</tr>
</table>
</body>
</html>

HTML  Project 2 (page no. 15)

<!DOCTYPE html>
<html>
<head>
<title>Project 2</title>
</head>

<body bgcolor=pink>
<h1>BEN 10</h1>
<p>Paragraph 1</p>
<center><img src="ben10.jpg" alt="Ben 10" width="200" border="2"></center>
<p>Paragraph 2</p>
</body>

</html>

HTML  Project 3 (page no. 17)

<!DOCTYPE html>
<html>
<head>
<title>University of Professional Studies</title>
</head>
<body bgcolor=pink>

<h1 align="center"><b><i>University of Professional Studies</i></b></h1>

<h3 align="center"><u>Reaching to New Heights</u></h3>

<center>
  <img src="university.jpg" alt="Deemed University" border="2" width="300" height="200">
</center>

<h4>
 <font color=red> <u> <b>About University</b> </u> <br> </font></h4>
<font color=blue> <p> &nbsp;&nbsp;&nbsp;&nbsp;The University came into existence on the beginning of 60's as a teaching-cum-affiliating university. Since its inception the University has been alive to the ever increasing demands of higher education. Keeping apace with changing times, the University today offers many vocational courses. For the less privileged students coming from the scheduled tribes or backward class, special coaching classes are organised from time to time to prepare them for competitive examinations. 
</p> </font>

<p align="center">
  <a href="admission.html">Admission</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="gallery.html">Gallery</a>
</p>


</body>
</html>

HTML  Project 4 (page no. 18)

<!DOCTYPE html>

<html>

<head>
<title>International Delhi Public School Narasaraopet</title>
</head>
<body>

<table width="100%" border="0">
  <tr height="20%">
    <td colspan="3" align="center">
      <img src="logo.png" alt="School Logo" height="100">
      <h1>International Delhi Public School Narasaraopet</h1>
    </td>
  </tr>
  <tr height="60%">
    <td colspan="3" align="center">
      <a href="home.html">HOME</a> &nbsp;
      <a href="features.html">FEATURES</a> &nbsp;
      <a href="curriculum.html">CURRICULUM</a> &nbsp;
      <a href="result.html">RESULT</a> &nbsp;
      <a href="aboutus.html">ABOUT US</a>
      <br><br>
      <p>
        International Delhi Public School Narasaraopet is committed to providing a holistic and enriching educational experience for students. We strive to foster academic excellence, character development, and a lifelong love of learning.
      </p>
    </td>
  </tr>
  <tr height="20%">
    <td colspan="3" align="center">
      <marquee behavior="scroll" direction="left" scrollamount="5">
        <img src="playground.jpg" alt="Playground" height="100">
        <img src="computerlab.jpg" alt="Computer Lab" height="100">
        <img src="spacelab.jpg" alt="Space Lab" height="100">
        <img src="canteen.jpg" alt="Canteen" height="100">
        <img src="library.jpg" alt="Library" height="100">
        <img src="classroom.jpg" alt="Classroom" height="100">
      </marquee>
    </td>
  </tr>
</table>

</body>
</html>


PYTHON
ACTIVITY 1

Bonus is: 2000.0

ACTIVITY 2
x = 1
while x <= 10:
  if x != 5:
    print(x)
  x += 1

ACTIVITY 3
1 11 111 1111 11111 

ACTIVITY 4
Input: 42
Output: "The number is divisible by 6&7"
Input: 25
Output: "The number is not divisible by 6&7"

ACTIVITY 5
1 2 
1 2 3 
1 2 3 4


PROJECT 3
def hotel_booking():
    """Simulates a hotel booking system and displays a booking confirmation."""

    print("**** Welcome to the ABC Hotel ****\n")

    name = input("Enter your name: ")
    contact_no = input("Enter your Contact No.: ")
    rooms = int(input("Enter no. of Rooms required: "))
    days = int(input("Enter no. of Days to stay: "))
    room_type = input("Enter Room Type (AC/Non-AC): ")

    check_in_date = "20-03-2021"  # Hardcoded for the example
    check_out_date = "25-03-2021" # Hardcoded for the example
    charge_per_day = 3000

    print("\nWelcome Mr. {}, your Room has been booked.".format(name))
    print("-" * 50)
    print("Check-in Date   : {}".format(check_in_date))
    print("Check-out Date  : {}".format(check_out_date))
    print("Charge/day      : {}".format(charge_per_day))

    total_charge = rooms * days * charge_per_day
    discount = total_charge * 0.10
    payable_bill = total_charge - discount

    print("Discount 10%    : {}".format(int(discount))) # cast discount to int to match the example
    print("Total Payble Bill: {}".format(int(payable_bill))) # cast payable bill to int to match the example

hotel_booking()

Comments

Popular posts from this blog

Class 9 Part B Term 2

class 6 Term2

NCERT GRADE 10