I wrote a program. It should calculate the VAT and the net cost of the bills.
Anyone can tell me how can I calculate the net and the VAT and to store its value in each data member?
You have two options:
* call bill1.setVAT() and bill1.setNET() before you call the bill1.get*
* calculate the VAT and net in the methods that modify the amountPaid
The latter makes more sense, because it keeps the Bill consistent.