-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem5.html
More file actions
68 lines (68 loc) · 2.01 KB
/
problem5.html
File metadata and controls
68 lines (68 loc) · 2.01 KB
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
<!DOCTYPE html>
<html>
<head>
<title> Problem 5 - SmartLAB Recruitment Drive </title>
</head>
<script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>
<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">
<p>Quasi is a primitive language spoken by the tribals of Egypt. Peculiar characteristic of Quasi is that, it lacks numerals. Therefore, if a sentence from English has to be translated to Quasi, all the numbers must be replaced by adjectives. The table below designates numerals with adjectives as per the language of Quasi.</p>
<br>
<table>
<tr>
<th>Number</th>
<th></th>
<th>Word</th>
</tr>
<tr>
<td>from 1 to 4</td>
<td></td>
<td>few</td>
</tr>
<tr>
<td>from 5 to 9</td>
<td></td>
<td>several</td>
</tr>
<tr>
<td>from 10 to 19</td>
<td></td>
<td>pack</td>
</tr>
<tr>
<td>from 20 to 49</td>
<td></td>
<td>lots</td>
</tr>
<tr>
<td>from 50 to 99</td>
<td></td>
<td>horde</td>
</tr>
<tr>
<td>from 100 to 249</td>
<td></td>
<td>throng</td>
</tr>
<tr>
<td>from 250 to 499</td>
<td></td>
<td>swarm</td>
</tr>
<tr>
<td>from 500 to 999</td>
<td></td>
<td>zounds</td>
</tr>
<tr>
<td>from 1000</td>
<td></td>
<td>legion</td>
</tr>
</table>
<p>Write an efficient program that prints the appropriate word, given a number(1<=N<=2000). You may use a language of your choice.</p>
<hr>
<p> This question carries 10 marks </p><br>
<a href="problem6.html">Next</a><br>
<a href="index.html">Home</a>
</body>
</html>