-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (77 loc) · 3.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<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">
<title>16469 (Usama)</title>
<link rel="icon" href="resources/logo.png">
</head>
<body>
<h1 style="text-align: center;">Assignment-13 ┇ Week-13</h1> <br>
<h3>Question No. 01 – Convert Hours into Seconds</h3>
<form onsubmit="event.preventDefault()">
<label for="hours">Enter Hours:</label>
<input type="number" id="hours" required>
<h4 id="ans1"></h4>
<button onclick="hoursToSec();">Answer</button>
</form>
</br></br>
<h3>Question No. 02 – Takes Age and Return Age in Days</h3>
<form onsubmit="event.preventDefault()">
<label for="age">Enter Your Age in Years:</label>
<input type="number" id="age" required>
<h4 id="ans2"></h4>
<button onclick="calcAge();">Answer</button>
</form>
</br></br>
<h3>Question No. 03 – Takes a Number's Array and Return an Inverted Array</h3>
<form onsubmit="event.preventDefault()">
<label for="arr">Enter Comma Separated Number's Array:</label>
<input type="text" id="arr" size="20" placeholder="1, -2, 3, -4, 5, -6, 7" required>
<h4 id="ans3"></h4>
<button onclick="invertArray();">Answer</button>
</form>
</br></br>
<h3>Question No. 04 – Take Two Strings as Arguments and Return True or False depending upon both Strings have Equal Length or Not</h3>
<form onsubmit="event.preventDefault()">
<label for="str1">Enter String1:</label>
<input type="text" id="str1" size="15" required> <br>
<label for="str2">Enter String2:</label>
<input type="text" id="str2" size="15" required>
<h4 id="ans4"></h4>
<button onclick="comp2Str(str1, str2);">Answer</button>
</form>
</br></br>
<h3>Question No. 05 – Takes an Array included Integers and Strings. Convert Integers to Strings and Return new Array</h3>
<form onsubmit="event.preventDefault()">
<label for="arr2">Enter an Array included Integers and Strings:</label>
<input type="text" id="arr2" size="20" placeholder='int1, "str2", int3, "str4"' required>
<h4 id="ans5"></h4>
<button onclick="parseArray();">Answer</button>
</form>
</br></br>
<h3>Question No. 06 – Leap Year or Not</h3>
<form onsubmit="event.preventDefault()">
<label for="year">Enter a Year:</label>
<input type="number" id="year" required>
<h4 id="ans6"></h4>
<button onclick="leapYear();">Answer</button>
</form>
</br></br>
<h3>Question No. 07 – Takes Daily Recovered Cases, New Cases and Active Cases. Find after How many Days, there will be Zero Cases.</h3>
<form onsubmit="event.preventDefault()">
<label for="id1">Enter the Number of Daily Recovered Cases:</label>
<input type="number" id="id1" required> <br>
<!--   creates a space 'Non-Breakable Space'. It is used here to justified all the three input fields -->
<label for="id2">Enter the Number of Daily New Cases:          </label>
<input type="number" id="id2" required> <br>
<label for="id3">Enter the Number of Current Active Cases:    </label>
<input type="number" id="id3" required>
<h4 id="ans7"></h4>
<button onclick="endCorona();">Answer</button>
</form>
</br></br></br>
<script src="script.js"></script>
</body>
</html>