- Table of Contents
- Description
- Technologies Used
- Setup and Installation Requirements
- Specifications
- Known Bugs
- Contributing
- License
- Acknowledgements
- Contact Information
A basic console application for the first week of the Epicodus C# and .NET program. When the program is run, the user receives a welcome message, a menu with prices, and a prompt to begin their order with a bread quantity input. Next, the user receives a subtotal and a prompt to add a pastry quantity. The user then receives a grand total, a thank you message, and some ASCII art!
- C#
- MSTest
- .NET 5.0
- Confirm you have installed .NET installed - this will provide access to the C# language
- Additionally, you may want to install a REPL to allow you to practice, test, and experiment with C#. Below are instructions for the
dotnet script
REPL:- Install
dotnet script
by running the following terminal command:$ dotnet tool install -g dotnet-script
- NOTE: If you just installed .NET 5, restart the terminal. (Otherwise, you will not be able to run the following command.)
- Enter
$ dotnet script
in your terminal and a prompt will open:>
- To exit the REPL press: Ctrl +C
- Enter
- Install
- Clone the repository with the following git terminal command:
$ git clone https://github.com/chloeloveall/PierresBakery.Solution.git
- Open the project directory in your terminal
- Navigate to the
PierresBakery.Tests
directory- To create
obj
directories in both production and test projects, run the terminal command:$ dotnet restore
- NOTE: Do not touch the code in either
obj
directory.
- To create
- To launch the program, run the terminal command:
dotnet run
- Navigate to the
PierresBakery.Tests
directory - Run the terminal command:
$ dotnet test
- If everything is set up correctly, you will see something similar to this:
Behavior | Input | Output |
---|---|---|
User will receive a welcome message when they run the program | user runs the program | Welcome to Pierre's Bakery! |
User will receive a message with the cost of Bread | user runs the program | Bread: Buy 2, get 1 free. A single loaf costs $5. |
User will receive a message with the cost of Pastry | user runs the program | Pastry: Buy 1 for $2 or 3 for $5. |
User receives an order prompt for Bread | user runs the program | How many loaves of bread would you like? |
Program will add cost of bread to order price total | 1 | $5 |
User receives an order prompt for Pastry | user bread order input | How many pastries would you like to add to your order? |
Program will add pastries to order price total | 1 | $2 |
Program will start order over if invalid input is received | Q | "This is not a valid input! Now you have to start over!" / Program starts again from Main() |
- None at this time
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the project on GirHub
- Follow Installation/Setup Instructions above
- Create your Feature Branch:
$ git checkout -b YourFeatureBranchName
- Commit your Changes
$ git commit -m 'Add some Amazing Feature'
- Push to your feature branch on Github
$ git push origin YourFeatureBranchName
- Open a Pull Request
Chloe Loveall chloeloveall@protonmail.com