Solve csharp/exercises/lucians-luscious-lasagna
This commit is contained in:
parent
317ee5d2fd
commit
fc27e7631b
|
@ -1,10 +1,22 @@
|
||||||
class Lasagna
|
class Lasagna
|
||||||
{
|
{
|
||||||
// TODO: define the 'ExpectedMinutesInOven()' method
|
public int ExpectedMinutesInOven()
|
||||||
|
{
|
||||||
|
return 40;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: define the 'RemainingMinutesInOven()' method
|
public int RemainingMinutesInOven(int ActualMinutes)
|
||||||
|
{
|
||||||
|
return this.ExpectedMinutesInOven() - ActualMinutes;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: define the 'PreparationTimeInMinutes()' method
|
public int PreparationTimeInMinutes(int NumberOfLayers)
|
||||||
|
{
|
||||||
|
return NumberOfLayers * 2;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: define the 'ElapsedTimeInMinutes()' method
|
public int ElapsedTimeInMinutes(int NumberOfLayers, int OvenTime)
|
||||||
|
{
|
||||||
|
return this.PreparationTimeInMinutes(NumberOfLayers) + OvenTime;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue