Diary Management System Using C
Diary Management System Using C
Diary Management System Using C
(Deemed to be University)
On
Prison Transfer
SUBMITTED BY:
2300033528 S.Neeraj
Guide Name
Assistant Professor,CSE.
KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
DEPARTMENT OF BASIC ENGINEERING SCIENCES-1
CERTIFICATE
Dr. D.Haritha
ACKNOWLEDGEMENTS
I express the sincere gratitude to our Director Dr. A.Jagadeesh for his
administration towards our academic growth.
Project Associates…
ABSTRACT
The Diary Management System in C is a beginner-friendly
project designed to provide users with a simple yet effective platform for
maintaining digital journals. The project includes essential features such as
user login, diary entry creation, viewing, editing, and deletion. Users can
interact with the program through an uncomplicated menu system, making
it accessible for those learning the basics of programming in C.
1 Introduction 1
4 Flow Chart 6
5 Algorithm 7
6 Implementation 8
8 Conclusion 10
INTRODUCTION
Concepts:
The Diary Management System is a user-friendly console
application developed in C, providing an efficient digital solution for
individuals and organizations to manage their schedules and tasks. This
program ensures secure data handling through password protection,
allowing users to add, view, edit, and delete diary records. The intuitive
text-based interface enhances accessibility, emphasizing ease of use. The
project not only records daily activities but also facilitates easy
modification and deletion of entries. With a focus on C programming best
practices, code quality, and clear documentation, this Diary Management
System optimizes daily task management for enhanced productivity.
Function:
The primary goal of the Diary Management System project in
C is to create a user-friendly console application for individuals or
organizations to efficiently manage their schedules and tasks. With
functions like adding, viewing, editing, and deleting diary entries, the
project ensures secure and organized record-keeping. The focus is on
implementing a straightforward and accessible interface while adhering to
C programming best practices, promoting ease of use and effective daily
task tracking.
AIM
Advantages: -
1. Time Management: A daily journal management system allows users to
organize and track their daily tasks, creating efficient time management
and improving productivity .
2. Data Privacy: With password protection, the system ensures the privacy
of personal records, providing users with a secure way to manage their
information.
4. Flexible Record Control:Users can easily add, view, edit, and delete daily
entries, allowing for flexibility and flexibility in settings or features of
variable importance.
Disadvantages: -
1. Limited Accessibility: As a console application, the diary management
system may lack the graphical interface found in modern systems,
potentially limiting its accessibility to users who prefer visual interaction
dangerous
2.Scalability Challenges: The project may face scalability challenges when
dealing with multiple records or extensive data, based on information,
which can slow down performance as the database grows
3. command-line skills: Users with limited command-line experience may
find the application difficult to navigate and use effectively, potentially
hindering its adoption by unaware individuals command-line interfaces
do not recognize it
4.Features with minimal integration: The system may not have the ability to
seamlessly integrate with other applications or devices, limiting its
connectivity and ability to integrate with external calendars or platforms
5.Security Issues: Although password protection is included in the project,
the limitations of console applications compared to more advanced
systems raise security concerns, which can leave them vulnerable to
attacks on
6.Aesthetic Limitations: The text-based nature of the interface can result in a
less than pleasant experience, potentially frustrating users who want
aesthetic and intuitive design in digital solutions disappointed
FUTURE ENHANCEMENT: -
SYSTEM REQUIREMENTS
➢ SOFTWARE REQUIRMENTS:-
• C Compiler
• Operating System
• Development Environment
• Console or Terminal
➢ HARDWARE REQUIREMENTS:-
• PROCESSOR:- 64 BIT
FLOW CHART
CODE
#include <stdio.h>
#include <string.h>
#define MAX_USERNAME_LENGTH 20
#define MAX_PASSWORD_LENGTH 20
void login();
void addRecord();
void viewRecord();
void editRecord();
void deleteRecord();
void editPassword();
char usernames[MAX_ENTRIES][MAX_USERNAME_LENGTH];
char passwords[MAX_ENTRIES][MAX_PASSWORD_LENGTH];
char diaryEntries[MAX_ENTRIES][1000];
int totalEntries = 0;
int main() {
int choice;
do {
printf("1. Login\n");
printf("0. Exit\n");
scanf("%d", &choice);
switch (choice) {
case 1:
login();
break;
case 2:
addRecord();
break;
case 3:
viewRecord();
break;
case 4:
editRecord();
break;
case 5:
deleteRecord();
break;
case 6:
editPassword();
break;
case 0:
break;
default:
return 0;
}
void login() {
char username[MAX_USERNAME_LENGTH];
char password[MAX_PASSWORD_LENGTH];
int i;
scanf("%s", username);
scanf("%s", password);
currentUserIndex = i;
printf("Login successful!\n");
return;
void addRecord() {
if (currentUserIndex == -1) {
return;
void viewRecord() {
if (currentUserIndex == -1) {
return;
void editRecord() {
if (currentUserIndex == -1) {
return;
void deleteRecord() {
if (currentUserIndex == -1) {
return;
}
diaryEntries[currentUserIndex][0] = '\0';
void editPassword() {
if (currentUserIndex == -1) {
return;
char newPassword[MAX_PASSWORD_LENGTH];
scanf("%s", newPassword);
strcpy(passwords[currentUserIndex], AnewPassword);
OUTPUTS
Screenshots:
1.Login Page:
2.Add Record
3.View Record:
4.Edit Record:
5.Delete Record:
6.Edit Password:
7.Exit:
CONCLUSION
In conclusion, the diary management system implemented in C
provides a basic framework for users to log in, add, view, edit, and delete
diary records, as well as change their passwords. The program utilizes
simple arrays to store user credentials and diary entries. It is important to
note that this code is intended for educational purposes and lacks
sophisticated security features. In a real-world application, additional
measures, such as encryption and secure data storage, would be essential to
ensure the protection of user information. Nevertheless, this project serves
as a starting point for understanding the fundamentals of user
authentication and data management in a simple C programming context.
As users interact with the system, they can navigate through the menu
options to maintain a personal diary, demonstrating the basic principles of
user input, control flow, and data manipulation in the C language.