-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
376 lines (334 loc) · 10.8 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link id="style" rel="stylesheet" href="css/style.css" />
</head>
<body class="bg-[#010409] max-w-2xl md:max-w-3xl lg:max-w-4xl mx-auto px-2 sm:px-8 text-slate-100 text-xs md:text-base font-serif">
<!-- header -->
<header class="mt-20 relative text-3xl md:text-5xl font-extrabold text-center">
<div aria-readonly="true" class="blur-md absolute left-0 right-0 opacity-50 select-none pointer-events-none flex flex-col gap-y-4 md:gap-y-6">
<span class="inline-block">Assingment 8</span>
<span class="text-yellow-300 inline-block">PS - JS</span>
</div>
<h1 class="flex flex-col gap-y-2 md:gap-y-4">
<span class="inline-block">Assingment 8</span>
<span class="text-yellow-300 inline-block">PS - JS</span>
</h1>
</header>
<main>
<div>
<!-- question number 1 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that allow to user enter number then print it:
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example :</h3>
<div class="px-4">
<p>Input : 5</p>
<p class="text-green-400">Output : 5</p>
</div>
</div>
</div>
<!-- end question number 1 -->
<!-- question number 2 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that take number from user then print yes if that number can divide by 3
and 4 otherwise print no:
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 12</p>
<p class="text-green-400">Output : Yes</p>
</div>
</div>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 2 :</h3>
<div class="px-4">
<p>Input : 9</p>
<p class="text-green-400">Output : No</p>
</div>
</div>
</div>
<!-- end question number 2 -->
<!-- question number 3 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that allows the user to insert 2 integers then print the max:
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 3, 5</p>
<p class="text-green-400">Output : 5</p>
</div>
</div>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 2 :</h3>
<div class="px-4">
<p>Input : 10, 7</p>
<p class="text-green-400">Output : 10</p>
</div>
</div>
</div>
<!-- end question number 3 -->
<!-- question number 4 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that allows the user to insert an integer then print negative if it is
negative number otherwise print positive:
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : -5</p>
<p class="text-green-400">Output : negative</p>
</div>
</div>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 2 :</h3>
<div class="px-4">
<p>Input : 10</p>
<p class="text-green-400">Output : positive</p>
</div>
</div>
</div>
<!-- end question number 4 -->
<!-- question number 5 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that take 3 integers from user then print the max element
and the min element.
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 7, 8, 5</p>
<p class="text-green-400">Outputs : max element = 8, min element = 5</p>
</div>
</div>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 2 :</h3>
<div class="px-4">
<p>Input : 3, 6, 9</p>
<p class="text-green-400">Outputs : Max element = 9, Min element = 3</p>
</div>
</div>
</div>
<!-- end question number 5 -->
<!-- question number 6 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that allows the user to insert integer number then
check If a number is oven or odd
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 8</p>
<p class="text-green-400">Outputs : even</p>
</div>
</div>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 2 :</h3>
<div class="px-4">
<p>Input : 7</p>
<p class="text-green-400">Outputs : odd</p>
</div>
</div>
</div>
<!-- end question number 6 -->
<!-- question number 7 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that take character from user then if it is vowel chars (a,e,I,o,u)
then print vowel otherwise print consonant
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : O</p>
<p class="text-green-400">Outputs : vowel</p>
</div>
</div>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 2 :</h3>
<div class="px-4">
<p>Input : b</p>
<p class="text-green-400">Outputs : Consonant</p>
</div>
</div>
</div>
<!-- end question number 7 -->
<!-- question number 8 -->
<div x-question>
<h2 class="md:font-bold">
Write aprogram that allows user to insert integer then print all numbers between 1 to
that’s number
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 5</p>
<p class="text-green-400">Outputs : 1, 2, 3, 4, 5</p>
</div>
</div>
</div>
<!-- end question number 8 -->
<!-- question number 9 -->
<div x-question>
<h2 class="md:font-bold">
Write a program that allows userto insert integerthen print a multiplication table up to 12.
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 5</p>
<p class="text-green-400">Outputs : 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60</p>
</div>
</div>
</div>
<!-- end question number 9 -->
<!-- question number 10 -->
<div x-question>
<h2 class="md:font-bold">
Write aprogram that allows to user to insert number then print all even numbers
between 1 to this number
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 15</p>
<p class="text-green-400">Outputs : 2, 4, 6, 8, 10, 12, 14</p>
</div>
</div>
</div>
<!-- end question number 10 -->
<!-- question number 11 -->
<div x-question>
<h2 class="md:font-bold">
Write aprogram that take two integers then print the power
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : 4^3</p>
<p class="text-green-400">Outputs : Hint how to calculate 4^3 = 4 * 4 * 4 = 64</p>
</div>
</div>
</div>
<!-- end question number 11 -->
<!-- question number 12 -->
<div x-question>
<h2 class="md:font-bold">
Write a program to enter marks of five subjects and calculate total, average and
percentage.
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : Enter Marks of five subjects: 95, 76, 58, 90, 89</p>
<p class="text-green-400">Outputs : Total marks = 435, Average Marks =87, Percentage =87</p>
</div>
</div>
</div>
<!-- end question number 12 -->
<!-- question number 13 -->
<div x-question>
<h2 class="md:font-bold">
Write a program to input month number and print number of days in that month.
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : Month Number: 1</p>
<p class="text-green-400">Outputs : Days in Month: 31</p>
</div>
</div>
</div>
<!-- end question number 13 -->
<!-- question number 14 -->
<div x-question>
<h2 class="md:font-bold">
Write a program to input marks of five subjects
Physics, Chemistry, Biology, Mathematics and Computer
, Find percentage and grade
</h2>
<div class="text-xs md:text-sm mt-2">
<h3 class="text-red-400">Example 1 :</h3>
<div class="px-4">
<p>Input : Month Number: 1</p>
<p class="text-green-400">Outputs : <br>
Percentage >= 90%: Grad A <br>
Percentage >= 80%: Grad B <br>
Percentage >= 70%: Grad C <br>
Percentage >= 60%: Grad D <br>
Percentage >= 40%: Grad E <br>
Percentage less than 40%: Grad F
</p>
</div>
</div>
</div>
<!-- end question number 14 -->
<!-- question number 15 -->
<div x-question>
<h2 class="md:font-bold">
Using switch case To Write a program to print total number of days in month
</h2>
</div>
<!-- end question number 15 -->
<!-- question number 16 -->
<div x-question>
<h2 class="md:font-bold">
Using switch case To Write a program to check whether an alphabet is vowel or consonant
</h2>
</div>
<!-- end question number 16 -->
<!-- question number 17 -->
<div x-question>
<h2 class="md:font-bold">
Using switch case To Write a program to find maximum between two numbers
</h2>
</div>
<!-- end question number 17 -->
<!-- question number 18 -->
<div x-question>
<h2 class="md:font-bold">
Using switch case To Write a program to check whether a number is even or odd
</h2>
</div>
<!-- end question number 18 -->
<!-- question number 19 -->
<div x-question>
<h2 class="md:font-bold">
Using switch case To Write a program to check whether a number is positive or negative or zero
</h2>
</div>
<!-- end question number 19 -->
<!-- question number 20 -->
<div x-question>
<h2 class="md:font-bold">
Using switch case To Write a program to create Simple Calculator.
</h2>
</div>
<!-- end question number 20 -->
</div>
</main>
<footer class="text-center text-slate-100 text-sm md:text-base py-20 px-5">
<p>
designed by <span class="text-yellow-600 font-extrabold">Islam Gohar</span><br>
<span class="text-xs text-yellow-200">Thanks to </span>
<br>Tailwind css, Alpine js, Vite js , Shik js <br>
</p>
</footer>
<script type="module" src="js/index.js"></script>
</body>
</html>