You are on page 1of 15

WEB TECHNOLOGY LAB FILE

SUB CODE: KCS 602

Submitted to Submitted By

Class: 3rd year (D)


CSIT
Roll no.
DESIGN AND ANALYSIS OF ALGORITHM
LAB FILE
SUB CODE: KCS 553

Submitted to Submitted By
Dr.Sonia Rani Mayank Bora

Class: 3rd year (D) CSIT


Roll no:15204
University Roll no :
2002300110021
Computer Science and Information Technology
Web Technology Lab

S.No Experiments Name Date


1. Write a program in Java to print Fibonacci Series 12/09/22

Write a program to create a Registration form for College


2. 26/09/2022
Students .
Write a program to create a web page to show your resume
3. 10/10/2022

Write a program in Java to make an Application program i.e.


4. calculator.
10/10/2022
1. Write a program in Java to print Fibonacci Series
class GFG {

// Function to print N Fibonacci Number

static void Fibonacci(int N)

int num1 = 0, num2 = 1;

int counter = 0;

// Iterate till counter is N

while (counter < N) {

// Print the number

System.out.print(num1 + " ");

// Swap

int num3 = num2 + num1;

num1 = num2;

num2 = num3;

counter = counter + 1;

// Driver Code

public static void main(String args[])

// Given Number N
3. Write a program to create a web page to show your resume.
HTML CODE

<html lang="en">

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="style.css">

</head>

<body>

<div class="full">

<div class="left">

<div class="Contact">

<h2>Contact</h2>

<p><b>Email id:</b>mayankbora0002@gmail.com</p>

<p><b>Mobile no :</b>7042424567</p>

</div>

<div class="Skills">

<h2>Skills</h2>

<ul>

<li><b>Programming Languages :

Python,C, C++</b></li>

<li><b>Frontend : HTML5, CSS3,

JavaScript</b></li>

</ul>

</div>

<div class="Language">
<h2>Language</h2>

<ul>

<li>English</li>

<li>Hindi</li>

</ul>

</div>

<div class="Hobbies">

<h2>Hobbies</h2>

<ul>

<li>Playing cricket</li>

<li>Reading</li>

<li>Listening Music</li>

</ul>

</div>

</div>

<div class="right">

<div class="name">

<h1>Mayank Bora</h1>

</div>

<div class="title">

<p>Web Developer</p>

</div>

<div class="Summary">

<h2>Summary</h2>

4. Write a program to create a web page to show your resume.

<p>To secure a challenging position in a

reputable organization
to expand my learning knowledge and skill

</p>

</div>

<div class="Education">

<h2>Education</h2>

<table>

<tr>

<th>College</th>

<th>Percentage</th>

</tr>

<tr>

<td>Dronacharya Group Of Institution </td>

</tr>

<tr>

<td>First Year</td>

<td>84%</td>

</tr>

<tr>

<td>Second Year</td>

<td>80%</td>

</tr>

<tr>

<td>Third Year</td>

<td>Ongoing</td>

</tr>

<tr>

<td>Fourth Year</td>
<td>___</td>

</tr>

<tr>

<th>School</th>

<th>Percentage</th>

</tr>

<tr>

<td>Kalka Public School</td>

</tr>

<tr>

<td>HighSchool</td>

<td>82%</td>

</tr>

<tr>

<td>Intermidiate</td>

<td>79%</td>

</tr>

</table>

</div>

<div class="project">

<ul>

<li>

<h2>Project1</h2>

<p>College Networking Management </p>

<p>This project is based on Cisco Networking

</p>

</li>
<li>

<h2>Project2</h2>

<p>Online Code Editor (React)</p>

</li>

</ul>

</div>

</div>

</div>

</body>

</html>

CSS CODE
*{

margin: 0;

padding: 0;

box-sizing: border-box;

body {

background-color: rgb(253, 254, 255);

display: flex;

justify-content: center;

align-items: center;

.full {

width: 50%;

max-width: 1000px;

min-height: 100px;

background-color: rgb(245, 239, 231);


margin: 0px;

display: grid;

grid-template-columns: 2fr 4fr;

.left {

position: initial;

background-color: rgb(126, 219, 231);

padding: 20px;

.right {

position: initial;

background-color: rgb(162, 202, 206);

padding: 20px;

.image, .Contact, .Skills, .Language, .Hobbies, .title,

.Summary, .Experience, .Education, .project {

margin-bottom: 30px;

.h2 {

background-color: rgb(4, 96, 150);

}
4. Write a program in Java to make an application program i.e calculator
import java.io.*;

import java.lang.*;

import java.lang.Math;

import java.util.Scanner;

public class BasicCalculator {

public static void main(String[] args)

// stores two numbers

double num1, num2;

// Take input from the user

Scanner sc = new Scanner(System.in);

System.out.println("Enter the numbers");

// take the inputs

num1 = sc.nextDouble();

num2 = sc.nextDouble();

System.out.println("Enter the operator (+,-,*,/)");

char op = sc.next().charAt(0);

double o = 0;

switch (op) {

// case to add two numbers

case '+':
o = num1 + num2;

break;

// case to subtract two numbers

case '-':

o = num1 - num2;

break;

// case to multiply two numbers

case '*':

o = num1 * num2;

break;

// case to divide two numbers

case '/':

o = num1 / num2;

break;

default:

System.out.println("You enter wrong input");

break;

System.out.println("The final result:");

System.out.println();

// print the final result

System.out.println(num1 + " " + op + " " + num2

+ " = " + o);


}

Output
Enter the numbers:

Enter the operator (+,-,*,/)

The final result:

2.0 + 2.0 = 4.0

You might also like