// This is an outline of the header file for the TaxReturn class. You will need to complete some of the function prototypes. // Before trying to use the file in a program save it with a .h extension. #include #include using namespace std; enum Status {SINGLE, MARRIED}; class TaxReturn { public: TaxPayer (); // Default constructor; Compare to Name() in the case study on pages 566 and 570-71 // Postcondition: // name is “ “ AND id is zero AND status is ‘ ‘ AND income is 0.00 // AND depend is 0. The fields deduction and taxOwed are also set to 0.00. SetTaxPayer ( /* in */ string tpName, // a single string, e.g. “John Q. Public” /* in */ int tpNum, /* in */ char tpfStatus,// ‘s’ or ‘m’ /* in */ float tpIncome, /* in */ int numDep ); // Parameterized constructor; Compare to Name() in the case study on pages 567 and 571 // Postcondition: // name is tpName AND id is tpNum AND status is fStatus AND income is tpIncome // and depend is numDep. The fields deduction and taxOwed are set to zero. // The tpfStatus parameter is converted to a filingStatus value for initialization of // the class object float GetTaxable( ); // Postcondition: // return value is the taxable income, computed as income - deductions void ComputeTaxes ( ); // Precondition: // values have been assigned to all taxpayer data members // Postcondition: // tax liability has been calculated and stored in taxOwed string GetName( ); // There are several similar functions in the Name case study and in the Time example. // Postcondition: // return value is this taxpayer’s name . //********************************************* // Include similar functions to return the values of the other private member variables: // id through taxOwed //*************************************************************************************** private: string name; // taxpayer name, input as a single string int id; // taxpayer identification number Status filingStatus; // taxpayer filing status float income; // taxpayer income int depend; // number of dependents float deduction; // standard deduction, based on filing status float taxable; // taxable income float taxOwed; // computed based on previous 4 data items };