Computer Science, asked by chinna811, 11 months ago

Let us see a few examples.
Example-1 - If the participant's details are as below -
First_Name = Rajiv
Last_Name = Roy
PIN = 560037
N = 6
Step1 - Length of Last_Name is less than the Length of First_Name, so the Smaller Name
is "Roy" and the Longer Name is "Rajiv
Step2 - The user-id will be = Last Letter of the smaller name + Entire word in the longer
name + Digit at position N in the PIN when traversing the PIN from left to right + Digit at
position N in the PIN when traversing the PIN from right to left
= Last Letter of "Roy" + Entire word in "Rajiv" + 6th Digit of PIN from left + 6th Digit of PIN
from right
= y + Rajiv + 7 + 5
Therefore, user-id = yRajiv75
Step3 - Toggle the alphabets in the user-id. So, user-id = YrAJIV75
Rew ww www www.
e
Example-2 - If the participant's details are as below
Java code

Answers

Answered by TweetySingh
0

Answer:

hey u what rubbish question

Similar questions