Calendar Project c++

29
TERM PAPER OBJECT ORIENTED PROGRAMMING SYSTEM CSE202 TOPIC- CALENDAR SUBMITTED TO : SUBMITTED BY: SHAISHAV SIR ANURAG KUMAR

Transcript of Calendar Project c++

TERM PAPER

OBJECT ORIENTED PROGRAMMING SYSTEM

CSE202

TOPIC- CALENDAR

SUBMITTED TO : SHAISHAV SIR

SUBMITTED BY: ANURAG KUMAR ROLL NO- 07 SEC- E1801 REG NO- 10809115

CONTENTS 1. INTRODUCTION 2. SOURCE CODEa.

A1.cpp It displays the welcome screen. It lets the user enter the date. A2.cpp - It checks for the wrong date if entered. A3.cpp - It checks for the leap year and assigns the correct number of days inthe month to the variable.

b.

c.

d.

A4.cpp - It checks for the wrong of February. A5.cpp - It displays the calendar of the month entered by the user. A6.cpp - It displays the day on the date entered by the user. A7.cpp - It links all the programs mentioned above. Calmain.cpp - It is the main program of the project

e.

f.

g.

h.

3.

DESCRIPTION OF THE PROGRAMS

4. SCREENSHOTS a. ENTERING DATE b. LOADING SCREEN c. LOADING d. PRINTING CALENDER AND DAY

e. ERROR SCREEN INVALID DATE 5. HARDWARE & SOFTWARE REQUIREMENTS

INTRODUCTIONThe project of CSE202 is calendar. I have to prepare a software in which we have to print the month calendar and day of the specific date. This software is programmed in Turbo c ++. The software is basically designed to print calendar. This software is very useful for all the sectors. More over this type of software is very much used today in cell phones and computers etc. I have used linking of programs in my project. I have made 6 programs for different operations and then I have linked them all in my 7th program. And after that I have linked the 7th program to my main program. So all together 7 programs have been linked with the main program. I have declared the variables globally and then they have been used in all the class.

SOURCE CODE

A1.cpp#include #include #include

long int n=0,i,z1=0,z2=0,z3=0,r1=0,r2=0,r3=0,d=0,m=0,y=0,nod1=0,j; long int s=0,p=0,s1=0,p1=0,p2=0,leap=0,lp=0,x=0,days=0,lpg=0,ch=0,st=0; char w; class a1 { public: virtual void getd(); }; void a1::getd() { clrscr(); textcolor(2); gotoxy(20,4); cout