# Computers C

posted by .

Backgound
The employees can be any one of the two types: 1) Full-Time Salaried (FTS) and 2) Part-Time Hourly (PTH).
Currently, there are totally 1050 FTS employees and 274 PTH employees in a company.
The company plans to add up to 50 new employees
FTS employees are paid in a fixed amount per week irrespective of the number of hours they work.
FTS employees are paid a gross salary anywhere between \$1000 to \$1500 per week (after picking randomly the
salary should be fixed for an employee until a pay-hike).
FTS employee Take home salary would be 30% less owing to federal/state income taxes and other deductibles.
PTH employees are paid a gross wage of \$35.25 per hour.
PTH employees’ incomes depend on the number of hours worked.
PTH employees work anywhere between 20 to 30 hours per week.
PTH employee Take home salary would be 20% less owing to federal/state income taxes.
Program
Create a data structure for employees that will store the following information for each employee:
• Full Name
• ID (IDs have a format 333-xxxx. Employee1 = 333-0000, employee2 = 333-0001 and so on.)
• Status: FTS or PTH
• Gross Salary per week (only for FTS employees)
• Wages per hour (only for PTH employees)
• Hours worked per week (only for PTH employees)
Notes: Type/number of data structures can be student’s personal choice
Initialize the database: Fill random values for all the information for all the current employees (1050 FTS
employees and 274 PTH employees).
Your program in an infinite loop, should ask for the following choices
Write a user-defined function that will process this choice
b. Assign a random ID that has not been used yet. Two employees should NOT have the same
employee ID.
d. If the Status is FTS, ask for Gross Salary
e. If the Status is PTH, ask for Wages per hour
f. ADD the new employee to the data-structure and provide confirmation
b) Delete Employee
Write a user-defined function that will process this choice
a. Ask for ID and delete the employee-entry
b. Provide confirmation that the entry is deleted
c) Search and Display Employee Information
Write a user-defined function that will process this choice
a. Ask for ID and print all information
c. If FTS employee, print gross_salary and take-home_salary
d. If PTH employee, print wages/hr, number_of_hours_worked_this_week (random), gross_salary
and take-home_salary
d) Update Employee Information
Write a user-defined function that will process this choice
b. Ask for WHAT do you want to update (Status or Pay-scale)
c. Ask for new Status: (updating the status of an employee)
i. Update the status of the specified employee
ii. Provide confirmation about status change
d. Ask for Pay Hike Percentage: (example: 2 means increasing salary or wages by 2%)
i. Increase the salary or wages of the specified employee by the specified percentage
ii. Provide confirmation (Display old salary or wages and new salary or wages)
e) FTS Employee Statistics
Write a user-defined function that will process this choice
a. List ALL FTS employees names and IDs
b. Print Average of the Salary/week
c. Print Standard Deviation of the Salary/week
f) PTH Employee Statistics
Write a user-defined function that will process this choice
a. List ALL PTH employees names and IDs
b. Print Average of the Hours_worked/week and Salary/week
c. Print Standard Deviation of the Hours_worked/week and Salary/week
g) QUIT the system
a. Quit the infinite loop

## Similar Questions

1. ### Quantiative Methods

Western Family Steakhouse offers a variety of low-cost meals and quick service. Other than management, the steakhouse operates with two full-time employees who work 8 hours per day. The rest of the employees are part-time employees …
2. ### Grade 11 maths plz help!!!

A software company started with 2 employees. In 6 months, the company had 7 employees. The number of employees increased in a steady rate. Which equation models the relationship between the number of employees n and the number of months …
3. ### m/c

A researcher is hired by a company to ascertain the morale of company employees. The company employs over 10,000 employees. The researcher takes a random sample of 237 employees, interviews each sampled employee, and uses the information …
4. ### statistics

A small company has 9 female employees and 15 male employees. In how many ways can 8 employees be selected at random for drug testing if exactly 5 of the employees must be males?
5. ### C programming

Help would be grately apreciated on this problem thank you! Backgound The employees can be any one of the two types: 1) Full-Time Salaried (FTS) and 2) Part-Time Hourly (PTH). Currently, there are totally 1050 FTS employees and 274 …
6. ### Math

At a company, there are y more male employees than female employees. If there are x male employees at the company, what fraction of the employees are male, in terms of y and x?
7. ### 2math

n January, a company named ACME had 100 employees. In February they lost 15 employees, and in March the company hired 25 new employees. How many employees were working for ACME at the beginning of April?
8. ### maths

ABC company currently has 1/4 fewer computers than it has employees,if they currently have 80 employees and they want to hire 5% more.how many computers will they need to buy to ensure that each employees has one?
9. ### Math

An electronics company has 450 employees. The company plans to increase its staff by 30%. How many new employees will the company hire?
10. ### Civics

A company decided to pass a policy banning cell phones on their property. A group of employees collected signatures to protest. Many of the co-workers who signed the petition were later fired because the petition was deemed disruptive. …

More Similar Questions