Solve csharp/exercises/lucians-luscious-lasagna

This commit is contained in:
Daniel Siepmann 2024-03-26 07:28:20 +01:00
parent 317ee5d2fd
commit fc27e7631b
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -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;
}
} }