Part 1 & 2
This commit is contained in:
14
Buckets/Buckets.csproj
Normal file
14
Buckets/Buckets.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Buckets.Logic\Buckets.Logic.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
28
Buckets/Program.cs
Normal file
28
Buckets/Program.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using Buckets.Logic;
|
||||
|
||||
namespace Buckets
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Bucket bucket = new(50, 0);
|
||||
bucket.Fill(10);
|
||||
bucket.Empty();
|
||||
bucket.Fill(20);
|
||||
bucket.Empty(10);
|
||||
|
||||
OilBarrel oilbarrel = new(0);
|
||||
oilbarrel.Fill(10);
|
||||
oilbarrel.Empty();
|
||||
oilbarrel.Fill(20);
|
||||
oilbarrel.Empty(10);
|
||||
|
||||
Rainbarrel rainbarrel = new(100, 0);
|
||||
rainbarrel.Fill(10);
|
||||
rainbarrel.Empty();
|
||||
rainbarrel.Fill(20);
|
||||
rainbarrel.Empty(10);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user