Error Checking in C++ Eclipse

Ace your studies with our custom writing services! We've got your back for top grades and timely submissions, so you can say goodbye to the stress. Trust us to get you there!


Order a Similar Paper Order a Different Paper


When checking code i keep getting an “undefined reference to `OutputActualBill(std::basic_ostream<char, std::char_traits<char> >&, 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.

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

s

 

Function Prototype

void OutputActualBill(ostream &,

               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”;

    }

 

 

}

Writerbay.net

Looking for top-notch essay writing services? We've got you covered! Connect with our writing experts today. Placing your order is easy, taking less than 5 minutes. Click below to get started.


Order a Similar Paper Order a Different Paper