#include #include struct Employee // declare a global type { int idNum; double payRate; double hours; }; double calcNet(Employee); // function prototype int main() { Employee emp = {6782, 8.93, 40.5}; double netPay; netPay = calcNet(emp); // pass copies of the values in emp // set output formats cout << setw(10) << setiosflags(ios::fixed) << setiosflags(ios::showpoint) << setprecision(2); cout << "The net pay for employee " << emp.idNum << " is $" << netPay << endl; return 0; } double calcNet(Employee temp) // temp is of data type Employee { return (temp.payRate * temp.hours); }