-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME2.html
More file actions
34 lines (23 loc) · 1.38 KB
/
README2.html
File metadata and controls
34 lines (23 loc) · 1.38 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
<h2>Description</h2>
<p>Now let's consider a case where you need a lot of coffee. Maybe, for example, you’re hosting a party with a lot of guests. The program should calculate how much water, coffee, and milk are necessary to make the specified amount of coffee. One cup of coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 g of coffee beans.</p>
<p>The user should input the amount of coffee he needs, in cups, for all the guests.</p>
<p>Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn’t actually make any coffee.</p>
<h2>Instruction</h2>
<p>Write a program that calculates the amount of ingredients needed to make a certain amount of coffee.</p>
<h2>Examples</h2>
<p>The example below shows how your output might look.<br>
The symbol <code class="java">></code> represents the user input. Notice that it's not the part of the input.</p>
<p><strong>Example 1</strong></p>
<pre><code class="language-no-highlight">Write how many cups of coffee you will need:
> 25
For 25 cups of coffee you will need:
5000 ml of water
1250 ml of milk
375 g of coffee beans</code></pre>
<p><strong>Example 2 </strong></p>
<pre><code class="language-no-highlight">Write how many cups of coffee you will need:
> 125
For 125 cups of coffee you will need:
25000 ml of water
6250 ml of milk
1875 g of coffee beans</code></pre>