Question: The program described below must have TWO FUNCTIONS in addition to main. YOU MAY NOT USE ALGORITHM, SSTREAM OR VECTOR. Write a program that uses

The program described below must have TWO FUNCTIONS in addition to main. YOU MAY NOT USE ALGORITHM, SSTREAM OR VECTOR.
Write a program that uses the following arrays:
empIDan array of 7 integers to hold the employee identification number. Initialize it with:
565884520176951877658461213028 XXXXX(replace the X's with the last 5 digits of your student ID)
payRate an array of 7 floats to hold the payrate for each employee.
Create a FILE with the numbers below. Read the file into the
payRate array. The rate in position 0 is the rate for employee
56588, etc.
20.0022.0024.0015.0017.5020.0022.00
Ask the user to enter an employee number and the hours that the employee worked this week . Compute the wages (hours times payrate) and output the result. For employees that work over 40 hours, they earn time-and-a-half pay for all hours over 40. Test with YOUR OWN employee number and 50 hours.
Allow the user to enter another request after you output the wages until they tell you to stop. Be sure to test your own Employyee number.
Sample output:
Enter employee numbers and the hours they worked. Enter -999 to stop the program
Enter the employee number:45201
Enter the hours worked:20
Employee 45201 pay rate is22.00
Employee 45201 earned:440.00
Enter the employee number:56123
Sorry, no such employee
Enter the employee number-999
Program ending

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!