#include #include // Library for I/O commands #include using namespace std; //This is Lab # 5 A & B //CompE 46 //Objection of this lab is to use Structures in the program. struct EmployeeData // Structure statement { long ssn; // Social Security #. This is a member within the structure. int id; // School identification number }; class Employee { public: Employee (); Employee (double annual_salary); void set_data(); void set_salary(); void compute_netpay(); void display_data(); private: double annual_salary; double netpay; EmployeeData emp_data; }; int main () { //Employee object1, object2( double annual_salary); return 0; } Employee::Employee(double annual_salary) { } void Employee::set_data() { cout << "Please enter your numerical Social Securtiy Number: " <> emp_data.ssn; cout << "Pleas enter your numerical Identification Number: " << endl; cin >> emp_data.id; } void Employee::set_salary() { cout << "What is your annual salary?" << endl; cin >> annual_salary; } void Employee::compute_netpay() { if (annual_salary < 100000)// If-Else statement if netpay is less than 100,000 netpay = annual_salary - annual_salary * .30 ; else (annual_salary >= 100000);//If-Else statement if netpay is higher than 100,000 netpay = annual_salary - annual_salary * .40 ; } void Employee::display_data() { cout.setf(ios::fixed); cout.precision(2); //Precision set to 2 as stated in the instructions cout << "Your Social Security Number is :" << endl; cout << emp_data.ssn; cout << "Your Identification Number is :" << endl; cout << emp_data.id; cout << "Your annual salary is :" << endl; cout << annual_salary; cout << "With taxes removed from your salary, your total netpay is :" << endl; cout << netpay; }