Computer Science, asked by kodalidithendrababu, 10 months ago

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 pragatibhasawar
34

Answer:

Step 1:Register through the Passport Seva Online Portal.

Step 2:Login to the Passport Seva Online Portal with the registered Login Id.

Step 3:Click "Apply for Fresh Passport/Re-issue of Passport" link.

Step 4:Fill in the required details in the form and submit.

Step 5:Click the "Pay and Schedule Appointment" link on the "View Saved/Submitted Applications" screen to schedule an appointment.

Online Payment has been made mandatory for booking appointments at all Passport Seva Kendras/Passport Offices.

Online Payment can be made using any one of the following modes:

Credit/Debit Card (MasterCard and Visa)

Internet Banking (State Bank of India (SBI) and Associate Banks Only)

SBI Bank Challan

Step 6:Click the "Print Application Receipt" link to print the application receipt containing Application Reference Number (ARN)/Appointment Number.

Step 7:Visit the Passport Seva Kendra (PSK)/Regional Passport Office (RPO) where appointment has been booked, along with original documents.

Explanation:

Answered by daghariddhi12
3

Answer:

1. start algorithm

2. input the year in the variable year.

3. input the area code in the variable a_code

4. count the digits in the year

5. if the digits are greater or lesser than 4, print("Unable to generate Unicode") and go to step 9 , else go to next step

6. If the year entered is greater than the current year OR less than OR equal to 0, print("Unable to generate Unicode") and go to step 9, else go to next step.

7. if the value of a_code is < OR = 0, print("Invalid area code") and go to step 9

8. print(year+a_code)

9. end of algorithm

Explanation:

Similar questions
Math, 1 year ago