-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLightCoffee.cs
More file actions
41 lines (38 loc) · 974 Bytes
/
LightCoffee.cs
File metadata and controls
41 lines (38 loc) · 974 Bytes
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
using System;
using CoffeeMachine;
using System.Threading;
namespace liCoff
{
public class LightCoffee : ICoffee
{
float price { get; set; }
public LightCoffee()
{
price = 0;
}
public LightCoffee(float price)
{
this.price = price;
}
public void addExpresso()
{
Console.Write("Brewing Light Expresso...");
for (int i = 1; i <= 10; i++)
{
Console.Write(i + "...");
Thread.Sleep(500);
}
Console.WriteLine("\nBrewing Successful Enjoy!");
}
public void addLatte()
{
Console.Write("Brewing Strong Latte...");
for (int i = 1; i <= 10; i++)
{
Console.Write(i + "...");
Thread.Sleep(500);
}
Console.WriteLine("\nBrewing Successful Enjoy!");
}
}
}