Question
Task-2: (Application Ingredient Management System Process) Assume you were hired by the head chef at a big restaurant (like Freemason Abbey, USA family restaurant, Eleven
Task-2: (Application Ingredient Management System Process)
Assume you were hired by the head chef at a big restaurant (like Freemason Abbey, USA family restaurant, Eleven Madison Park, Paramount, Shaya, etc.) to write a computer program to automate/expedite the ingredient management process. The chef needs to cook two similar dishes. These dishes use the same ingredients with slight differences to accommodate various dietary restrictions:
- Assume you have 3 tomatoes, a garlic, 2 onions, 1 butter bar, 2 lbs of ground beef and 2 lbs of beans.
- The first dish requires a half tomato, 3/4 of a garlic, 1/4 of an onion, 1/8 of a butter bar, 1/2 lbs of ground beef, 2/3 lbs of beans.
- The second dish requires 3/5 of a tomato, 1/5 of a garlic, 2/5 of an onion, 1/5 of butter bar, 7/10 lbs of ground beef, 9/10 lbs of beans.
The chef likes to keep the fridge stocked so you need to have a list of:
- The total amount of each ingredient that you will have left so the chef knows when to order more ingredients.
- Which of these two dishes is going to weigh more than the other (Disregard the weight of tomatoes, garlic, onions and butter) so the chef can change the prices accordingly.
In order to write this program, you can just copy and paste the formulas shown above to find the answers. Or you can create functions that will hold the formulas above and call those. However, the easiest way to do it would be to use the operators you overloaded for Task-1 in the fractionType module.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started