Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct cost {
- double alcTax, food, genMerch, meds;
- cost() : alcTax(0.0){}, food(0.0){}, genMerch(0.0){}, meds(0.0){};// Total taxes collected for each tax bracket
- double totalTax;
- cost() : totalTax(alcTax + food + genMerch + meds);// Total Taxes to be accessed later
- // Variables used in the accessor functions at the bottom
- double costBeforeTax, costAfterTax, custSaving, totRegPrice, totSalePrice;
- cost() : costBeforeTax(0.0){}, costAfterTax(0.0){}, custSaving(0.0){}, totRegPrice(0.0){}, totSalePrice(0.0){};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement