Moving on to structures
Functions with long lists of parameters are painful:
void calculate_bill(double base_charge, double usage_limit, double maxMB_used,
double endMB, double& over_charge, double& penalty_charge,
double& gst_owed, double& total);
void print_bill(int account_number, double usage_limit, double beginMB,
double maxMB_used, double endMB, double base_charge,
double over_charge, double penalty_charge, double gst_owed,
double total);
- Wouldn't it be nice if we could bundle all that stuff into a single variable?