-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
12 lines (12 loc) · 961 Bytes
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
<h2>Mountain high</h2>
<html>
<head></head>
<body>
<p>Objects of the class <code class="java">Mountain</code> have an attribute <code class="java">height</code> defined in its constructor. The value is initially given in <strong>meters</strong>.</p>
<p>Create a method <code class="java">convert_height</code> that converts the height of the mountain from meters to feet according to the formula <span class="math-tex">\(Foot = Meter / 0.3048\)</span> and then returns the calculated value. This method doesn't take any attributes except for <code class="java">self</code>.</p>
</body>
</html><br><br><font color="gray">Memory limit: 256 MB</font><br><font color="gray">Time limit: 15 seconds</font><br><br>
<b>Caution</b><br><br>
You may see errors in your code or execution results due to missing context. Don’t worry about it, just write the solution and press Check.
<br><br>
<a href="https://hyperskill.org/learn/step/6931">Show topic summary</a>