Archana Mourya

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 86

PGDCA 2nd SEM 2023-24

AN
Assignment
Report
On

PYTHON, DBMS & HTML


Submitted in partial fulfilment of the requirements for the award of dip-
loma
Post Graduate Diploma in Computer Application (PGDCASEM-1)
From
Hemchand Yadav University Durg (C.G.)

Guided By: Submitted By:


GOPAL DEWANGAN SIR ARCHANA MOURYA

INDIRA GANDHI GOVERNMENT ARTS SCIENCE AND COMMERCE


PG COLLEGE
VAISHALI NAGAR BHILAI

1|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Hemchand Yadav University (Durg) (C.G.)

2|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

CERTIFICATE OF APPROVAL

This is to certify that the project work entitled “PYTHON, DBMS & HTML”
is carried out by “ARCHANA MOURYA”, a student of PGDCA-II SEM at
“INDIRA GANDHI GOVERNMENT ARTS SCIENCE AND COMMERCE PG
COLLEGE” is here by approved as a credible work in the discipline of
computer science & information technology for the award of degree of
Post Graduate Diploma in Computer Application during the year 2023-
2024 from Hem Chand Yadav University (Durg) (C.G.).

MR. SURESH KUMAR THAKUR


H.O.D (COMPUTER DEPARTMENT)
…………………………………………………

3|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

CERTIFICATE OF GUIDE

This is to certify that the project work entitled “PYTHON, DBMS & HTML
“Submitted to the “INDIRA GANDHI GOVERNMENT ARTS SCIENCE AND
COMMERCE PG COLLEGE” by “ARCHANA MOURYA” roll no

In partial fulfilment for the requirements relating nature &


standard of the award of degree of “Post Graduate Diploma in Computer
Application” diploma by “Hem Chand Yadav University (Durg) (C.G.)” for
the academic year 2023-2024. This project work has been carried out un-
der my guidance.

MR. GOPAL DEWANGAN


………………………………………

4|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

DECLARATION/SELF CERTIFICATE
This is to certify that the project work entitled “PYTHON, DBMS & HTML”
which is submitted by me in the partial fulfilment for the award of degree
of “Post Graduate Diploma in Computer Application” “INDIRA GANDHI
GOVERNMENT ARTS SCIENCE AND COMMERCE PG COLLEGE” comprises
the original work carried out by me.
I further declare that the work reported in the project has not been sub-
mitted & will not be submitted, either in part or in full award of any other
degree or diploma in this institute or any other institute or university.

PLACE: - BHILAI NAME: - ARCHANA MOURYA


DATE: - ……/…../……. ROLL NO.: -…………………………

5|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

ACKNOWLEDGEMENT

We are very delighted on the accomplishment of the project in visual


basic, which was very educational and practically beneficial. It is due to
his encouragement and persistent motivation that i could extent the scope
of project to much useful data processing report. We have specially
thankful to Mr GOPAL DEWANGAN SIR the INDIRA GANDHI
GOVERNMENT ARTS SCIENCE AND COMMERCE PG COLLEGE who helps us
by his deep knowledge and practical experience in computer science,
rendered all possible in fulfilment of the project and for explaining the
method of approach. So system development is the pooling of talents,
extends help and cooperation above as a team effort.

6|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

INDEX
Python:-

 Write a program that reads an integer value and prints leap year or not a leap year.
 Write a program that takes a positive integer a and then produces n line of output shown as
follows:
 Write a program to create the following pattern
*
**
***
****
*****
 Write a function that takes an integer n as input and calculate the value of 1+1/1! + 1/2! +
1/n!
 Write a function that takes an integer input and calculates the factorial of that number.
 Write a function that takes a string input and checks if it is a palindrome or not.
 Write a list function to convert a string into a list, as in list (-abc) gives [a,b,c].
 Write a program to generate Fibonacci series.
 Write a program to check whether the input number is even or odd.
 Write a program to compare three numbers and print the largest one.
 Write a program to print factors of a given number.
 Write a method to calculate GCD of two numbers.
 Write a program to create Queue class and implement all its methods (use lists).
 Write a program to create Stack class and implement all its methods (use lists).
 Write a program to implement linear and binary search on lists.
 Write a program to sort a list using insertion sort, bubble sort and selection sort.

DBMS:-
 Create table college (chname varchar2 (15) primary key,
 City varchar2 (10), address varchar2 (20), phone no number (10), afdate date);
 Create table staffs (s-id number (3) primary key, s-name varchar2 (15), s-address varchar2
(20), contacts number (10));
 Create table staff joins (s-id number (3) references staffs (s-id), c-name varchar2 (15)
references college (chname),
 Dept. varchar2 (10), doj date, post varchar (10), salary number (7, 2)); (4) Create table
subjects (paper-id number (5) primary key, subject varchar (10), paper-no number (5), t-
session number (5));
 Create table teachings (s-id number (3) references staffs (s-id),class varchar (8), paper-id
number (5) references subjects (paper-id),f-session number (5), t-session number (5));
 A create the above tables with the given specification and constraints.
 B inserts about 10 rows as are appropriate to solve the following queries.
 C lists the names of the teacher’s teachings computer subjects.
 D lists the names and cities of all staff working in your college.
 E lists the name and cities of all staff working in your college who earn more than 15000.

7|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 F find the staffs whose name start with ‘M’ or ’R’ and ends with ‘A’ and/or 7 characters long.
 G. finds the staffs whose date of joining is 2005
 H modify the database so that staff N1 now works in c2
 I list the names of subjects, which t1 teaches in this session or all sessions.
that t1 do not teach at present session.
 USE ABOVE TABLE AND SOLVE FOLLOWING QUERES
 A1 finds the colleges who have most number of staffs.
 B1 find the staffs that earn higher salary who earn greater then avg salary of their college.
 C1 find the colleges whose average salary is more than average salary of c2.
 D1 find the college that has the smallest payroll.
 J E find the colleges where the total salary is greater than the average salary of all collges.
 F1 list maximum, average, minimum salary of each college.
 F.A 2 list the names of the teachers, departments teaching in more than one department.
 B2 acquire details of staffs by name in a college or each college.
 C2 find the names of staff that earn more than each staff of c2 college.
 D2 give all principals a 10% rise in salary unless their salary becomes greater than 20000 in
such case give 5% rise.
 E2 find all staffs that do not work in same cities as the colleges they work.
 F2 list name of employees in ascending order according to salary who are working in your
college or all colleges.
 A2 creates a view having fields’s-name, c-name, dept., doj and post.
 B2 create a view consisting of c-name, average salary and total salary of all staff in that col-
lege.
 C2 finds the names of staff that earn more than each staff of C2 College.
 D2 give all principals a 10% rise in salary unless their salary becomes greater than 20000 in
such case give 5% rise.
 E2 find all staffs that do not work in same cities as the colleges they work.
 F2 list name of employees in ascending order according to salary who are working in your
college or all colleges.
 A2 creates a view having fields’s-name, c-name, dept., doj and post.
 B2 create a view consisting of c-name, average salary and total salary of all staff in that col-
lege.
 C2 selects the colleges having highest and lowest average salary using above views.
 D2 list the staff name of a department using above view.
 Using the following database:-
 Colleges (c-name, city, address, phone, afdate).
 Staffs (s-id, s-name, s-address, contacts).
 Staffjoins (s-id, c-name, dept, DOJ, post, salary).
 Teachings (s-id, class, paperid, fsession, tsession).
 Subjects (paper-id, subject, paper-no, paper-name).
 List the name of the teachers teaching computer subjects.
 List the names and cities of all staffs working in your college
 List the name and cities of all staffs working in your college who earn more than 15000.
 Find the staffs whose name start with ‘M’ or ‘R’ and ends with ‘A’ and/or 5 characters
 Find the staffs where date of joining is 2005.
 Modify the database show that staff N1 now works in C2 colleges
 List the name of subjects, which T1 teaches in this session or all sessions.
 Find the classes that T1 do not teach at present session.

8|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 Find the colleges who have most number of staffs.


 Find the staffs that earn a higher salary who earn greater than average salary of their col-
lege.
 List maximum, average, minimum salary of each college
 Acquire details of staffs by name in a college or each college.
 List names of employees in ascending order according to salary who are working in your col-
lege or all colleges.
 Create a view having field’s c-name, s-name, dept., doj and post.
 List the staff name of a department using above view.
 Create a view consisting of c-name, average salary and total salary of all staff in that college.
 Create the following database,
 Enrollment (enrol-no, name, gender, DOB, address, phone)
 Admission (adm-no, enrol-no, course, year-sem, date, c-name)
 Colleges (c-name, city, address, phone, afdate)
 Fee structure (course, year sem, fee)
 Payment (bill no, adm-no, amount, p date, purpose)
 Get Full detail of all students who took admission this year class wise.
 Get detail of student who took admission in Disha College
 Calculate the total amount of fees collected in this session by your college.
 List the student who have not paid full fee in your college.
 3 Create the following database, Subjects (paper-id, subject, paper, paper name) Test (pa-
per-id, date, time, max, min) Score (rollno, paperid, marks, attendance) Students (adm no,
roll no, class, year sem)
 List the students who were present in a paper of a subject.
 List the roll number who have passed in first division.
 List the highest score, average and minimum score in BCA – II
 Using the following database,:-
 Colleges (cname, city, address, phone, afdate).
 Staffs (sid, sname, saddress, contacts).
 Staffjoins (sid, cname, dept, DOJ, post, salary).
 Teachings (sid, class, paperid, fsession, tsession).
 Subjects (paperid, subject, paperno, papername).
 Find the classes that T1 do not teach at present session.
 SQL> select class from teachings where class <> (select class from teachings where Sid =102);
Output : - CLASS
BCA – 1
BSc – 1
BCA – 2
BSc – 2
BSc – 3
MCA -2
BCA – 2
BCom – 1
BCom – 2
 Create the following database:-
 Enrollment (enrol no, name, gender, DOB, address, phone)
 Admission (adm no, enrol no, course, year sem, date, c name)
 Colleges (c name, city, address, phone, afdate)
 Fee structure (course, year sem, fee), Payment (bill no, adm no, amount, pdate, purpose)
9|Page
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 Create the following database, Subjects (paper id, subject, paper, paper name) Test (paper
id, date, time, max, min) Score (roll no, paper id, marks, attendance) Students (adm no, roll
no, class, year sem).

HTML:-

 Design a web Page to Demonstrate Body Tag with its Attributes as follows:
 B g colour = cyan
 Text = blue
 Link = red
 A link = green
 V link = yellow
 Top margin = 50
 Left margin = 100
 Design a web Page to Demonstrate Heading Tag.
 Design a web page to Demonstrate text emphasis tag.
 Formatting elements were designed to display special types of text:
 <b> - Bold text
 <strong> - Important text
 <i> - Italic text
 <em> - Emphasized text
 <mark> - Marked text
 <small> - Smaller text
 <del> - Deleted text
 <ins> - Inserted text
 <sub> - Subscript text
 <sup> - Superscript text

 Design a web page to demonstrate hypertext anchor (internal Linking).


 Design a web page to demonstrate hypertext anchor (External Linking).
 Design a web page to demonstrate the paragraph <p> and pre <pre> tag.
 Design a web page to demonstrate order List tag.
 Design a web page to demonstrate UN orders List tag.
 Design a web page to demonstrate Address Tag.
 Design a web page to demonstrate <block quote> tag.
 Design a web page to Demonstrate table tag.
 Design a web page to demonstrate Form tag.
 Design a web page to demonstrate image tag.
 Design a web page to demonstrate frame tag.

10 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Python

11 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 1
Aim; - Write a program that reads an integer value and prints leap year or not a leap
year.

year=int(input(“Enter year:”))
if (year%4==0) and (year%1==0):
print (year, “is leap year.”)
else:
print(year, “is not a leap year.”)

Coding; -

Output: -

12 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 2
Aim: -Write a program that takes a positive integer a and then produces n line of
output shown as follows:
Coding: -
a=int(input(“Enter the number of lines(n):”))
if a<0:
print(“please enter a positive integer for ‘a’”)
else:
for i in range(1,a+1):
result=a*i
print(result)

a = int(input(“Enter the number of rows: ”))


for i in range(1, a+1):
for j in range(1, i + 1):
print(j, end= ‘ ‘)
print(“ ”)

13 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output: -

14 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 3
Aim: -Write a program to create the following pattern
For example, enter a size: 5
*
**
***
****
*****
Coding: -
p = int(input(“Enter number of rows: ”))
for I in range(p):
for j in range(i+1):
print(“ * ”, end= “ ”)
print(“\n”)

Output: -

15 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 4
Aim: -Write a function that takes an integer n as input and calculate the value of
1+1/1! + 1/2! + 1/n!
Coding: -
def factorial(n):
res=1
for i in range(2, n+1):
res*=i
return res
def sum(n):
s=0.0
for i in range(1, n+1):
s+=1.0/factorial(i)
print(s)
n=5
sum(n)

Output: -

16 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 5
Aim: - Write a function that takes an integer input and calculates the factorial of that
number.
Coding: -
def factorial(n):
if n<0:
return “please Enter Positive Number.”
elif n==0:
return 1
else:
r=1
for i in range(1, n+1):
r*=i
return r
n= int(input(“Enter any Positive Number:”))
r=factorial(n)
print(“The factorial of” ,n, “is: ”,r)

Output: -

17 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 6
Aim: - Write a function that takes a string input and checks if it is a palindrome or not.
Coding: -
def ispalindrome(str):
if (str ==str[::-1]):
return “The string is a plalindrome.”
else:
return “The string is not a palindrome.”
str=input(“Enter the string:”)
print(ispalindrome(str))

Output: -

18 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 7
Aim: - Write a list function to convert a string into a list, as in list (-abc) gives [a,b,c].
Coding: -
def convert(str):
char = [char for char in str]
return char
str = “-abc”
result = convert(str1)
print(result)

Output: -

19 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 8
Aim: - Write a program to generate Fibonacci series.
Coding: -
x = int(input (“Enter the number till you want to print:”))
print(“Fibonacci series is:”)
a=0
b=1
for i in range(0,x):
print(a)
c = a+b
a=b
b=c

Output: -

20 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 9
Aim: -Write a program to check whether the input number is even or odd.
Coding: -
a = int(input(“Enter any number:”))
if a<0:
print(“please enter number greater than 0!!”)
else:
if a>0 and a%2==0:
print(“Given number is Even.”)
else:
print(“Given number is Odd.”)

Output: -

21 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 10
Aim: - Write a program to compare three numbers and print the largest one.
Coding: -
a=int(input(“Enter First number:”))
b=int(input(“Enter Second number:”))
c=int(input(“Enter Third Number:”))
if (a>b) and (a>c):
print(a, “is the largest of three numbers.”)
if (b>a) and (b>c):
print(b, “is the largest of three numbers.”)
else:
print(c, “is the largest of three numbers.”)

Output: -

22 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 11
Aim: - Write a program to print factors of a given number.
Coding: -
num = int(input(“Enter the Number:”))
num = int(num)
print(“\nfactors of”,num, ‘are:’)
i=1
while I <num:
if num%i==0:
print(i)
i=i+1

Output:-

23 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Project 12
Aim: - Write a method to calculate GCD of two numbers.
Coding: -
import math
a=int(input(“Enter 1st number:”))
b=int(input(“Enter 2nd number:”))
print(“The GDC of” ,a, ‘and’ ,b, “is:” , end= “ ”)
print(math.gdc(a,b))

Output: -

24 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 13
Aim: - Write a program to create Queue class and implement all its methods (use
lists).
Coding: -
q=[]
q.append(10)
q.append(100)
q.append(1000)
q.append(10000)
print(“Initial queue is: ” , q)
print(q.pop(0))
print(q.pop(0))
print(q.pop(0))
print(“After removing elements: ” ,q)

Output: -

25 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 14
Aim: - Write a program to create Stack class and implement all its methods (use lists).
Coding: -
class Stack:
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, data):
self.items,append(data)
def pop(self):
return self.items.pop()
s = stack()
while True:
print(‘push<value>’)
print(‘pop’)
print(‘quite’)
do = input(‘what would you like to do?’).split()
operation = do[0].strip().lower()
if operation == ‘push’:
s. push = (int(d0[0]))
elif operation == ‘pop’:
if s.is_empty():
print(‘Stack is empty.’)
else:
print(‘popped value: ’ , s.pop())
elif operation == ‘quit’:
break

26 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output: -

27 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 15
Aim: - Write a program to implement linear and binary search on lists.
Coding: -
def linearSearch(array,n,k):
for j in range(0, n):
if (array[j]==k):
return j
return -1
array=[2,4,6,8,10,12,15]
k=12
n=len(array)
result=linearSearch(array,n,k)
if (result==-1):
print(“Element is not found.”)
else:
print(“Element found at index:”, result)

Output:-

28 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

def binarySearch(array, x, low, high):


while low < high:
mid = low + (high – low)//2
if array[mid] == x:
return mid
elif array[mid] < x:
low = mid + 1
else:
high = mid -1
return -1
array = [31, 43, 15, 96, 37, 68, 79]
x = 96
result = binarySearch(array, x, 0, len(array)-1)
if result = -1:
print(“Element is present at index ” + str(result))
else:
print(“Not found”)

Output:-

29 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Program 16
Aim: -Write a program to sort a list using insertion sort, bubble sort and selection
sort.
Coding: -
def bubbleSort(lst):
for I in range(len(lst)):
for j in range(0, len(lst)-i-1):
if lst[j]>lst[j+1]:
lst[j], lst[j=1]= lst[j+1], lst[j]
if __name__== “__main__”:
lst=[34,25,13,56,12,7,45,89]
bubbleSort(lst)
print(“Sorted List is:”, lst)

Output: -

30 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

def insertionSort(arr):
if(n:=len(arr))<1:
return
for i in range(1, n):
key=arr[i]
j=i-1
while j>0 and key<arr[j]:
arr[j+1]=arr[j]
j-=1
arr[j+1]=key
arr=[56,35,12,39,23,78,69,43,65,7]
insertionSort(arr)
print(“Sorted list is: ”)
print(arr)

Output: -

31 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

def selectionSort(array, size):


for ind in range(size):
mid_index= ind
for j in range(ind+1, size):
if array[j]<array[min_index]:
min_index=j
(array[ind],array[mid_index])= (array[min_index], array[ind])
arr= [34,12,8,-43,21,-1,0,90,45,-100,3,99,-33]
size=len(arr)
selectionSort(arr,size)
print(“The array after sorting in Ascending order by selection sort is: ”)
print(arr)

Output: -

32 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

SQL (DBMS)

33 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. (1) Create table college (chname varchar2 (15) primary key,


City varchar2 (10), address varchar2 (20), phone no number (10), afdate date);
DATE: 03/04/24
SQL> desc college;

34 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. (2) Create table staffs (s-id number (3) primary key, s-name varchar2 (15), s-
address varchar2 (20), contacts number (10));
DATE: 06/04/24

Q. (3) Create table staff joins (s-id number (3) references staffs (s-id), c-name
varchar2 (15) references college (chname),
Dept. varchar2 (10), doj date, post varchar (10), salary number (7, 2));
DATE: 8/04/24

35 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

36 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. (4) Create table subjects (paper-id number (5) primary key, subject varchar (10),
paper-no number (5), t-session number (5));
DATE: 13/8/2012

Q. (5) Create table teachings (s-id number (3) references staffs (s-id),class varchar
(8), paper-id number (5) references subjects (paper-id),f-session number (5), t-ses-
sion number (5));
DATE: 13/8/2012
37 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. A create the above tables with the given specification and constraints.
DATE: 12/04/24
Q. B inserts about 10 rows as are appropriate to solve the following queries.
12/04/24
Q. C lists the names of the teacher’s teachings computer subjects.
12/04/24
38 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. D lists the names and cities of all staff working in your college.
15/04/24
Q.E lists the name and cities of all staff working in your college who earn more than
15000.
15/04/24
Q. F find the staffs whose name start with ‘M’ or ’R’ and ends with ‘A’ and/or 7
characters long.
15/04/24
Q.G. finds the staffs whose date of joining is 2005
18/04/24
Q.H modify the database so that staff N1 now works in c2
18/04/24
Q.I list the names of subjects, which t1 teaches in this session or all sessions.
18/4/24
Q.J find the classes that t1 do not teach at present session.
18/04/24
Q. C lists the names of the teachers teachings computer subjects.

Q. D lists the names and cities of all staff working in your college.

39 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q.E lists the name and cities of all staff working in your college who earn more
15000.

Q. F finds the staffs whose name start with ‘M’ or ‘R’ and ends with ‘A’ and/or 7
characters long.

Q.G. finds the staffs whose date of joining is 2010

40 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q.H modify the database so that staff N1 now works in c2 college.

Q.I lists the names of subjects, which t1 teaches in this session or all sessions.

Q.J find the classes that t1 do not teach at present session.

41 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

(6) USE ABOVE TABLE AND SOLVE FOLLOWING QUERES


Q.A1 finds the colleges who have most number of staffs.
22/08/2012
B1 find the staffs that earn higher salary who earn greater then avg salary of their
college.
22/08/2012
C1 find the colleges whose average salary is more than average salary of c2.
23/08/2012
D1 find the college that has the smallest payroll.
Q.J E find the colleges where the total salary is greater than the average salary of all
collges.
25/08/2012
F1 list maximum, average, minimum salary of each college.
25/08/2012
Q. F.A 2 list the names of the teachers, departments teaching in more than one de-
partment.
25/08/2012
Q. B2 acquire details of staffs by name in a college or each college.
27/08/2012
Q. C2 find the names of staff that earn more than each staff of c2 college.
29/08/2012
Q D2 give all principals a 10% rise in salary unless their salary becomes greater than
20000 in such case give 5% rise.
30/08/2012
E2 find all staffs that do not work in same cities as the colleges they work.
31/08/2012
Q F2 list name of employees in ascending order according to salary who are working
in your college or all colleges.
01/09/2012
Q.A2 creates a view having fields’s-name, c-name, dept., doj and post.
42 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

01/09/2012
Q B2 create a view consisting of c-name, average salary and total salary of all staff
in that college.
03/09/2012
Q. C2 finds the names of staff that earn more than each staff of C2 College.
29/08/2012
Q D2 give all principals a 10% rise in salary unless their salary becomes greater than
20000 in such case give 5% rise.
30/08/2012
E2 find all staffs that do not work in same cities as the colleges they work.
31/08/2012
Q F2 list name of employees in ascending order according to salary who are working
in your college or all colleges.
01/09/2012
Q.A2 creates a view having fields’s-name, c-name, dept., doj and post.
01/09/2012
Q B2 create a view consisting of c-name, average salary and total salary of all staff
in that college.
Q C2 selects the colleges having highest and lowest average salary using above
views.
03/09/2012
QD2 list the staff name of a department using above view.
04/09/2012
Q.1 Using the following database:-
Colleges (c-name, city, address, phone, afdate).
Staffs (s-id, s-name, s-address, contacts).
Staffjoins (s-id, c-name, dept, DOJ, post, salary).
Teachings (s-id, class, paperid, fsession, tsession).
Subjects (paper-id, subject, paper-no, paper-name).
10/09/2012
List the name of the teachers teaching computer subjects.
10/09/2012
List the names and cities of all staffs working in your college
10/09/2012
 List the name and cities of all staffs working in your college who earn more than
15000.
Find the staffs whose name start with ‘M’ or ‘R’ and ends with ‘A’ and/or 5 charac-
ters
11/09/2012
 Find the staffs where date of joining is 2005.
Modify the database show that staff N1 now works in C2 colleges
12/09/2012
43 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 List the name of subjects, which T1 teaches in this session or all sessions.
 Find the classes that T1 do not teach at present session.
 Find the colleges who have most number of staffs.
Find the staffs that earn a higher salary who earn greater than average salary of
their college.
13/09/2012
List maximum, average, minimum salary of each college
 Acquire details of staffs by name in a college or each college.
 List names of employees in ascending order according to salary who are working
in your college or all colleges.
 Create a view having fields c-name, s-name, dept., doj and post.
 List the staff name of a department using above view.
 Create a view consisting of c-name, average salary and total salary of all staff in
that college.
Q.2 Create the following database,
Enrollment (enrol-no, name, gender, DOB, address, phone)
Admission (adm-no, enrol-no, course, year-sem, date, c-name)
Colleges (c-name, city, address, phone, afdate)
Fee structure (course, year sem, fee)
Payment (bill no, adm-no, amount, p date, purpose)
15/09/2012
Get Full detail of all students who took admission this year class wise.
15/09/2012
Get detail of student who took admission in Disha College
17/09/2012
 Calculate the total amount of fees collected in this session by your college.
 List the student who have not paid full fee in your college.
Q.3 Create the following database, Subjects (paper-id, subject, paper, paper name)
Test (paper-id, date, time, max, min) Score (rollno, paperid, marks, attendance) Stu-
dents (adm no, roll no, class, year sem)
26/09/2012
 List the students who were present in a paper of a subject.
03/10/2012
 List the roll number who have passed in first division.
04/10/2012
 List the highest score, average and minimum score in BCA – II
09/10/2012

Q.A1 finds the colleges who have most number of staffs.


22/08/2012

44 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. B1 find the staffs that earn higher salary who earn greater then avg salary of
their college.
22/08/2012

Q. C1 find the colleges whose average salary is more than average salary of c2.
23/08/2012

Q. D1 fined the college that has the smallest payroll.


23/08/2012
45 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q. E1 find the colleges where the total salary is greater than the average salary of
all colleges.
25/08/2012

Q. F1 list maximum, average, minimum salary of each college.


25/08/2012

Q. F.A 2 list the names of the teachers, departments teaching in more than one
department.

46 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

25/08/2012

Q. C2 find the names of staff that earn more than each staff of c2 college.
29/08/2012

Q. B2 acquire details of staffs by name in a college or each college.

47 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

27/08/2012

Q D2 give all principals a 10% rise in salary unless their salary becomes greater than
20000 in such case give 5% rise.
30/08/2012

E2 find all staffs that do not work in same cities as the colleges they work.
31/08/2012

48 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q F2 list name of employees in ascending order according to salary who are working
in your college or all colleges.
01/09/2012

Q.A2 create a view having fields sname, cname, dept, doj and post.
01/09/2012

Q B2 create a view consisting of cname,average salary and total salary of all staff in
that college.
03/09/2012
49 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

SQL> select min(average),max(average) from stuv1;


MIN(AVERAGE) MAX(AVERAGE)
------------ ------------
13200 13200
Q C2 selects the colleges having highest and lowest average salary using above
views.
03/09/2012
SQL> select cname, min(average), max(average) from stuv group by cname;
CNAME MIN(AVERAGE) MAX(AVERAGE)
--------------- ------------ ------------
SAI 13200 13200
QD2 list the staff name of a department using above view.

Q.4 Using the following database,:-


Colleges (cname, city, address, phone, afdate).
Staffs (sid, sname, saddress, contacts).
Staffjoins (sid, cname, dept, DOJ, post, salary).
Teachings (sid, class, paperid, fsession, tsession).
Subjects (paperid, subject, paperno, papername).
Write SQL statements for the followings: -
Create the above tables with the given specifications an constraints.
(i) Colleges : -
SQL> create table colleges (cname varchar2(20) primary key, city varchar2(20),
address varchar2(20), phone number(11), afdate date);
(ii) Staffs : -

SQL> create table staffs (sid number(5) primary key, sname varchar2(10), saddress
varchar2(20), contacts number(10));
(iii) Staffjoins : -

SQL> create table staffjoins (sid number(5) references staffs(sid), cname varchar2(20)
references colleges(cname), dept varchar2(20),doj date, post varchar2(20), salary
number(10));

50 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

(iv) Subjects : -

SQL>create table subjects (paperid number(10) primary key, subject varchar2(20),


paperno varchar2(20), papername varchar2(20));
(v) Teachings : -

SQL> create table teachings (sid number(5) references staffs(sid), class varchar2(10),
paperid number(10) references subjects(paperid), fsession date, tsession date);
Insert above 10 rows as are appropriate to solve the following queries.

(i) Colleges : -
SQL> insert into colleges values (‘&cname’,’&city’,’&address’,’&phone’,’&afdate’);

(ii) Staffs : -
SQL> insert into staffs values(‘&sid’,’&sname’,’&saddress’,’&contacts’);

(iii) Staffjoins : -
SQL> insert into staffjoins values (‘&sid’,’&cname’,’&dept’,’&doj’,’&post’,’&salary’);

(iv) Subjects : -
SQL>insert into subjects value (‘&paperid’,’&sujects’,’&paperno’,’&papername’);

(v) Teachings : -
SQL> insert into teachings values (‘&sid’,’&class’,’&paperid’,’&fsession’,’&tsession’);
The Tables are : -

(i) Colleges : -

51 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

52 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

(ii) Staffs:

(iv) Staffjoins : -

(vi) Teachings: -

53 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 List the name of the teachers teaching computer subjects.

List the names and cities of all staffs working in your college

List the name and cities of all staffs working in your college who earn more than
15000.

Find the staffs whose name start with ‘M’ or ‘R’ and ends with ‘A’ and/or 5 char-
acters.

54 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Find the staffs where date of joining is 2010.

Modify the database show that staff N1 now works in C2 college.

List the name of subjects, which T1 teaches in this session or all sessions.

55 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Q.1 Find the classes that T1 do not teach at present session.


SQL> select class from teachings where class <> (select class from teachings where Sid
=102);
Output : - CLASS
BCA – 1
BSc – 1
BCA – 2
BSc – 2
BSc – 3
MCA -2
BCA – 2
BCom – 1
BCom – 2
Find the colleges who have most number of staffs.

Find the staffs that earn a higher salary who earn greater than average salary of
their college.
SQL> select staffs. S-name from staffs, staff joins where staff joins. C-name = ‘Disha
College’ and staffs. Sid = staff joins. Sid and salary>(select avg (salary) from staff joins
where staff joins. C-name = ‘Disha College’);
Output : - SNAME
Madhu

List maximum, average, minimum salary of each college.


SQL> select cname, max(salary), AVG(salary), MIN(salary) from staff joins group by c-
name;
Output: -

56 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 Acquire details of staffs by name in a college or each college.


Output:- 

 List names of employees in ascending order according to salary who are


working in your college or all colleges.

57 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Create a view having fields cname, sname, dept, doj and post.
SQL> create view detail as select staffjoins. Cname, staffs. Sname, staffjoins. Dept,
staffjoins. Doj, staffjoins.post from staffjoins, staffs where staffjoins. Sid = staffs.sid;
List the staff name of a department using above view.

 Create a view consisting of cname, average salary and total salary of all staff
in that college.

Q.2 Create the following database:-


Enrollment (enrollno, name, gender, DOB, address, phone)
Admission (admno, enrollno, course, yearsem, date, cname)
Colleges (cname, city, address, phone, afdate)
Feestructure (course, yearsem, fee)
58 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Payment (billno, admno, amount, pdate, purpose)


Write SQL statements for the followings: -
 Create the above tables with the given specifications and constraint.

(i) Enrollment : -

SQL>create table enrollments (enrollno number(10) primary key, name varchar2(20),


gender varchar2(20), dob date, address varchar2(20), phoneno number(10));
(ii) Admission : -

SQL>create table admission (admno varchar2(20) primary key, enrollno number (10),
course_yearsem varchar2(20), date1 date, cname varchar2(20));
(iii) Colleges : -

SQL> create table colleges (cname varchar2(20) primary key, city varchar2(20),
address varchar2(20), phoneno number(10), afdate date);
(iv) Feestructure : -

SQL> create table feestructure (course_yearsem varchar2(20) primary key, fee


number(10));
(v) Payment : -
SQL> create table payment (billno number(10) primary key, admno varchar2(20),
amount number(10), pdate date, purpose varchar2(20));
 Insert about 10 rows as are appropriate to solve the following queries.
(i) Enrollmnet : -
SQL> insert into enrollments
values(‘&enrollno’,’&name’,’&gender’,’&dob’,’&address’,’&phone’);
(ii) Admission : -
SQL>insert into admission values
(‘&admno’,’&enrollno’,’&course_yearsem’,’&date1’,’&cname’);
(iii) Colleges : -
SQL> insert into colleges values (‘&cname’,’&city’,’&address’,’&phone’,’&afdate’);
(iv) Feestructure : -
SQL> insert into feestructure values (‘&course_yearsem’,’&fee’);
(v) Payment : -
SQL>insert into payment values(‘&billno’,’&admno’,’&amount’,’&pdate’,’&purpose’);
 The Tables are : -
(i) Enrollment: -

59 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

(ii) Admission: -

60 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

(iii) Colleges : -

(iv) Fee structure: -

(v) Payment: -

61 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 Get Full detail of all students who took admission this year class wise.
SQL>select adm no, c name, name, gender, dob, address, phone, date1, course year
sem from admission, enrol nowhere date = 2011 and admission enrol no = enrol no
order by course;
 Get detail of student who took admission in Disha College.

Calculate the total amount of fees collected in this session by your college.
SQL>select sum(feestructure) from feestructure, admission where feestructure.
Course_yearsem = admission. Course_yearsem and admission. Cname = ‘sai’ and
date1 between ’01-jan-85’ and ’31-dec-015’;
Output : - SUM(FEESTRUCTURE.FEES)
5000
 List the student who have not paid full fee in your college.
SQL>select enrollments.name from enrollments, admission, payment where enroll-
ments. Enrollment = admission.enrollment and admission. Admno = payment.admno
and payment. Amount < 15000;
Output : - NAME
Akshat

62 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Aakash
Atish
Annu
Q.3 Create the following database, Subjects (paperid, subject, paper, papername)
Test (paperid, date, time, max, min) Score (rollno, paperid, marks, attendence) Stu-
dents (admno, rollno, class, yearsem)
Write SQL statements for the followings: -
Create the above tables with the given specifications and constraints.

(i) Subjects : -

SQL>create table subjects (paperid varchar2(10) primary key, subject varchar2(10),


paper number(5), papername varchar2(15));
(ii) Test : -

SQL>create table test (paerid varchar2(10) primary key, date1 date, time
varchar2(10), max number(10), min number(10));
(iii) Score : -

SQL>create table score (rollno number(5) primary key,paperid varchar2(10), marks


number(10), attendance varchar2(10));
(iv) Students : -

SQL>create table students (admno varchar2(5) primary key, rollno number(5), class
varchar2(10), yearsem number(5));
Insert about 10 rows as are appropriate to solve the following constraints.

(i) Subject : -

SQL>insert into subject values (‘&paperid’,’&subject’,’&paper’,’&papername’);


(ii) Test : -

SQL>insert into test values (‘&paperid’,’&date’,’&time’,’&max’,’&min’);


(iii) Score : -

SQL>insert into score values(‘&rollno’,’&paperid’,’&marks’,’&attendence’);


(iv) Students : -

SQL>insert into students values (‘&admno’,’&rollno’,’&class’,’&yearsem’);


The Tables are : -
(i) Subjects : -

63 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

(ii) Test : -

(iii) Score : -

List the students who were present in a paper of a subject.

64 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

List the rollnumber who have passed in first division.

65 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

HTML (HYPER TEXT MARKUP LANGUAGE)

66 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Assignment 1: Design a web Page to Demonstrate Body Tag with its Attributes as
follows:
1. Bgcolor = cyan
2. Text = blue
3. Link = red
4. alink = green
5. vlink = yellow
6. topmargin = 50
7. leftmargin = 100

Output:-

code :-
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Indira Gandhi Govt P G college">
<meta name="keywords" content="HTML">
<meta name="author" content="Suresh kumar Thakur">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Assignment 1
</title>
</head>
<body background="cyan" link="red" vlink="green" alink="yellow" leftmargin="100"
topmargin="50" text ="blue">
<h1>
67 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

This is just a demonstration page


</h1>
<h2>
This is just a demonstration page
</h2>
<h3>
This is just a demonstration page

</h3>
<h4>
This is just a demonstration page
</h4>
<h5>
This is just a demonstration page
</h5>
<h6>
This is just a demonstration page
</h6>
<hr>
</body>
</html>

68 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Assignment 2: Design a web Page to Demonstrate Heading Tag


Output:-

Code:-
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Indira Gandhi Govt P G college">
<meta name="keywords" content="HTML">
<meta name="author" content="Suresh kumar Thakur">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Assignment 2
</title>
</head>
<body background="cyan">
<h1>
This is just a demonstration page
</h1>
<h2>
This is just a demonstration page
</h2>
<h3>
69 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

This is just a demonstration page


</h3>
<h4>
This is just a demonstration page
</h4>
<h5>
This is just a demonstration page
</h5>
<h6>
This is just a demonstration page
</h6>
<hr>
</body>
</html>

Assignment 3: Design a web page to Demonstrate text emphasis tag


Formatting elements were designed to display special types of text:
70 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

 <b> - Bold text


 <strong> - Important text
 <i> - Italic text
 <em> - Emphasized text
 <mark> - Marked text
 <small> - Smaller text
 <del> - Deleted text
 <ins> - Inserted text
 <sub> - Subscript text
 <sup> - Superscript text
Output:-

Code:-
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Indira Gandhi Govt P G college">
<meta name="keywords" content="HTML">
<meta name="author" content="Suresh kumar Thakur">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Assignment 3
</title>
</head>
<bg color="magenta">
<b>
This is just a demonstration for bold letter
</b>
71 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

<hr>
<strong>
This is just a demonstration for strong letter
</strong>
<hr>
<i>
This is just a demonstration for italic letter
</i>
<hr>
<em>
This is just a demonstration for emphasis letter
</em>
<hr>
<mark>
This is just a demonstration for marked letter
</mark>
<hr>
<small>
This is just a demonstration for small letter
</small>
<hr>
<del>
This is just a demonstration for deleted letter
</del>
<hr>
<ins>
This is just a demonstration for inserted letter
</ins>
<sub>
This is just a demonstration for subscripted letter
</sub>
<hr>
<sup>
This is just a demonstration for superscripted letter
</sup>
<hr>
</body>
</html>

Assignment 4: Design a web page to demonstrate hypertext anchor (internal


Linking).
72 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:-

Code:-
<!DOCTYPE html>
<html>
<head>
<title>Assignment 4</title></head>
<body link="red" vlink="green" alink="yellow">
<a href="#lession1">Lession.1</a><br />
<a href="#lession2">Lession.2</a><br />
<a href="#lession3">Lession.3</a><br />
<a href="#lession4">Lession.4</a><br />
<br />
<font color="blue">
<a id="lession1">Introduction of Lession.1</a>
<p>This is sub topic.1</p>
<p>This is sub topic.2</p>
<p>This is sub topic.3</p>
<p>This is sub topic.4</p>
<br /></font>
<br />
<font color="green">
<div id="lession2">Introduction of Lession.2</div>

73 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

<p>This is sub topic.1</p>


<p>This is sub topic.2</p>
<p>This is sub topic.3</p>
<p>This is sub topic.4</p>
<br />
</font>
<br />
<font color="cyan">
<p id="lession3">Introduction of Lession.3</p>
<p>This is sub topic.1</p>

<p>This is sub topic.2</p>


<p>This is sub topic.3</p>
<p>This is sub topic.4</p>
<br />
</font>
<br />
<font color="orange">
<article id="lession4">Introduction of Lession.4</article>
<p>This is sub topic.1</p>
<p>This is sub topic.2</p>
<p>This is sub topic.3</p>
<p>This is sub topic.4</p>
</font>
</body>
</html>

Assignment 5: Design a web page to demonstrate hypertext anchor (External Link-


ing).
Output:

74 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Code:-
<!DOCTYPE html>
<html>
<head>
<title>Assignment 5</title></head>
<body link ="Red" alink="green" vlink="blue">
<font size=" 10">
Link for <a href="D:\bsc 2nd\body tag.html">Assignment 1</a><br><br>
Link for <a href="D:\bsc 2nd\assignment 2.html">Assignment 2</a><br><br>
Link for <a href="D:\bsc 2nd\assignment 3.html">Assignment 3</a><br><br>
Link for <a href="D:\bsc 2nd\assignment 4.html">Assignment 4</a><br><br>
</font>
</body>
</html>

Assignment 6: Design a web page to demonstrate the paragraph <p> and pre <pre>
tag
Output:-

75 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 6</title></head>
<body link ="Red" alink="green" vlink="blue">
<font size ="10"color="green">
<pre>
Text in a pre-element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>
</font>
<hr>
<hr>
<font size ="10"color="Red">
<p>
This paragraph
contains a lot of lines
in the source code,

76 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

but the browser


ignores it.
</p>
</font>
</body>
</html>

Assignment 7: Design a web page to demonstrate order List tag.

77 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:-

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 7</title></head>
<body leftmargin="50">
<font size ="10"color="green">
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<font size ="10"color="red">
<ol type="A">
<li>Pizza</li>
<li>Burger</li>
<li>Chips</li>
</ol>
</font>
</body> </html>
Assignment 8: Design a web page to demonstrate un order List tag.

78 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 8</title></head>
<body leftmargin="50">
<font size ="10"color="cyan">
<ul type="Square">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<font size ="10"color="purple">
<ul type="circle">
<li>Pizza</li>
<li>Burger</li>
<li>Chips</li>
</ul>
</font>
</body> </html>
Assignment 9: Design a web page to demonstrate Address Tag

79 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 9</title></head>
<body leftmargin="50">
<font size ="5"color="blue">
<address>
Visit us at:<br>
Indira Gandhi Govt P G College, <br>
vaishali Nagar, Bhilai<br>
District - Durg<Br>
State Chhattisgarh
</address>
</font>
</body>
</html>

Assignment 10: Design a web page to demonstrate <blockquote> tag


80 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 10</title></head>
<body leftmargin="50">
<font size ="5"color="blue">
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation or-
ganization, WWF works in 100 countries and is supported by 1.2 million members in the United
States and close to 5 million globally.
</blockquote>
</font>
</body>
</html>

Assignment 11: Design a web page to Demonstrate table tag

81 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 11</title></head>
<body leftmargin="50">
<font size ="5"color="blue">
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$200</td>
</tr>
<tr>
<td>March</td>

82 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

<td>$100</td>
</tr>
</table>
<br><br><br>
<table border="2">
<caption> my table</caption>
<tr>
<th>Name</th>
<th>Email</th>
<th colspan="2">Phone</th>

</tr>
<tr>
<td>John Doe</td>
<td>john.doe@example.com</td>
<td>123-45-678</td>
<td>212-00-546</td>
</tr>
</table>
</font>
</body>
</html>

Assignment 12: Design a web page to demonstrate Form tag


83 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:-
<!DOCTYPE html>
<html>
<head>
<title>Assignment 12</title></head>
<body leftmargin="50">
<font size ="5"color="blue">
<h3> Personal Information</h3>
<form action="/action_page.php" method="get">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<h4> Gender</h4>
<input type="radio" id="male" name="Gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="Female" name="Gender" value="Female" checked="checked">
<label for="Female">Female</label><br>
<input type="radio" id="Transgender" name="Gender" value="Transgender">
<label for="transgender">Transgender</label><br><br>
<h4> Hobbies</h4>
<input type="checkbox" name="hobby1" value="Cricket">
<label for="hobby1"> I like cricket</label><br>
<input type="checkbox" name="hobby2" value="Singing">
<label for="hobby2"> I like Singing</label><br>
<input type="checkbox" name="hobby3" value="Dancing" checked>
<label for="hobby3"> I like dancing</label><br><br>
<input type="submit" value="Submit">
</form></font>
</body> </html>
Assignment 13: Design a web page to demonstrate image tag
84 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:
<!DOCTYPE html>
<html>
<head>
<title>Assignment 10</title></head>
<body leftmargin="50">
<font size ="5"color="blue">
<img src="D:\bsc 2nd\123.jpg" alt="image not display" width="200" height="150"
align="top"><br><br>
<img src="D:\bsc 2nd\124.jpg" alt="image not display" width="300" height="150" align="bot-
tom"><br>
<img src="D:\bsc 2nd\125.jpg" alt="image not display" width="400" height="150"
align="Right"><br>
<img src="D:\bsc 2nd\image1.jpg" alt="image not display" width="500" height="150"
align="Left">
</font>
</body>
</html>

Assignment 14: Design a web page to demonstrate frame tag


85 | P a g e
ARCHANA MOURYA
PGDCA 2nd SEM 2023-24

Output:

Code:-
<html>
<head>
<title>HTML Frames</title>
</head>
<frameset rows = "25%,50%,25%">
<frame name = "top" src = "D:\bsc 2nd\assignment 7.html" />
<frame name = "main" src = "D:\bsc 2nd\assignment 8.html" />
<frame name = "bottom" src = "D:\bsc 2nd\assignment 9.html"/>
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>

86 | P a g e
ARCHANA MOURYA

You might also like