A passport office at Gurgaon decides to generate a Unicode for every applicant who applies for passport and to mail the same to the applicants. The passport service will get rendered only when an applicant provides his own Unicode number that was sent to him. The Unicode is generated in a tricky way. It is the year of birth of the applicant summed up followed by the area code reversed.
Year entered must contain four digits; otherwise display – ‘Unable to generate Unicode’. If the year entered is greater than the current year or less than or equal to zero, display the message – ‘Unable to generate Unicode’. If the area code entered is less than or equal to zero, display the message – ‘Invalid area code’.
Build an algorithm for the same.
Answers
Answered by
1
tex
algo.
stub.
a Unicode for every applicant who applies for passport and to mail the same to the applicants. The passport service will get rendered only when an applicant provides his own Unicode number that was sent to him. The Unicode is generated in a tricky way. It is the year of birth of the applicant summed up followed by the area code reversed.
Year entered must contain four digits; otherwise display – ‘Unable to generate Unicode’.
Answered by
14
Answer:
Explanation:
Hello
Attachments:
Similar questions
Physics,
5 months ago
English,
5 months ago
Computer Science,
5 months ago
Math,
10 months ago
Math,
1 year ago