Daily Management System Report
Daily Management System Report
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
3. Features
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");
strcpy(t.status, "Pending");
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
}
fclose(fp);
}
5. Sample Output
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