https://github.com/adzo261/sales-tax-problem
Sales Tax problem solution using C++
https://github.com/adzo261/sales-tax-problem
cpp oops-in-cpp sales-tax-problem-solution
Last synced: 10 months ago
JSON representation
Sales Tax problem solution using C++
- Host: GitHub
- URL: https://github.com/adzo261/sales-tax-problem
- Owner: adzo261
- Created: 2019-05-15T17:45:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-16T11:04:37.000Z (about 7 years ago)
- Last Synced: 2025-01-28T23:10:02.935Z (over 1 year ago)
- Topics: cpp, oops-in-cpp, sales-tax-problem-solution
- Language: C++
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sales Tax Problem solution using C++
#### Structure
- `main.cpp` contains main entrypoint driver code and deals with input and output.
- `Item.cpp` contains implementations of funtions declared in `Item` class in `Item.hpp` header file.
- `ItemCategory.hpp` header contains `enum class` to store item categories.
- `Tax.cpp` contains implementations of funtions declared in `Tax` class in `Tax.hpp` header file.
#### Running
```sh
$ cd to the src folder
$ g++ -o main main.cpp Item.cpp Tax.cpp
$ ./main
```
#### Providing Input
Enter each item order on new line.
When orders are finished ,enter 'stop' to console on new line.