0% found this document useful (0 votes)
2 views4 pages

Daily Management System Report

The Daily Management System project, implemented in C, allows users to add and view daily tasks with associated dates and statuses, showcasing file handling and menu-driven logic. Key features include task addition, viewing saved tasks, and persistent storage. The project serves as a practical example of using structures and user interfaces in C programming.

Uploaded by

madanpanathale13
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)
2 views4 pages

Daily Management System Report

The Daily Management System project, implemented in C, allows users to add and view daily tasks with associated dates and statuses, showcasing file handling and menu-driven logic. Key features include task addition, viewing saved tasks, and persistent storage. The project serves as a practical example of using structures and user interfaces in C programming.

Uploaded by

madanpanathale13
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/ 4

Daily Management System - C Programming Project

DAILY MANAGEMENT SYSTEM

Submitted by: Madan P K

Branch: Computer Science and Design

Year: 2025
Daily Management System - C Programming Project

1. Introduction

This project implements a Daily Management System in the C programming language. It allows users to add

and view daily tasks with associated dates and status. It demonstrates file handling, structures, and

menu-driven logic in C.

2. Objective

The main objective of this project is to develop a simple and effective system to track and manage daily tasks

using the C language and file handling.

3. Features

- Add a new task with title and date

- View all saved tasks

- Persistent storage using files

- Simple and user-friendly menu interface

4. Source Code

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct Task {
char title[50];
char date[12];
char status[10];
};

void addTask();
void viewTasks();

int main() {
int choice;

while (1) {
Daily Management System - C Programming Project
printf("\n--- Daily Management System ---\n");
printf("1. Add Task\n");
printf("2. View Tasks\n");
printf("3. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
getchar();

switch (choice) {
case 1:
addTask();
break;
case 2:
viewTasks();
break;
case 3:
exit(0);
default:
printf("Invalid choice!\n");
}
}
return 0;
}

void addTask() {
FILE *fp;
struct Task t;
fp = fopen("tasks.txt", "a");

printf("Enter task title: ");


fgets(t.title, 50, stdin);
strtok(t.title, "\n");

printf("Enter date (DD/MM/YYYY): ");


fgets(t.date, 12, stdin);
strtok(t.date, "\n");

strcpy(t.status, "Pending");

fwrite(&t, sizeof(struct Task), 1, fp);


fclose(fp);
printf("Task added successfully!\n");
}

void viewTasks() {
FILE *fp;
struct Task t;
fp = fopen("tasks.txt", "r");

if (fp == NULL) {
printf("No tasks found.\n");
return;
Daily Management System - C Programming Project
}

printf("\n--- Task List ---\n");


while (fread(&t, sizeof(struct Task), 1, fp)) {
printf("Title : %s\n", t.title);
printf("Date : %s\n", t.date);
printf("Status: %s\n\n", t.status);
}

fclose(fp);
}

5. Sample Output

Sample menu interface:

1. Add Task

2. View Tasks

3. Exit

User can input task title and date, and the system will store and display them.

6. Conclusion

This project provides a practical implementation of a basic daily management system using C. It helps in

understanding the use of file handling, structures, and user interfaces in C.

You might also like