Thursday, August 6, 2026

KYC Verification System || C Lab Programs

 Program 03: KYC Verification System

Problem Statement:: Develop a C program that takes a unique identification choice (like PAN or AADHAR) and checks it against stored records to display verification status. 

Problem Description:

  • Input: An integer representing the user's choice from a menu of ID types.

  • Output: Displays "Verified" with the ID type or "Not Verified".

  • Constraints: Assumes all unique identifications are simplified to integer choices; use a switch case.

  • Method: A switch statement provides a clean way to handle multiple discrete integer matches. 

Pgm Logic:

  1. Start.

  2. Display a menu: 1. PAN, 2. AADHAR, 3. APAAR, 4. Driving License, 5. Passport.

  3. Read the user's numeric choice.

  4. Use a switch(choice) to match the selection:

    • Case 1-5: Print the specific ID type as "Verified".

    • Default: Print "Not Verified".

  5. Stop. 

Program Code:

// Purpose: To verify unique KYC records based on integer-type identification inputs using switch-case.

#include <stdio.h>


int main()

{

    int choice;

    printf("------ KYC Verification System ------\n");

    printf("1. PAN Number\n2. AADHAR Number\n3. APAAR Id\n4. Driving License\n5. Passport\n");

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

    scanf("%d", &choice);

    switch(choice)

    {

        case 1: printf("PAN Verified!\n"); break;

        case 2: printf("AADHAR Verified!\n"); break;

        case 3: printf("APAAR Verified!\n"); break;

        case 4: printf("Driving License Verified!\n"); break;

        case 5: printf("Passport Verified!\n"); break;

        default: printf("Not Verified!\n");

    }

    return 0;

}


Output:

  1. PAN Number

  2. AADHAR Number... 

Enter your choice (1-5): 1 

PAN Verified! 

RESULT: Thus the program has been executed and the output was verified. 

Remarks: Compiled and run in Code::Blocks. The switch statement is ideal here because the inputs are distinct integer constants rather than ranges. 

Program Explanation: The program acts as a menu-driven interface where the user selects an ID type. The switch block jumps directly to the case matching the user's number to confirm verification.


For all 2026 published C Lab Program posts Index page: click here

For all 2026 published articles list:click here

…till the next post, bye-bye & take care