Mini Project
Mini Project
<<PROJECT TITLE>>
Submitted by
DASARI JHASHMI
Nikhil Chowdary
R A 2 3 1 1 (RA2311003010427)
003011617
KB.Tech.
A R A NCSE
A M- A
CORE
PURVA
B.Bhuvaneswar
R A 2 3 1 1(RA2311003010416)
003011620
B.Tech. CSE -CORE
SCHOOL OF COMPUTING
COLLEGE OF ENGINEERING AND TECHNOLOGY
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Under Section 3 of UGC Act, 1956)
S.R.M. NAGAR, KATTANKULATHUR – 603 203
CHENGALPATTU DISTRICT
November 2023
2 | Page
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
TABLE OF CONTENTS
1 Problem Statement
3 | Page
4
2 Methodology / Procedure/ Algorithm
6
3 Flowchart
7-10
4 Coding (C/Python)
11
6 Modules of the proposed work
12-13
7 Results/Screenshots
14
8 Conclusion
15
9 References
1. Problem Statement
5 | Page
# Main program loop
while True:
# Display a menu for user interaction
print("online recruitment system:")
print("1. Register")
print("2. Login")
print("3. Quit")
print("5. Exit")
6 | Page
3. Flow chart
7 | Page
4. Coding (C/Python)
8 | Page
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
// User structure
typedef struct {
char username[50];
char password[50];
char role; // 'J' for Job Seeker, 'E' for Employer
} User;
// Function prototypes
void registerUser(User users[], int *userCount);
bool loginUser(User users[], int userCount, char *username, char *password);
char getRole();
int main() {
User users[MAX_USERS];
int userCount = 0;
char role;
while (1) {
printf("Online Recruitment System\n");
printf("1. Register\n");
printf("2. Login\n");
printf("3. Quit\n");
printf("Enter your choice: ");
int choice;
scanf("%d", &choice);
fflush(stdin); // Clear the input buffer
switch (choice) {
case 1:
registerUser(users, &userCount);
break;
case 2:
printf("Enter your username: ");
9 | Page
char username[50];
scanf("%s", username);
printf("Enter your password: ");
char password[50];
scanf("%s", password);
return 0;
}
strcpy(users[*userCount].username, username);
strcpy(users[*userCount].password, password);
users[*userCount].role = role;
(*userCount)++;
printf("Registration successful!\n");
}
char getRole() {
char role;
while (1) {
printf("Select your role (J for Job Seeker, E for Employer): ");
scanf(" %c", &role);
11 | Page
if (role == 'J' || role == 'E') {
return role;
}
printf("Invalid role. Please try again.\n");
}
}
12 | Page
SOFTWARE REQUIRMENTS:
1.Operating system: Windows 10
2.C version: C89/C90 (ANIS C) or GCC
HARWARE REQUIRMENTS:
1.Processer: Intel(R)coretmi3 or higher 2
2.Memory space: 1GB RAM
3.Hard disk drive: 80 GB
7. Results/Screenshots
13 | Page
14 | Page
15 | Page
8. Conclusion
A library management system in C plays a
crucial role in modern libraries, simplifying
operations, improving user experience, and
maintaining the integrity of library resources.
The system's effectiveness depends on its
design, features, and how well it is
implemented and maintained to serve the
specific needs of the library it supports.
16 | Page
9. References
WEBSITE REFERENCES: -
edX: https://www.edx.org/learn/c-programming
Coursera: https://www.coursera.org/courses?query=C%20programming
Codecademy: https://www.codecademy.com/learn/learn-c
BOOK REFERENCES: -
“C Programming Absolute Beginner's Guide “by Perry and Miller.
"C Programming for the Absolute Beginner" by Vine.
17 | Page