-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (107 loc) · 3.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Day 6</title>
<style>
.container {
width: 600px;
height: 600px;
overflow: auto;
margin: auto;
padding: 40px;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
border-radius: 5px;
}
.container h1 {
text-align: center;
}
.tasks {
display: flex;
justify-content: center;
}
ol > li {
margin: 10px auto;
}
li {
text-align: justify;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: lightgray;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>Day 6 Tasks</h1>
<hr />
<div class="tasks">
<ol>
<li>
The class Movie is stated below. An instance of class Movie
represents a film. This class has the following three properties:
<ul style="margin-top: 10px">
<li>
title, which is a String representing the title of the movie
</li>
<li>
studio, which is a String representing the studio that made the
movie
</li>
<li>
rating, which is a String representing the rating of the movie
(i.e. PG13, R, etc)
</li>
</ul>
<ol>
<li>
Write a constructor for the class Movie, which takes a String
representing the title of the movie, a String representing the
studio, and a String representing the rating as its arguments,
and sets the respective class properties to these values.
</li>
<li>
The constructor for the class Movie will set the class
property rating to "PG" as default when no rating is provided.
</li>
<li>
Write a method getPG, which takes an array of base type Movie
as its argument, and returns a new array of only those movies
in the input array with a rating of "PG". You may assume the
input array is full of Movie instances. The returned array
need not be full.
</li>
<li>
Write a piece of code that creates an instance of the class
Movie with the title “Casino Royale”, the studio “Eon
Productions”, and the rating “PG13”
</li>
</ol>
</li>
<li>
Circle - Class: Convert the UML diagram to Typescript class. - use
number for double
</li>
<li>
Write a “person” class to hold all the details
</li>
<li>
Write a class to calculate the Uber price
</li>
</ol>
</div>
<p style="text-align: center; font-weight: bold; font-size: 16px">
<i>Hint: See console for the outputs</i>
</p>
</div>
<script src="script.js"></script>
</body>
</html>