Completed Program.cs
This commit is contained in:
parent
1c36f1b03d
commit
2d94fe91ae
1 changed files with 39 additions and 1 deletions
|
|
@ -1,8 +1,46 @@
|
|||
using System.Text;
|
||||
using CoffeeVendingMachines;
|
||||
|
||||
// using CoffeeVendingMachines;
|
||||
|
||||
Console.OutputEncoding = Encoding.UTF8;
|
||||
|
||||
Console.WriteLine($"*** Coffee Slot Machine ***{Environment.NewLine}");
|
||||
|
||||
// TODO
|
||||
Run();
|
||||
|
||||
void Run()
|
||||
{
|
||||
CoffeeVendingMachine the_machine = new CoffeeVendingMachine("1st Floor");
|
||||
|
||||
//best way to insert coins :)
|
||||
the_machine.InsertCoin(CoinType.Cent05);
|
||||
the_machine.InsertCoin(CoinType.Cent05);
|
||||
|
||||
the_machine.InsertCoin(CoinType.Cent10);
|
||||
the_machine.InsertCoin(CoinType.Cent10);
|
||||
the_machine.InsertCoin(CoinType.Cent10);
|
||||
|
||||
the_machine.InsertCoin(CoinType.Cent20);
|
||||
the_machine.InsertCoin(CoinType.Cent20);
|
||||
the_machine.InsertCoin(CoinType.Cent20);
|
||||
the_machine.InsertCoin(CoinType.Cent20);
|
||||
the_machine.InsertCoin(CoinType.Cent20);
|
||||
|
||||
the_machine.InsertCoin(CoinType.Cent50);
|
||||
the_machine.InsertCoin(CoinType.Cent50);
|
||||
the_machine.InsertCoin(CoinType.Cent50);
|
||||
the_machine.InsertCoin(CoinType.Cent50);
|
||||
|
||||
the_machine.InsertCoin(CoinType.Euro01);
|
||||
the_machine.InsertCoin(CoinType.Euro01);
|
||||
the_machine.InsertCoin(CoinType.Euro01);
|
||||
|
||||
the_machine.InsertCoin(CoinType.Euro02);
|
||||
the_machine.InsertCoin(CoinType.Euro02);
|
||||
the_machine.InsertCoin(CoinType.Euro02);
|
||||
|
||||
the_machine.SelectProduct("Capuccino", out CoinDepot[]? change, out int? remainder);
|
||||
|
||||
Console.WriteLine(the_machine);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue