#ifndef MECHANICBILL_H//if not defined //Cmp #include #include "MechanicBill.h" using namespace std; namespace lab1 { void message(); } namespace lab2 { void message(); } int main() { cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); { using namespace lab1;//CAll to namespace lab1 message(); } MechanicBill customer1, customer2 ( 3, 4 , 3.8), customer3; customer1.set_brake_pads(4);//CAll to functions customer1.set_tires(4); customer1.set_oil(7.5); cout << endl; cout << "|Customer 1 Bill| " << endl; customer1.calc_total();//call to cal total of customer1 cout << endl; cout << "|Customer 2 Bill| " << endl; customer2.calc_total();//call to cal total of customer2 if ( customer1 == customer2)//bool to see if bills equal or not cout << "The receipts are equal." << endl; else cout << "Bills do not equal." << endl; cout << "-------------------------------------------------------------------------------" << endl; cout << endl; cout << "HOT IMPORT NIGHTS SUPREME CAR SERVICE" << endl; cout << "Combined Bills" << endl; cout << endl; customer3 = customer1 + customer2; cout << customer3 << endl; { using namespace lab2;//Call to namespace lab2 message(); } return 0; } //Definitons of namespace lab1 & 2 namespace lab1//1st namespace { void message() { cout << "Hello. Welcome to HOT IMPORT NIGHTS SUPREME CAR SERVICE!" << endl; } } namespace lab2 // 2nd namespace { void message() { cout << "Have a nice day. Make sure to come back in 3 months or in 3000 miles. Goodbye!" << endl; } } #endif // MECHANICBILL_H