This application will allow the user to order a number of either pastry items or bread. The application will return the total cost of the user's order to them in the console.
Spec | Input | Output |
---|---|---|
Create object constructor that will accept a UserInput | typeOf(BreadOrder) | |
Validate UserInput against criteria (no negative numbers) | -1 | false |
Create Method that returns order total for 1 loaf of bread | NumberLoaves: 1 | TotalBreadCost = 5 |
Create Method that returns order total for 2 loaf of bread | NumberLoaves: 2 | TotalBreadCost = 10 |
Create Method that adds 1 loaf for every two loaves purchased | NumberLoaves: 2 | TotalLoaves = 3 |
Create Method that adds OrderBread total and OrderPastry total together | OrderBreadTotal: 10, OrderPastryTotal: 5 | TotalCost = 15 |
-
This program utilizes .NET version 2.2, and is a required instal for this program to function. Ensure .NET version 2.2 is installed before progressing.
-
Recommended browser for everything in life. Google Chrome.
-
Github repository
-
Windows/Mac Users: If modifying for personal use, dl Git here (v2.62.2)
-
Download Visual Studio Code (v1.45)
-
Download ZIP here OR if you are comfortable cloning a repo, copy the link as shown below.
- this image shows you where to paste your copied link into VSCode
-
Once cloned, navigate to the {yourProgramName}.Tests file using $ cd {yourProgramName}.Tests and use $ dotnet restore to create bin and obj directories. Make sure to hide those files in your .gitignore.
-
Once the program has been built, navigate to your root directory using $ cd .. and type in command $ dotnet run
-
Step 1: create a .gitignore file in the top level of your project directory. populate the file as shown in step 1 of the image below.
-
Step 2: commit that .gitignore file (this prevents your sensitive information being shown to others). DO NOT PROCEED TO UNTIL YOU DO THIS!
-
Step 3: ignore step 3 for this project, as it does not utilize an API Key.
No Known Bugs, however business logic and UI logic not to completion 7/17/2020
Questions, comments and concerns can be directed to the author(s) Allison Sadin
Written in: Visual Studio Code
Image work: Adobe Photoshop
C#
.NET version 2.2
MSTest
Copyright (c) 2020 **Allison Sadin