项目作者: adzo261

项目描述 :
Sales Tax problem solution using C++
高级语言: C++
项目地址: git://github.com/adzo261/sales-tax-problem.git
创建时间: 2019-05-15T17:45:38Z
项目社区:https://github.com/adzo261/sales-tax-problem

开源协议:

下载


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

  1. $ cd to the src folder
  2. $ g++ -o main main.cpp Item.cpp Tax.cpp
  3. $ ./main

Providing Input

Enter each item order on new line.
When orders are finished ,enter ‘stop’ to console on new line.