Thursday, 27 August 2020

Employees attendance program: With password!!!

Guys this is going to be the biggest program ever.
Because it is about recording of Employers details: Lets see,

#include<stdio.h>
#include<conio.h>
void main()
{
int no,p;
clrscr();
printf("Enter the employee's number\n");
scanf("%d",&no);
switch(no)
{
case 1234:
printf("RHN\n");
printf("Enter the password to know further details:\n");
scanf("%d",&p);
if(p==1 || p==2 || p==3 || p==4)
{
printf("CORRECT PASSWORD\n");
printf("POST: MANAGER\n");
printf("SALARY: 12000000\n");}
printf("PH:NO: 0000000000\n");
printf("ADDRESS: 10/1 street,\n Area\n district with pincode.\n");
while(p!=1234)
{
printf("INCORRECT PASSWORD DONT TRY TO OPEN....\n");
}
break;
case 5678:
printf("RHS\n");
break;
default:
printf("TRY AGAIN THE NUMBER IS INCORRECT\n");
}
getch();
}

Ok guysss see this program. it will really impress you. I hope you tried this program.
lets see on next post.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...