Design a class called Bill that has fields to store the list of items, their prices per unit, quantity of each item in the bill, and the grand total of the items. Create an overloaded add operator so that when you add two bills, you get a new bill with all the items in the two bills (there may be duplicates in the final bill) and a new grand total.
Would you have multiply and divide overloaded operators in this case? Think!
For example, a McDonald’s bill might include 2 burgers @ $4.00 each, 4 strawberry milkshakes @ $2.50 each.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.