Skip to content

Wrote some code to help cook an exquisite lasagna. Four tasks related to the time spent cooking the lasagna.

Notifications You must be signed in to change notification settings

Sai42021/CookingLasagna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CookingLasagna

Wrote some code to help cook an exquisite lasagna. Four tasks related to the time spent cooking the lasagna.

Requirements

Instructions Lucians girlfriend is on her way home, and he hasn't cooked their anniversary dinner! In this exercise, you're going to write some code to help Lucian cook an exquisite lasagna from his favorite cookbook. You have four tasks related to the time spent cooking the lasagna.

  1. Define the expected oven time in minutes Define the EXPECTED_MINUTES_IN_OVEN constant that represents how many minutes the lasgna should be in the oven. It must be exported. According to the cooking book, the expected oven time in minutes is 40.

  2. Calculating the remaining oven time in minutes Implement the remainingMinutesInOven function that takes the actual minutes the lasgna has been in the oven as a parameter and returns how many minutes the lasagna still has to remain in the oven, based on the expected oven time in minutes from the previous task.

  3. Calculate the preparation time in minutes Implement the preparationTimeInMinutes function that takes the number of layers you added to the lasagna as a parameter and returns how many minutes you spent preparing the lasagna, assuming each layer takes you 2 minutes to prepare.

  4. Calculate the total working time in minutes Implement the totalTimeInMinutes function that takes two parameters: the numberOfLayers parameter is the number of layers you added to the lasagna, and the actualMinutesInOven parameter is the number of minutes the lasagna has been in the oven. The function should return how many minutes in total you've worked on cooking the lasagna, which is the sum of the preparation time in minutes, and the time in minutes the lasagna has spent in the oven at the moment.

About

Wrote some code to help cook an exquisite lasagna. Four tasks related to the time spent cooking the lasagna.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages