0% found this document useful (0 votes)
1K views

Project Report (Calendar)

This document describes a student's lab project to create a calendar program in C language. It includes an introduction describing the goals of creating a simple calendar application. It then details the implementation, including the source code and screenshots. It concludes with the student outlining what they learned from the project and possibilities for future improvements.

Uploaded by

Md. Abu Saeid
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)
1K views

Project Report (Calendar)

This document describes a student's lab project to create a calendar program in C language. It includes an introduction describing the goals of creating a simple calendar application. It then details the implementation, including the source code and screenshots. It concludes with the student outlining what they learned from the project and possibilities for future improvements.

Uploaded by

Md. Abu Saeid
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/ 7

Green University of Bangladesh

Department of Computer Science and Engineering


(CSE)
Faculty of Sciences and Engineering Semester:
(Summer, Year: 2022), B.Sc. in CSE (Day)

Course Title: Structured Programming Lab


Course Code: CSE 104 Section: 221 - DN

Lab Project Name: Calendar

Student Details
Name ID

1. Md. Abu Saeid 221902092

Submission Date: 3rd September, 2022


Course Teacher’s Name: Mahbubur Rahman
Lecturer
Department of CSE
Green University of Bangladesh

[For Teachers use only: Don’t Write Anything inside this box]

1|Page
Lab Project Status

Marks: ………………………………… Signature: .....................


Comments: .............................................. Date: ..............................

Table of Contents

Chapter 1: Introduction 3-4


1.1 Introduction
1.2 Listed of Equipment used
1.3 Design Goals/Objectives

Chapter 2: Implementation of the project 5-8


2.1 Implementations
2.2 Screenshots

Chapter 3: Conclusion 9
3.1 Learning Outcome
3.2 Future Scope

2|Page
Chapter 1

Introduction
1.1 Introduction
This report has described the successful simple development of a calendar
program. This report outlines the design and development of a computer
software system to code blocks. The program was written in C language.
Basically calendar operation done in this project application. To find out of
the day corresponding to a given year and get calendar.
It is compiled in code::Blocks using GCC compiler

1.2 Listed of Equipment used


Laptop
IDE: Codeblocks
C language

1.3 Objectives .

3|Page
 To display the calendar interface.
 Input your favorite year and get date/month and day in week.
 To build a calendar successfully gaining all the required
knowledge.
 To apply our knowledge and understanding into practice.
 To know about the working of each and every component and their
role.

Chapter 2

Implementation of the project


2.1 Implementations
A simple Calendar in using c programming language .It’s a
simple calendar demo our main focus is learn C language.
Making a calendar of an year in c language .It is an E-
calendar. Enter a year and get calendar.

The source code of the project is:

#include<stdio.h>

int getFirstDay0fTheyear(int year){

4|Page
int day=(year*365 + ((year-1) /4) -((year-1) /100) +
((year-1) /400)) % 7;
return day;
}

int main()
{
char *months[] ={"January", "February", "March", "April",
"May", "June", "July", "August", "September", "October",
"November", "December"};
int daysInMonth[]={31,28,31,30,31,30,31,31,30,31,30,31};
int i,j, totalDays, weekDay =0, spaceCounter= 0, year;

printf("Enter your Favorite year:");


scanf("%d", &year);
printf("\n\n*************** Welcome to %d
***************\n\n",year);

//check if it is a leap year


if((year %4 ==0 && year % 100 !=0) ||(year % 400 == 0)){
daysInMonth[1]=29;
}

//Get the first day of the year


weekDay = getFirstDay0fTheyear(year);

for(i= 0; i< 12; i++){


printf("\n\n\n---------------------- %s ------------
-----------------\n" , months[i]);
printf("\n Sun Mon Tue Wed Thu Fri Sat\
n\n");

for(spaceCounter =1; spaceCounter <= weekDay;


spaceCounter++){
printf(" ");
}

totalDays =daysInMonth[i];

5|Page
for(j= 1; j<= totalDays; j++){
printf("%6d", j);
weekDay++;
if(weekDay >6){
weekDay = 0;
printf("\n");
}
}
}
return 0;
}

In this program, user take the input of their favorite year. And it will be
executed and show the output of the calendar interface.

6|Page
Chapter 3

Conclusion

4.1 Learning Outcome

From this assignment, I have learnt to implement a few C concepts in the future
projects such as loops, conditional statements, increment and decrement in the
program. I have also gain some knowledge of IDE: codeblocks and also trying
other IDE for better coding in the future.

4.2 Future Scope

 Helps us to broaden our knowledge.

 The scope of studying is quite large; from application of software


compilers to hardware.

7|Page

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy