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