Skip to content

A bakery program that a user can decide how pieces of loaves/pastry they want.

Notifications You must be signed in to change notification settings

rediarisa/PierresBakery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bienvenue à la Boulangerie Pierre (Welcome to Pierre's Bakery)

By Alex Dominguez

Description:

A bakery program that a user can decide how pieces of loaves/pastry they want. Program also in Spanish and French soon! Conditions: Bread: Buy 2, get 1 free (every 3rd loaf of bread is free.). A single loaf costs $5, two loaves costs $10, and three loaves cost $10. Pastry: Buy 1 for $2 or 3 for $5. Four pastries costs $7, five pastries costs $9, and six pastries costs $10.

Technologies Used :

  • NuGet Package Manager
  • .Net 5
  • REPL

Setup/Installation Requirements :

  • Clone github repo: https://github.com/dominguezsantal/PierresBakery.git
  • Navigate the directory: (cd top name directory)
  • Open in Vs code: code .
  • Navigate to the ProjectName.Tests within the terminal: cd Bakery.Tests
  • Run: dotnet restore
  • The line above will create your obj directories.

Tests:

Test Number Failed/Passed Details
1a Failed on purpose Test for the cost of 1 loaf of bread. The loaf price was changed to $11, but it's supposed to be 5
1b Passed Test restored to $5
2a Failed Test for the cost of 3 loaf of bread. The loaf price was changed to $25, but it's supposed to be 10
2b Passed Test restored to $10
3a Failed Test for the cost of 5 loaf of bread. The loaf price was changed to $200, but it's supposed to be 20
3b Passed Test restored to 20
4a Failed Test for the cost of 1 pastry. I made the pastry free for 1 pastry, but for the first pastry it's supposed to be $2-only free for the third pastry if they buy 2 pastries!
4b Passed Test restored to $2
5a Failed Test 5a Fail: make 3 pastries for $100 instad of $5.Quite pricy for an error!
5b Passed Test restored to $5
6a Failed pastry logic by adding regQuant in order for succesful fail
6b Passed Pastry test Restored to updatedQuant
7a Passed Return Menu or X works

License :

MIT © 2021 Alex Dominguez

About

A bakery program that a user can decide how pieces of loaves/pastry they want.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages