In this application, the user can specify the number of loaves of bread and the number of pastries to order, then see the total cost for the order. Discounts apply for 3-packs of bread and 3-packs of pastries. After placing the initial order, the user can add more items to the order if they wish, as many times as they want, and see the updated cost with each addition.
Spec | Input | Output |
---|---|---|
Charges $5 for 1 loaf of bread and $2 for 1 pastry | 1 loaf of bread, 1 pastry | $5 + $2 = $10 total |
Charges $10 for 3 loaves of bread and $5 for 3 pastries | 6 loaves of bread, 4 pastries | $20 + $7 = $27 total |
Allows adding additional loaves of bread or pastries to existing order | Add 2 more pastries to above order | $20 + $10 = $30 total |
- Clone this repository:
$ git clone https://github.com/schoinh/bakery.git
- Run the application
$ dotnet run
- No known bugs at this time.
- C# / .NET
Please contact Na Hyung with questions and comments.
GNU GPLv3
Copyright (c) 2019 Na Hyung Choi