Create a C# console application for a bakery.
-
There should be two classes: one for
Bread
and one forPastry
. -
When the user runs the application, they should receive a prompt with a welcome message along with the cost for both
Bread
andPastry
. -
A user should be able to specify how many loaves of
Bread
and how manyPastry
s they'd like. -
The application will return the total cost of the order.
-
The bakery offers a special deal:
Bread
: Buy 2, get 1 free.Pastry
: Buy 2, get 1 half price.
Bread Menu | Price | Pastry Menu | Price |
---|---|---|---|
Whole-Wheat Bread | $5 | Croissant | $5 |
Sourdough Bread | $7 | Pain au Chocolat | $7 |
Baguette | $9 | Mixed Berry Danish | $9 |
Spec | Input | Output |
---|---|---|
$5 for 1 bread and $2 for 1 pastry | 1 bread and 1 pastries | $10 total ($5 + $2) |
$10 for 3 breads and $5 for 3 pastries | 3 breads, 3 pastries | $15 total ($10 + $5) |
Enter besides number | "Hello" | "Please enter a number." |
- Clone this repo:
$ git clone https://github.com/misakimichy/pierre-bakery.git
- Go into the repo and run this application:
$ dotnet run
- No known bugs at this time.
Please contact misaki.koonce@gmail.com with questions and feedbacks.
C#
Copyright © 2019 under the MIT License