Lucians Lucious Lasagna Error

Am I doing something wrong?What is this error ?

Could you please share your code and the error as text in a codeblock? It’s a lot easier to work with text and makes it possible to reproduce your issue.

 // TODO: define the 'ExpectedMinutesInOven()' method
    public int ExpectedMinutesInOven(){
        return 40;
    }

    // TODO: define the 'RemainingMinutesInOven()' method
    public int RemainingMintuesInOven(int min){
        return ExpectedMinutesInOven() - min ;
    }

    // TODO: define the 'PreparationTimeInMinutes()' method
    public int PreparationTimeInMinutes(int layers){
        return layers *2; 
    }
    // TODO: define the 'ElapsedTimeInMinutes()' method
    public int ElaspedTimeInMinutes(int layers, int timeSpan){
        return PreparationTimeInMinutes(layers) + timeSpan;
    }

The error is saying it can’t find something named RemainingMinutesInOven in your code. Is that in fact defined?

1 Like

I wrote the methods needed. It looks like the errors are coming from the test scripts. Wondering if anyone else has had this error too?

Could you share your code that includes the function RemainingMinutesInOven?

class Lasagna
{
    // TODO: define the 'ExpectedMinutesInOven()' method
    public int ExpectedMinutesInOven(){
        return 40;
    }

    // TODO: define the 'RemainingMinutesInOven()' method
    public int RemainingMintuesInOven(int min){
        return ExpectedMinutesInOven() - min ;
    }

    // TODO: define the 'PreparationTimeInMinutes()' method
    public int PreparationTimeInMinutes(int layers){
        return layers *2; 
    }
    // TODO: define the 'ElapsedTimeInMinutes()' method
    public int ElaspedTimeInMinutes(int layers, int timeSpan){
        return PreparationTimeInMinutes(layers) + timeSpan;
    }
}


You might want to do a search in that code for RemainingMinutesInOven to make sure it’s there :wink:

1 Like

It’s a nasty position to be in, but the answer is there.

1 Like

Your code says “RemainingMin(tues)InOven” instead of “RemainingMinutesInOven” Your elapsed time in minute also wrong. You wrote “Ela(sped)TimeInMinutes” instead of “ElapsedTimeInMinutes”