Question: anyone have Solution in java 8 or java 7 with test case. Interns A company has N interns, interned from 1 to N. each interns

anyone have Solution in java 8 or java 7 with test case.
Interns A company has N interns, interned from 1 to N. each interns has been given a device which generate password (number) everyday that will be used as a password for authorization at the office door every day in the morning. The internship for 50 days numbered from 0 to 49 . Initially on the first day number in the device of kth intern will be 5000k. Form the second day (i.e. i=1) new number will be generated everyday in each device in the following way: Day (i) = Day (i1)+5000+i; Find the label of the intern from the given password. Input specification: Input-1: N, number of interns Input-2: P, password used Output: Returns the label of the intern for whom the password will be used. Example-1: Input1: 2 Input2: 5000 Output: 1 Example-2: Input1: 10 Input2: 25003 Output: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
