calworld
May 4th, 2003, 09:28 AM
You will read a rate table of medical codes and rates. You will request (prompt) an employee’s number, name, rate code and sex from the user. You must look up the employee’s rate code in the table and print out the meaning of the code. The employees must be print in employee number order. The output record should include the employee number, name, sex, rate code in words and the dollar amount. Also, at the end of the report, print out the total number of employees listed.
Medical code table:
Code 1 2 3 4
Male Rates 25 30 40 50
Female Rates 20 25 35 45
Codes:
1 – Employee only
2 – Employee and one dependent
3 – Employee and two dependents
4 – Employee and three or more dependents
Output Record
Employee number Employee name Employee sex Rate in words Rate amount
Total Number of Employees 9999
Data validation: You must also include a check for invalid data conditions, and include checking for invalid conditions in your desk check.
------------------------------------------------------------------------------------
Anybody have idea how to program it in C program
Thanks
Medical code table:
Code 1 2 3 4
Male Rates 25 30 40 50
Female Rates 20 25 35 45
Codes:
1 – Employee only
2 – Employee and one dependent
3 – Employee and two dependents
4 – Employee and three or more dependents
Output Record
Employee number Employee name Employee sex Rate in words Rate amount
Total Number of Employees 9999
Data validation: You must also include a check for invalid data conditions, and include checking for invalid conditions in your desk check.
------------------------------------------------------------------------------------
Anybody have idea how to program it in C program
Thanks