-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (36 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Day 6 Task</title>
</head>
<body>
<script src="script.js"></script>
<p><h1>Outputs are in Console</h1></p>
<p><h1>Task 1 --> An instance of class Movie represents a film.</h1>
<h2>Conditions</h2>
<h4>
a) Write a constructor for the class Movie, <br>
which takes a String representing the title of the movie,
a String representing the studio, and a String representing <br>
the rating as its arguments, and sets the
respective class properties to these values. <br><br>
b) The constructor for the class Movie will set
the class property rating to "PG" as default when no rating is provided. <br><br>
c) Write a method getPG, which takes an array of
base type Movie as its argument, <br>and returns a
new array of only those movies in the input array
with a rating of "PG". <br> You may assume the input
array is full of Movie instances. The returned array need not be full. <br><br>
d) Write a piece of code that creates an instance of the
class Movie with <br>the title “Casino Royale”,
the studio “Eon Productions”, and the rating “PG13” </h4></p>
<p>
<h1>Task 2 --> Cricle Class</h1>
<img src="ClassDiagram_Circle.png" >
</p>
<p><h1>Task 3 --> Write a “person” class to hold all the details.</h1></p>
<p><h1>Task 4 --> write a class to calculate the Uber price.</h1></p>
</body>
</html>