Pierre's Bakery

By Erich Richter

Description

This is a console application built using C#. It will create a Price List for a Bakery.

Specifications

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"

Setup/Installation Requirements

  1. Open in your editor of choice, or use Visual Studio Code

  2. To test the code, navigate to the PierreBakery.Tests directory, and in the terminal type dotnet restore then dotnet test.

  3. In the terminal, navigate to the PierreBakery directory, and type dotnet run.

Known Bugs

There are no known bugs at this time.

Support and Contact Details

If there are any issues or questions, please contact me at erich.richter@gmail.com .

Technologies Used

  • Visual Studio Code
  • Markdown
  • C#

License

This project uses the following license: MIT

Copyright (c) 2020 Erich Richter