//Beginning definitons page #include #include "MechanicBill.h" using namespace std; MechanicBill::MechanicBill() { } MechanicBill::MechanicBill ( int a1, int a2, double a3) { } void MechanicBill::set_brake_pads ( int ) { do { cout << "How many brake pads do you wish to change? ( 0 - 4)" <> brake_pads; if ( brake_pads >= 0 && brake_pads <= 4 ) { } else{ cout << "ERROR. Please enter a number from 0 - 4." < 4); } void MechanicBill::set_tires ( int ) { do { cout << "How many tires would you like to replace today? ( 0 - 4 )" << endl; cin >> tires; if ( tires >= 0 && tires <= 4 ) { } else{ cout << "ERROR. Please enter a number from 0 - 4." < 4); } void MechanicBill::set_oil ( double ) { do { cout << "How many quarts of oil does your car need? ( 0 - 7.5)" << endl; cin >> quarts_oil; if ( quarts_oil >= 0 && quarts_oil <= 7.5 ) { } else{ cout << "ERROR. Please enter a number from 0 - 7.5." < 7.5); } void MechanicBill::calc_total() { total_cost = parts_cost + labor_cost + tax_cost; cout << total_cost; } void MechanicBill::calc_parts_cost() { parts_cost = (brake_pads * 25) + (tires * 50) + (quarts_oil * 5.50); cout << parts_cost; } void MechanicBill::calc_labor_cost() { labor_cost = (brake_pads * 10) + (tires * 15) + (quarts_oil * .50); cout << labor_cost; } void MechanicBill::calc_tax_cost() { tax_cost = ( parts_cost * .05) + (labor_cost * .1); cout << tax_cost; } MechanicBill operator+(const MechanicBill bill1, const MechanicBill& bill2) { return ( bill1 + bill2); } bool operator ==(const MechanicBill& bill1, const MechanicBill& bill2) { cout << "The receipts are equal." << endl; return(0 );// bill1 == bill 2); } //std::ostream& operator <<(std::ostream& outs, const MechanicBill& bill) //{ // return 0; //}