Type your question h A company pays has two types of employees.<?xml:namespace p
ID: 3532250 • Letter: T
Question
Type your question h
A company pays has two types of employees.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Managers (M), and Full time workers (F) its employees at the following rates.
Here are their pay structures for weekly pay
Managers: Their employee code is M.
They get paid thirteen dollars per hour($13.00) for a 38 hour week. They are paid overtime for the hours over 38 at time and a half. No one is allowed to claim more than 70 hours per week.
Fulltime workers: their employee code is F
They are paid federal minimum wage per hour $7.25/hr. They are allowed to work a 40 hour week. They are paid overtime at time and a half but they are not allowed to work more than 60 hours a week.
A DATA FILE IS PROVIDED FOR YOU. IT IS ONLINE.
Read the data and calculate the Regular Salary, Overtime Salary, FICA and Net Salary and display in a nicely formatted Listbox.
Technical specifications. The Salary calculations must be done with different Function procedures you call inside the loop.
1. regular pay private method to calculate and public method to return
2. overtime pay private and public method
3. gross pay public method only
4. Net Pay after FICA. All pay checks are subject to FICA at 7.65% this year. Create a function to calculate FICA using that function method but amount you pay into FICA will be a variable datafield in the program. Net pay then is Gross Pay minus FICA.
5. You will display Regular Pay, OT pay, FICA and NETpay along with other details you read from the file.
6. Wherever possible use constants to show superior programming techniques.
7. Whenever possible use Sub procedures and functions.
ere
Explanation / Answer
#include #include #define NUM_EMPLOYEE 10 using namespace std; int main(int argc, char *argv[]){ int Salary[NUM_EMPLOYEE], lCount=0,gCount=0,i=0; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.