0% found this document useful (0 votes)
53 views

Mini Project

its a project of c language

Uploaded by

jhashu23
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)
53 views

Mini Project

its a project of c language

Uploaded by

jhashu23
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
You are on page 1/ 17

1 | Page

<<PROJECT TITLE>>

21CSS101J – PROGRAMMING FOR PROBLEM-SOLVING

Mini Project Report

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

Certified that Mini project report titled ________________________________________________ is the


bonafide work of Reg.No___________________________________Name___________________who
carried out the minor project under my supervision. Certified further, that to the best of my knowledge,
the work reported herein does not form any other project report or dissertation on the basis of which a
degree or award was conferred on an earlier occasion on this or any other candidate.

SIGNATURE SIGNATURE

(GUIDE) (HEAD OF THE DEPARTMENT)

TABLE OF CONTENTS

S No. Title Page No.

1 Problem Statement

3 | Page
4
2 Methodology / Procedure/ Algorithm

6
3 Flowchart

7-10
4 Coding (C/Python)

5 Front-end code (HTML, CSS, Javascript) [Optional]

11
6 Modules of the proposed work

12-13
7 Results/Screenshots

14
8 Conclusion

15
9 References

1. Problem Statement

The Online Recruitment System is a simple


command-line program that allows job seekers to
register, submit their resumes, and search for job
4 | Page
listings. Employers can post job listings and
review applicants' resumes.

2. Methodology / Procedure/ Algorithm


# Import necessary online recruitment

# Define data structures to store information

# Define user roles and authentication mechanisms.

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")

# Get user choice


choice = input("Enter your choice: ")

● # Based on the user's choice, execute the corresponding functionality

# End of the main program loop

# Save data to a database or files for persistence.

# Implement data backup and recovery mechanisms.

# Design and implement a user-friendly graphical interface using a suitable


framework.

# Implement error handling and validation for user inputs.

6 | Page
3. Flow chart

7 | Page
4. Coding (C/Python)
8 | Page
#include <stdio.h>
#include <string.h>
#include <stdbool.h>

#define MAX_USERS 100

// 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);

if (loginUser(users, userCount, username, password)) {


printf("Login successful!\n");
role = getRole();
if (role == 'J') {
// Job Seeker Menu
printf("Welcome, Job Seeker!\n");
// Implement job seeker functionality here
} else if (role == 'E') {
// Employer Menu
printf("Welcome, Employer!\n");
// Implement employer functionality here
}
} else {
printf("Login failed. Invalid username or password.\n");
}
break;
case 3:
printf("Goodbye!\n");
return 0;
default:
printf("Invalid choice. Please try again.\n");
}
}

return 0;
}

void registerUser(User users[], int *userCount) {


if (*userCount == MAX_USERS) {
printf("User limit reached. Cannot register more users.\n");
return;
}

printf("Enter a username: ");


10 | Page
char username[50];
scanf("%s", username);

for (int i = 0; i < *userCount; i++) {


if (strcmp(users[i].username, username) == 0) {
printf("Username already exists. Please choose a different one.\n");
return;
}
}

printf("Enter a password: ");


char password[50];
scanf("%s", password);

char role = getRole();

strcpy(users[*userCount].username, username);
strcpy(users[*userCount].password, password);
users[*userCount].role = role;

(*userCount)++;

printf("Registration successful!\n");
}

bool loginUser(User users[], int userCount, char *username, char *password) {


for (int i = 0; i < userCount; i++) {
if (strcmp(users[i].username, username) == 0 && strcmp(users[i].password, password)
== 0) {
return true;
}
}
return false;
}

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");
}
}

6. Modules of the proposed work

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

You might also like