0% found this document useful (0 votes)
974 views5 pages

Program 3 - Revised

The document outlines a C program for a KYC verification system that checks various unique identification numbers against stored records. Users can select from five types of IDs, input their ID number, and receive verification feedback. The program includes error handling for invalid choices and displays whether the ID is verified or not based on the input.

Uploaded by

Aditya Ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
974 views5 pages

Program 3 - Revised

The document outlines a C program for a KYC verification system that checks various unique identification numbers against stored records. Users can select from five types of IDs, input their ID number, and receive verification feedback. The program includes error handling for invalid choices and displays whether the ID is verified or not based on the input.

Uploaded by

Aditya Ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PROGRAM 3

Develop a C program that takes a unique identification input like PAN_Number,AADHAR_Number,


APAAR_Id, Driving License, Passport and checks it against a set of storedKYC records. Based on the
input, display whether the individual is verified or not. Use an appropriate control structure to
handle multiple possible ID matches. Assume all Uniqueidentification are of integer type.

#include <stdio.h>

int main() {

int choice, id;

// Sample stored KYC records (assuming integer type IDs)

int PAN_Number = 12345;

int AADHAR_Number = 67890;

int APAAR_Id = 11223;

int Driving_License = 44556;

int Passport = 77889;

printf("KYC Verification System\n");

printf("Choose the ID type to verify:\n");

printf("1. PAN Number\n");

printf("2. AADHAR Number\n");

printf("3. APAAR ID\n");

printf("4. Driving License\n");

printf("5. Passport\n");

printf("Enter your choice (1-5): ");

scanf("%d", &choice);

if(choice >= 1 && choice <= 5) {

printf("\n Enter the ID number: ");

scanf("%d", &id);
}

else {

printf("Invalid Choice. Please select a number between 1-5. ");

exit(0);

switch(choice) {

case 1:

if(id == PAN_Number)

printf("Verified: PAN Number matched.\n");

else

printf("Not Verified: Invalid PAN Number.\n");

break;

case 2:

if(id == AADHAR_Number)

printf("Verified: AADHAR Number matched.\n");

else

printf("Not Verified: Invalid AADHAR Number.\n");

break;

case 3:

if(id == APAAR_Id)

printf("Verified: APAAR ID matched.\n");

else

printf("Not Verified: Invalid APAAR ID.\n");

break;

case 4:

if(id == Driving_License)

printf("Verified: Driving License matched.\n");


else

printf("Not Verified: Invalid Driving License.\n");

break;

case 5:

if(id == Passport)

printf("Verified: Passport matched.\n");

else

printf("Not Verified: Invalid Passport.\n");

break;

return 0;

Outputs:
KYC Verification System

Choose the ID type to verify:

1. PAN Number

2. AADHAR Number

3. APAAR ID

4. Driving License

5. Passport

Enter your choice (1-5): 1

Enter the ID number: 12345

Verified: PAN Number matched.

Enter your choice (1-5): 1

Enter the ID number: 2345


Not Verified: Invalid PAN Number.

Enter your choice (1-5): 2

Enter the ID number: 67890

Verified: AADHAR Number matched.

Enter your choice (1-5): 2

Enter the ID number: 4567

Not Verified: Invalid AADHAR Number.

Enter your choice (1-5): 3

Enter the ID number: 3

Not Verified: Invalid APAAR ID.

Enter your choice (1-5): 3

Enter the ID number: 11223

Verified: APAAR ID matched.

Enter your choice (1-5): 4

Enter the ID number: 44556

Verified: Driving License matched.

Enter your choice (1-5): 4

Enter the ID number: 6786

Not Verified: Invalid Driving License.

Enter your choice (1-5): 5

Enter the ID number: 77889

Verified: Passport matched.

Enter your choice (1-5): 5


Enter the ID number: 7865

Not Verified: Invalid Passport.

Enter your choice (1-5): 8

Invalid Choice. Please select a number between 1-5.

You might also like