It would help us a great deal if you gave us some background on what you are attempting to accomplish with your program as well as why you think that the function in question is malfunctioning? I personally don't have time to study the program and debug it for you without having some information on what type of problem I am looking for.
Prompt the user for the number of consultants for each consultant, prompt the user to enter values for each of the ff:
1. NAME (30 characters)
2.EXPERTISE (20 characters)
3. IDENTIFICATION NUMBER (integer)
4.JOB LEVEL (possible values allowed are 'A', 'B', 'C', 'D')
5. MONTHLY SALARY RATE (float with 2 decimal places)
6. ANNUAL SALARY RATE (double with 2 decimal places, computation depends on the job level)
for job level 'A' 12-month pay
for job level 'B' 13-month pay
for job level 'C' 14-month pay
for job level 'D' 15-month pay
Each element should be stored in arrays.
Assume a maximum of 50 consultants forthis program. Display the data in table format after the user entered the last consultant.
SAMPLE MENU:
[1] ADD NEW CONSULTANT
[2] UPDATE CONSULTANT RECORD
[3] DISPLAY CONSULTANT LIST
[4] QUIT
For the 2nd choice menu is:
1. NAME
2. ID NUMBER
If the input is 1, prompt the user for the consultant name to be updated. If choice 2, prompt user for ID no. of the consultant.
If the consultant is not yet in the list, then inform the user that such consultant cannot be found in the list. Otherwise, display the complete record of the matching consultant in the list. then for each field, ask the user if he/she wants to update that field. If yes then prompt the user for the new value of the field. Control goes back to the main menu.
For the third choice, display out the data in table format as below:
NAME EXPERTISE ID NO. JOB LEVEL MONTHLYRATE
1 MANUEL DIAZ COMPT SPECIALIST 476 D 845.56
2 ELENA MARQUEZ SOUND EDITOR 596 b 1745.23