After one cycle of while-loop of the 2nd function (addItems) below is finished and I press 'y' to add one more person, it does not ask me to input name, but instead it jumps to Enter ID: .
Here is output screen.
------------------------------------
Enter name: kevin anderson
Enter ID: 1
Enter Salary: 1234
Enter another Employee (y/n)? y
Enter name: Enter ID: //Does not allow user to put name of the second employee
------------------------------------
Can someone help me on this issue?
Thank you.
1st function setEmployee() called by 2nd function...