Posts

WT lab

WEB TECHNOLOGIES LAB JOURNAL 1.Create an XHTML page that provides information about your department. Your XHTML page must use the following tags: a) Text Formatting tags b) Horizontal rule c) Meta element d) Links e) Images f) Tables (Use of additional tags encouraged).--! <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head>  <meta charset="UTF-8" />  <meta name="description" content="Information about the MCA Department" />  <title>Department Information</title> </head> <body>  <h1 style="text-align: center; color: navy;">Welcome to the MCA Department</h1>  <hr />  <p><strong>About Us:</strong> The <em>MCA Department</em> is dedicated to providing quality education and fostering innovation. Our programs are designed to develop skills and knowledge required to excel in various engin...

DBMS LAB

create table Branch1(Branchid int primary key, Bname varchar(10), HOD varchar(10)); Table created. SQL> create table Student1(USN varchar(10)primary key, Name varchar(10), Address varchar(15), Branchid int references Branch1(Branchid),Sem int); Table created. SQL> create table Author1(Authorid int primary key, Aname varchar(10),Country varchar(15), Age int); Table created. SQL> create table Book1(Bookid varchar(10)primary key, Bname varchar(10),Authorid int references Author1(Authorid),Publisher varchar(10),Branchid int references Branch1(Branchid)); Table created. SQL> create table Borrow1(USN varchar(10) references Student1(USN),Bookid varchar(10) references Book1(Bookid),Borrowed_date date); Table created. SQL> insert into Branch1 values(1,'MCA','Shankar G'); 1 row created. SQL> insert into Branch1 values(2,'MBA','Veeresh'); SQL> insert into Branch1 values(3,'CSE','Nirmala'); 1 row created. SQ...

A2 python

Program1: check whether the number is belongs to Fibonacci series or not PART A n=int(input("Enter the number: ")) c=0 a=1 b=1 if n==0 or n==1: print("Yes the number belongs to Fibonacci series") else:  while c<n:  c=a+b  b=a  a=c  if c==n:  print("Yes,the number belongs to Fibonacci series")  else: print("No, the number not belongs to Fibonacci series") ==========OUTPUT========= Enter the number: 5 Yes the number belongs to fibonacci series Enter the number: 4 No the number not belongs to fibonacci series SNJPSNMS Trust’s Degree College,Nidasoshi Python Programming Lab Program 2: Solve Quadratic Equations #import complex math module import cmath print("Enter the value of a") a=float(input()) print("Enter the value of b") b=float(input()) print("Enter the value of c") c=float(input()) #calculate the discriminant d=(b**2)-(4*a*c) #find the solution soln1=(-b-cmath.sqrt(d))/(2*a) soln2=(-b+cmath.sqrt(d))/(2*a) #prin...