This is a console application built using C#. It will create a Price List for a Bakery.
Behavior: Program will display to user a welcome message and the cost of Bread and Pastry.
- Welcome To Pierr's Bakery!
- Bread: Buy 2, get 1 free. A single loaf costs $5.
- Pastry: Buy 1 for $2 or 3 for $5.
Behavior: Program will allow user to specify how many loaves of Bread they'd like.
- Input: "1 loaf of Bread"
- Output: "$5"
Behavior: Program will allow user to specify how many Pastries they'd like.
- Input: "1 loaf of Bread"
- Output: "$5"
Behavior: Program will allow user to specify how many loaves of Bread they'd like and provide a discount if over two loaves of bread are selected.
- Input: "3 loaves of Bread"
- Output: "$10"
Behavior: Program will allow user to specify how many Pastries they'd like and provide a discount if over three Pastries are selected.
- Input: "3 pastries"
- Output: "$5"
-
Open in your editor of choice, or use Visual Studio Code
-
To test the code, navigate to the PierreBakery.Tests directory, and in the terminal type
dotnet restore
thendotnet test
. -
In the terminal, navigate to the PierreBakery directory, and type
dotnet run
.
There are no known bugs at this time.
If there are any issues or questions, please contact me at erich.richter@gmail.com .
- Visual Studio Code
- Markdown
- C#
This project uses the following license: MIT
Copyright (c) 2020 Erich Richter