Professional Documents
Culture Documents
VL2021220103648 Ast04
VL2021220103648 Ast04
NOTE: VTOP will not be working from Nov 28,2021 at 6 pm till Nov 30,2021.
So try uploading the Lab Cycle Sheet 4 as per the deadline given for smoother
process.
2. Write a "checkbook" class. You put a list of numbers into this class and get
a total out.
Member functions:
void check::add_item(int amount); // Add a new entry to the checkbook
int check::total(void); // Return the total of all items
Update the checkbook class so that it generates an exception when your
balance goes below zero.