Error Checking in C++ Eclipse

When checking code i keep getting an “undefined reference to `OutputActualBill(std::basic_ostream >&, char, int, int, double, double, int, double, double, double, double, double, double, double&, double&)” error message. Need help in fixing error. A txt file with the approiate corrections might be helpful in explaining my error.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

I’m heading to work and wont be back till 8 hours from now hope someone can help…

Function Prototype

void OutputActualBill(ostream &,

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

               char packageType,

               int package_a_access_hours,

               int package_b_access_hours,

               double package_a_excess_hourly,

               double package_b_excess_hourly,

               int hours_utilized, double base_charge,

               double excess_charge, double total_sales_tax,

               double total_due_package_a,

               double total_due_package_b,

               double total_due_package_c,

               double &savings_package_b,

               double &savings_package_c);

   

Function Call

OutputActualBill(cout,

            packageType,

            package_a_access_hours,

            package_b_access_hours,

            package_a_excess_hourly,

            package_b_excess_hourly,

            hours_utilized, base_charge,

            excess_charge, total_sales_tax,

            total_due_package_a,

            total_due_package_b,

            total_due_package_c,

            savings_package_b,

            savings_package_c);

 

Fuction Detail:
I’m still working on the detail….

void OutputActualBill(ostream &out,

               char packageType,                int package_a_access_hours,                int package_b_access_hours,                double package_a_excess_hourly,                double package_b_excess_hourly,                int hours_utilized, double base_charge,                double excess_charge, double total_sales_tax,                double total_due_package_a,                double total_due_package_b,                double total_due_package_c,

               double savings_package_b,

               double savings_package_c)

{

// write definition for OutputActualBill

out << "---------------------------------------" << endl

<< "Package:                              " << packageType

<< endl

<< "Base hours:";

 

if (packageType == ‘A’)

{

out << setw(28) << package_a_access_hours;

}

else

if (packageType == ‘B’)

{

out << setw(28) << package_b_access_hours;

} else {

out << setw(28) << "unlimited";

   out << "Hourly rate for excess hours:";

 

   if (packageType == ‘A’)

    {

    out << setw(10) << package_a_excess_hourly;

    }

    else

if (packageType == ‘B’)

    {

    out << setw(10) << package_b_excess_hourly;

    }    else    {

    out << setw(10) << "N/A";

    }  }

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER