Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

lf the marginal prospensity to save mps is 0.07

Answered: 1 week ago