+ All Categories
Home > Documents > c Project Calendar

c Project Calendar

Date post: 04-Dec-2015
Category:
Upload: g-pavan-kumar
View: 231 times
Download: 5 times
Share this document with a friend
Description:
c Project Calendar
32
||CALENDAR FROM 1600 A.D. TO FUTURE|| submitted by AERONAUTICAL STUDENTS 1.G.Pavan Kumar 14N31A2116 2.T.Sai Nilkhil Naidu 14N31A2162 3T.santhosh Kumar 14N31A2161 Under Guidance of M.Jayapal Associate Professor CSE Department DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 1
Transcript
Page 1: c Project Calendar

||CALENDAR FROM 1600 A.D. TO FUTURE||

submitted by AERONAUTICAL STUDENTS

1.G.Pavan Kumar 14N31A2116 2.T.Sai Nilkhil Naidu 14N31A2162 3T.santhosh Kumar 14N31A2161

Under Guidance of

M.Jayapal

Associate ProfessorCSE Department

Department of AERONAUTICAL ENGINEERINGMALLA REDDY COLLEGE OF ENGINEERING AND TECHNOLOGY

Maisammaguda, SecunderabadHyderabad

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 1

Page 2: c Project Calendar

2014-2015

IndexTopic name page no.

1.Introduction about project 03

2.Requirements a)Requirements analysis and gathering 04 b)System requirements

3.Design and Algorithm 05-06

4.Implementation 07-14

5.Testing 15

6.Deployment and Maintenance 16

7.Screen shots 17-18

8. Area of application 19

9. Bibilography 21

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 2

Page 3: c Project Calendar

chapter 1

1.Introduction about project

Our project is about calendar from 1600 A .D. –future

1.Now a days calendar becoming a most important in every one life.

2.By this project you can know the any date of any month.

3. The primary practical use of a calendar is to identify days: to be informed about and/or to agree on a future event and to record an event that has happened.

4. Days may be significant for agricultural, civil, religious or social reasons.

5.A calendar provides a way to determine when to start planting or harvesting, which days are religious or civil holidays, which days mark the beginning and end of business accounting periods, and which days have legal significance, such as the day taxes are due or a contract expires.

6.Also a calendar may, by identifying a day, provide other useful information about the day such as its season.

7.Calendars are also used to help people manage their personal schedules, time and activities, particularly when individuals have numerous work, school, and family commitments.

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 3

Page 4: c Project Calendar

8.Calendars are also used as part of a complete timekeeping system: date and time of day together specify a moment in time. In the modern world, timekeepers can show time, date and weekday.

chapter 22.Requirements

2.a. REQUIRMENTS ANALYSIS AND GATHERING 1. Days 2.Months 3.Years

b.SYSTEM REQUIREMENTS1.Requirements at developer end Software Requirements *Windows or dos operating system *Application development software turbo c

Hardware Requirements *Hard disk of 160GB * Led monitor *Keyboard and mouse *Ram 2GB

2 Requirements at clients end *80GB hard disk *monitor *Keyboard and mouse

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 4

Page 5: c Project Calendar

* ram of 1GB or 2GB

Software requirements *Os of windows and dos *Turbo c

chapter 3

3.Design and Algorithm

3

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 5

Start

Displaying options

1.Know the day 2.Print the month

Enter date (dd mm yyyy) :30 05 1997 Day is :Friday

Enter month and year (MM

YYYY):05 1997 .It shows the entire month

3.Exit

Page 6: c Project Calendar

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 6

Exit

Page 7: c Project Calendar

Algorithm

Step:1 Start

Step 2:Displaying options a.Know the day b.Print the month c.ExitStep 3:In step2 if 1st option is selected then It shows, Enter date (dd mm yyyy):30 05 1997 Day is :Friday Step 4:In step2 if 2nd option is selected then It shows, Enter month and year (MM YYYY):05 1997

Step5:In step2 if 3rd option is selected then It exit from the program

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 7

Page 8: c Project Calendar

chapter 44.Implementation

During the implementation process, developers must write enough comments inside the code so that if anybody starts working on the code later on, he/she is able to understand what has already been written. Writing good comments is very important as all other documents, no matter how good they are, will be lost eventually. Ten years after the initial work, you may find only that information which is present inside the code in the form of comments.

Development tools also play an important role in this phase of the project. Good development tools save a lot of time for the developers, as well as saving money in terms of improved productivity. The most important development tools for time saving are editors and debuggers. A good editor helps a developer to write code quickly. A good debugger helps make the written code operational in a short period of time. Before starting the coding process, you should spend some time choosing good development tools. This is the software(calendar) that reduces the disputes between Management of companies and employees.It does not allow the wastage of time.It directly points a particular dates of days and months. Mainly to odernize and attract many of the customers with this kind of special and technology usage of calendar in mobile phones and computers, attracts many of the customers to go through. In busy life 21st century man should utilize the technology to save time.

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 8

Page 9: c Project Calendar

/*Program of calendar from 1600 a.d. to Future*/#include<stdio.h>#include<string.h>#include<conio.h>#include<stdlib.h>int getNumberOfDays(int month,int year){ switch(month) { case 1 : return(31); case 2 : if(year%4==0)

return(29); else

return(28); case 3 : return(31); case 4 : return(30); case 5 : return(31); case 6 : return(30); case 7 : return(31); case 8 : return(31); case 9 : return(30); case 10: return(31); case 11: return(30); case 12: return(31); default: return(-1); }}char *getName(int odd){ switch(odd) { case 0 :return("Sunday"); case 1 :return("Monday");

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 9

Page 10: c Project Calendar

case 2 :return("Tuesday"); case 3 :return("Wednesday"); case 4 :return("Thursday"); case 5 :return("Friday"); case 6 :return("Saturday"); default:return("Error in getName() module.Invalid argumentpassed"); }}int getOddNumber(int day,int mon,int year){ int res=0,t1,t2,y=year; year = year-1600; while(year>=100) { res=res+5; year=year-100; } res=(res%7); t1=((year-1)/4); t2=(year-1)-t1; t1=(t1*2)+t2; t1=(t1%7); res = res+t1; res=res%7; t2=0; for(t1=1;t1<mon;t1++) { t2+=getNumberOfDays(t1,y); } t2 = t2+day; t2 = t2%7; res = res+t2; res = res%7; if(y>2000) res=res+1; res = res%7;

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 10

Page 11: c Project Calendar

return res;}char *getWeek(int dd,int mm,int yy){ int odd; if(!(mm>=1 && mm<=12)) { return("Invalid month value"); } if(!(dd>=1 && dd<=getNumberOfDays(mm,yy))) { return("Invalid date"); } if(yy>=1600) { odd = getOddNumber(dd,mm,yy); odd=odd%7; return(getName(odd)); } else { return("Please give year more than 1600"); }}void printMonth(int mon,int year,int x,int y){ int nod,odd,cnt,d=1,x1=x,y1=y; if(!(mon>=1 && mon<=12)) { printf("INVALID MONTH"); getch(); return; } if(!(year>=1600)) { printf("INVALID YEAR");

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 11

Page 12: c Project Calendar

getch(); return; } if(x<=0) x=wherex(); if(y<=0) y=wherey(); gotoxy(x,y); textcolor(RED); cprintf("Sa"); textcolor(YELLOW); cprintf(" M T W T F S"); /* 1234567891234567891234567 */ textcolor(7); cprintf(""); y++; nod=getNumberOfDays(mon,year); odd=getOddNumber(d,mon,year); switch(odd) { case 0 : x=x;

cnt=1; break;

case 1 : x=x+4; cnt=2; break;

case 2 : x=x+8; cnt=3; break;

case 3 : x=x+12; cnt=4; break;

case 4 : x=x+16; cnt=5;

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 12

Page 13: c Project Calendar

break;

case 5 : x=x+20; cnt=6; break;

case 6 : x=x+24; cnt=7; break;

default : printf("INVALID DATA FROM THE getOddNumber() MODULE");

return; } gotoxy(25,25); gotoxy(x,y); printf(" %2d",d); for(d=2;d<=nod;d++) { if(cnt%7==0) {

y++;cnt=0;x=x1-4;

} x = x+4; cnt++; gotoxy(x,y); printf(" %2d",d); }}void main(){ char ch='k'; int dd,mm,yy; while(ch!='0') { clrscr();

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 13

Page 14: c Project Calendar

printf("===========================================\n"); printf("Welcome to Calendar From 1600 A.D to Future\n"); printf("============================================\n"); printf("1.Know the day\n"); printf("2.Print the month\n"); printf("0.EXIT\n"); printf("ENTER YOUR CHOICE : "); flushall(); fflush(stdin); ch=getche(); clrscr(); switch(ch) {

case '1': printf("Enter date (DD MM YYYY) : "); scanf("%d %d %d",&dd,&mm,&yy); printf("Day is : %s",getWeek(dd,mm,yy)); flushall(); getch(); break;

case '2' : printf("Enter month and year (MM YYYY) : "); scanf("%d %d",&mm,&yy); printf(" "); printMonth(mm,yy,1,1); flushall(); getch(); break;

case '0' : exit(0); } }}

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 14

Page 15: c Project Calendar

OUTPUT:=================================Welcome to calendar from 1600 A.D. to future=================================1.Know the day

2.Print the month0.ExitENTER YOUR CHOICE:1Enter date (dd mm yyyy):30 05 1997Day is :Friday

ENTER YOUR CHOICE:2Enter month and year (MM YYYY):05 1997

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 15

Page 16: c Project Calendar

chapter 5

5.Testing

Testing is probably the most important phase for long-term support as well as for the reputation of the company. If you don’t control the quality of the software, it will not be able to compete with other products on the market. If software crashes at the customer site, your customer loses productivity as well money and you lose credibility. Sometimes these losses are huge. Unhappy customers will not buy your other products and will not refer other customers to you. You can avoid this situation by doing extensive testing.

Example test case:test case 1: sample input :1 expected output : Enter date (dd mm yyyy):30 05 1997 Day is :Friday

supplied input1 :1 obtained output : Enter date (dd mm yyyy):30 05 1997 Day is :FridayConclusion about the input and out put:The input is to give the particular date ,day and month, The output is to display the day of the date asked by the customer and a entire monthSuggestion or report any error in the code:The entry of the input (i.e.,dates,days and months) must be clearly stated.There should be no mistakes while entering the rates and all the things that are supplied to customer.This require a proper process to use this softwareAccording to the software,we have to enter the a particular date when it asks to enter.If it asks to enter a particular date and month that customer received then we should enter the data.

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 16

Page 17: c Project Calendar

chapter 6

6.Deployment and Maintenance

The steps and procedure for installing this software.

Analyze Orgnaize Manage Growth of the Business

The Client must be first analyze the software about the requirement ofThe options that required for the computerized bill then after that requiredSoftware must be brought with the license provided by the software Producer. He or she may read the instructions and start working on it.

Organizing the software must carefully done. When the client runs theSoftware CD in the system then provides option “install” at the bottomOf the dialogue box we have to select that options again a dialogue box Arises it asks to enter your required language that you want the softwarein that after choosing your language. The client must accept the termsof the license agreement and it starts copying files into the systemat the end it opens the installed software to use.

Managing the software is the most problematic step in the wholeProcedure. The client must follow the terms that mentioned beforeInstallation. The software must be managed in such a way that a smallerror should not arise while working on it.

With this type of computerized billing the client must spend a lot ofMoney to get the software and run in his restaurant. The client mustFocus on the growth of his business.

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 17

Page 18: c Project Calendar

7.Screenshots

1.Welcome screen

2.To know the day

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 18

Page 19: c Project Calendar

3.To know the month

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 19

Page 20: c Project Calendar

8.Area of Application

1.A calendar is also a physical device (often paper) (for example, a desktop calendar or a wall calendar). In a paper calendar one or two sheets can show a single day, a week, a month, or a year.

2.If a sheet is for a single day, it easily shows the date and the weekday. If a sheet is for multiple days it shows a conversion table to convert from weekday to date and back.

3.With a special pointing device, or by crossing out past days, it may indicate the current date and weekday. This is the most common usage of the word.

4.In the USA Sunday is considered the first day of the week and so appears on the far left and Saturday the last day of the week appearing on the far right.

5.In Britain the weekend may appear at the end of the week so the first day is Monday and the last day is Sunday. The US calendar display is also used in Britain.

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 20

Page 21: c Project Calendar

9.Bibliography

9.1 Text books referred

E BALAGURUSWAMY ASHOK N.KAMTHANE JERI R.HANLY,ELLIOT B. KOFFMAN

9. 2 Websites referred

www.programmingsimplified.com/c-program www.freelancer.in http://jayapalmedida.blogspot.in/ www.Wikipedia.in

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 21

Page 22: c Project Calendar

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 22

Page 23: c Project Calendar

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 23

Page 24: c Project Calendar

DEPARTMENT OF AERONAUTICAL ENGINEERING PAGE 24


Recommended