- Object Oriente dDesign
- Respect SOLID Principles
- Readability
- Maintainability
- Testability
- Create SPA website using any JavaScriptframework (e.g.Angular, ReactJs etc.)
- Main Page must have 4 components : input textbox, output textbox, button( send order) and grid
- The grid must keep history of inputs and outputs that user had requested before
- Website can(optional)have unit tests
- Pushyour solution in a GitHub repository, and send us a link when done
- Create this solution as a web APIapplication
- Solution musthave unit tests
- Pushyour solution in a GitHub repository, and send us a link when done
- You must enter time of day as “morning” or “night”
- You must enter a comma delimited list of dish types with at least one selection
- The output must print food in the following order: entrée, side, drink, dessert
- There is no dessert for morning meals
- Input is not case sensitive
- If invalid selection is encountered, display valid selections up to the error, then print error
- In the morning, you can order multiple cups of coffee
- At night, you can have multiple orders of potatoes
- Except for the above rules, you can only order 1 of each dish type
Dish Type | morning | night |
---|---|---|
1 (entrée) | eggs | steak |
2 (side) | Toast | potato |
3 (drink) | coffee | wine |
4 (dessert) | Not Applicable | cake |
Input: morning, 1, 2, 3 Output: eggs,toast, coffee
Input: morning, 2, 1, 3 Output: eggs, toast, coffee
Input: morning, 1, 2, 3, 4 Output: eggs, toast, coffee, error
Input: morning, 1, 2, 3, 3, 3 Output: eggs, toast, coffee(x3)
Input: night, 1, 2, 3, 4 Output: steak, potato, wine, cake
Input: night, 1, 2, 2, 4 Output steak, potato(x2), cake
Input: night, 1, 2, 3, 5 Output: steak, potato, wine, error
Input: night, 1, 1, 2, 3, 5 Output: steak, error