currently I'm getting these errors:

**Error 1 error LNK2019: unresolved external symbol "public: __thiscall GiftWrap::GiftWrap(double,double)" (??0GiftWrap@@QAE@NN@Z) referenced in function _main E:\C++ Programming\CS 135\LAB7 - Program3\LAB7 - Program3\LAB7 - program3.obj LAB7 - Program3**

and

**Error 2 error LNK1120: 1 unresolved externals E:\C++ Programming\CS 135\LAB7 - Program3\Debug\LAB7 - Program3.exe 1 1 LAB7 - Program3**

Some of the functions that I was required to make as per the instructions for the lab I found to be redundant so I commented them out for the time being.

Some of the functions that I was required to make as per the instructions for the lab I found to be redundant so I commented them out for the time being.

Header File:

-------------

#include <iostream> #include <string> using namespace std; /* UML ----------------------------- | GiftWrap | ----------------------------- | -length:double | | -width:double | | -height:double | | -taxRate:double | | -pricePerInch:double | ----------------------------- | +GiftWrap() | | +GiftWrap(taxRate:double, | | pricePerInch:double) | | | | +setlength(double) | | +setwidth(double) | | +setheight(double) | | +setpricePerInch(double) | | +settaxRate(double) | | | | +getlength(double) | | +getwidth(double) | | +getheight(double) | | +getpricePerInch(double) | | +gettaxRate(double) | | | | +calcSubtotal() | | +calcTax() | | +calcTotal() | ----------------------------- */ class GiftWrap{ private: double length, width, height, taxRate, pricePerInch; public: GiftWrap(); GiftWrap(double taxRate, double pricePerInch); double setlength(double); double setwidth(double); double setheight(double); double setpricePerInch(); double settaxRate(); double getlength(); double getwidth(); double getheight(); double getpricePerInch(); double gettaxRate(); double calcSubtotal(double, double, double, double); double calcTax(double); double calcTotal(double, double); };

Implementation File:

--------------------

#include "program3.h" GiftWrap::GiftWrap() // set values for member variables { pricePerInch = 0.036; taxRate = 0.08; } /* GiftWrap::GiftWrap(double t, double p) // user inputted taxRate and pricePerInch { t = taxRate; p = pricePerInch; } */ double GiftWrap::setlength(double l) { l = length; return length; } double GiftWrap::setwidth(double w) { w = width; return width; } double GiftWrap::setheight(double h) { h = height; return height; } /* double GiftWrap::setpricePerInch() { } double GiftWrap::settaxRate() { } */ double GiftWrap::getlength() { return length; } double GiftWrap::getwidth() { return width; } double GiftWrap::getheight() { return height; } double GiftWrap::getpricePerInch() { return pricePerInch; } double GiftWrap::gettaxRate() { return taxRate; } double GiftWrap::calcSubtotal(double length, double width, double height, double pricePerInch) { double area; double subtotal; area = (2 * length * width) + (2 * length * height) + (2 * width * height); subtotal = area * pricePerInch; return subtotal; } double GiftWrap::calcTax(double subtotal) { double tax = subtotal * taxRate; return tax; } double GiftWrap::calcTotal(double subtotal, double tax) { double total; total = subtotal + tax; return total; }

Main Function:

---------------

#include "program3.h" int main() { int selection; string store = "Sally’s Gifts"; GiftWrap sallys(.0925, .0025); cout << "GIFT WRAP INVOICE GENERATOR\n" << "--------------------------------\n" << "1)Generate Gift Wrap Invoice\n" << "2)Generate Gift Wrap Invoice for bargain size\n" << "3)Quit\n"; cin >> selection; if (selection == 1) { double l; cout << "What's the length of your gift? "; cin >> l; sallys.setlength(l); double w; cout << "What's the width of your gift? "; cin >> w; sallys.setwidth(w); double h; cout << "What's the height of your gift? "; cin >> h; sallys.setwidth(h); } while (selection < 1 || selection > 3) { cout << "INVALID SELECTION! Choose another option: "; cin >> selection; } cout << "GIFT WRAP INVOICE - Sally's Gifts\n" << "----------------------------------\n"; cout << "Box Length : " << sallys.getlength() << endl; cout << "Box Width : " << sallys.getwidth() << endl; cout << "Box Height : " << sallys.getheight() << endl; cout << "Price Per Inch : " << sallys.getpricePerInch() << endl; double l = sallys.getlength(); double w = sallys.getwidth(); double h = sallys.getheight(); double p = sallys.getpricePerInch(); double t = sallys.gettaxRate(); cout << "SUBTOTAL : " << sallys.calcSubtotal(l, w, h, p) << endl; cout << "TAX : " << sallys.calcTax(t) << endl; double subtotal = sallys.calcSubtotal(l, w, h, p); cout << "----------\n" << "TOTAL : " << sallys.calcTotal(subtotal, t) << endl; system("pause"); return 0; }