//#ifndef MECHANICBILL_H //#define MECHANICBILL_H #include #include "MechanicBill.h" using namespace std; namespace lab1 { void message(); } namespace lab2 { void message(); } int main() { { using namespace lab1; message(); } MechanicBill customer1, customer2 ( 3, 4 , 3.8), customer3; customer1.set_brake_pads(4); customer1.set_tires(4); customer1.set_oil(7.5); cout << endl; cout << "Customer 1 Bill " << endl; customer1.calc_total(); cout << endl; cout << "Customer 2 Bill " << endl; customer2.calc_total(); if ( customer1 == customer2) cout << "The receipts are equal." << endl; else cout << "Bills do not equal." << endl; cout << "-------------------------------------------------------------------------------" << endl; cout << "Combined Bills" << endl; customer3 = customer1 + customer2; customer3.calc_total(); { using namespace lab2; message(); } return 0; } //Definitons of namespace lab1 & 2 namespace lab1 { void message() { cout << "Hello. Welcome to my program." << endl; } } namespace lab2 { void message() { cout << "Have a nice day. Goodbye!" << endl; } }