Web-Security Lab Assingment - 2: Name:-S.Tarun REG NO.: - 19BCI0119 Question

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

WEB-SECURITY

LAB ASSINGMENT – 2
NAME :- S.TARUN
REG NO. :- 19BCI0119

QUESTION :-
Given details of 'n' students, design UI and write the JavaScript to determine the average marks
scored by each student. The details of the student include name, register number, and five marks.
Write a function to determine the total marks scored by the student.Input FormatNumber of
studentsRegister number of student1Five marks of student1Use: Form validation
Output Format
[['Abirami', '1', (70, 67, 68, 72, 74), 351], ['Anand', '2', (56, 55, 70, 53, 45), 279], ['Bala', '3', (90,
86, 76, 87, 69), 408]]
SOLUTION : -
CODE :-
INDEX.HTML
STYLE.CSS
body{
text-align: center;
background-color: gray;
color: white;
line-height: 25px;
margin: 30px;
padding: 30px;
}
#btn{
margin: 20px;
border-radius: 8px;
border: none;
cursor: pointer;
}

MAIN.JS :-
OUTPUT :-
OUTUPT : -
[['19BCI0119', '1', (70, 67, 68, 72, 74), 351], ['19BCI0114', '2', (56, 55, 70, 53, 45), 279],
['19BCI0113', '3', (90, 86, 76, 87, 69), 408]]

QUESTION :-
Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking
yourweight in kilograms and dividing by the square of your height in meters. The interpretation
ofBMI for people 16 years or older is as follows:
SOLUTION :-
INDEX.HTML FILE.
STYLE.CSS
body{
text-align:center;
line-height: 35px;
margin: 50px;
padding: 20px;
}
#button{
border: none;
cursor: pointer;
border-radius: 10px;
background-color: gray;
color:white;
}
MAIN.JS:-
OUTPUT :-

After giving input of your weight in kgs and also the height in cms will calculate the bmi index of
the particular person.

You might also like